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

remove old-format mother_assign

parent ba7ed2e8
No related branches found
No related tags found
No related merge requests found
......@@ -59,13 +59,13 @@ def format_segmentation(segmentation, tp):
# merged["mother_assign_dynamic"] = [merged["mother_assign"]]
if "mother_assign" in merged:
del merged["mother_assign"]
mother_assign = [x["mother_assign"] for x in segmentation]
# mother_assign = [x["mother_assign"] for x in segmentation]
# Check that the lists are all of the same length (in case of errors in
# BABY)
n_cells = min([len(v) for v in merged.values()])
merged = {k: v[:n_cells] for k, v in merged.items()}
merged["timepoint"] = [tp] * n_cells
merged["mother_assign"] = mother_assign
# merged["mother_assign"] = mother_assign
return merged
......
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