Skip to content
Snippets Groups Projects
Commit de3e61e0 authored by Alán Muñoz's avatar Alán Muñoz
Browse files

fix(writer): Ensure tps are always saved into h5

parent 7f01a03f
No related branches found
No related tags found
No related merge requests found
...@@ -567,12 +567,8 @@ class Writer(BridgeH5): ...@@ -567,12 +567,8 @@ class Writer(BridgeH5):
) )
dset = f[indices_path] dset = f[indices_path]
dset[()] = df.index.get_level_values(level=name).tolist() dset[()] = df.index.get_level_values(level=name).tolist()
# create dataset and write columns
if ( # create dataset and write time points as columns
df.columns.dtype == int
or df.columns.dtype == np.dtype("uint")
or df.columns.name == "timepoint"
):
tp_path = path + "/timepoint" tp_path = path + "/timepoint"
f.create_dataset( f.create_dataset(
name=tp_path, name=tp_path,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment