Skip to content
Snippets Groups Projects
Commit ed795642 authored by pswain's avatar pswain
Browse files

fix(grouper): perform check if dataframe is None

parent 09cb1a59
No related branches found
No related tags found
No related merge requests found
...@@ -289,15 +289,17 @@ def concat_one_signal( ...@@ -289,15 +289,17 @@ def concat_one_signal(
combined = position.get_raw(path, **kwargs) combined = position.get_raw(path, **kwargs)
elif mode == "daughters": elif mode == "daughters":
combined = position.get_raw(path, lineage=True, **kwargs) combined = position.get_raw(path, lineage=True, **kwargs)
combined = combined.loc[ if combined is not None:
combined.index.get_level_values("mother_label") > 0 combined = combined.loc[
] combined.index.get_level_values("mother_label") > 0
]
elif mode == "mothers": elif mode == "mothers":
combined = position.get_raw(path, lineage=True, **kwargs) combined = position.get_raw(path, lineage=True, **kwargs)
combined = combined.loc[ if combined is not None:
combined.index.get_level_values("mother_label") == 0 combined = combined.loc[
] combined.index.get_level_values("mother_label") == 0
combined = combined.droplevel("mother_label") ]
combined = combined.droplevel("mother_label")
elif mode == "families": elif mode == "families":
combined = position[path] combined = position[path]
else: else:
......
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