Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaponte committed Jun 10, 2018
1 parent 32ae527 commit a5f4215
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Git LFS file not shown
10 changes: 10 additions & 0 deletions invisible_cities/io/kdst_io_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ def dump_df(write, df):
getattr(evt, col).append(value)
except AttributeError:
setattr(evt, col, value)

evt.nS1 = int(evt.nS1)
evt.nS2 = int(evt.nS2)
for col in ("Z", "DT"):
column = list(getattr(evt, col))
setattr(evt, col, [])
for i in range(evt.nS2):
s1_data = column[:evt.nS1 ]
column = column[ evt.nS1:]
getattr(evt, col).append(s1_data)
write(evt)

with tb.open_file(filename, 'w') as h5out:
Expand Down

0 comments on commit a5f4215

Please # to comment.