From 709f3bc2e0b8828f9a6c75c0c40f5155d1c27c92 Mon Sep 17 00:00:00 2001 From: Ivan Ivanov Date: Fri, 11 Oct 2024 17:15:17 -0700 Subject: [PATCH] update name of copied position --- iohub/ngff/nodes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iohub/ngff/nodes.py b/iohub/ngff/nodes.py index 311d02e7..1c2ec5c3 100644 --- a/iohub/ngff/nodes.py +++ b/iohub/ngff/nodes.py @@ -1391,7 +1391,7 @@ def from_positions( f"Duplicate name '{name}' after path normalization." ) row, col, fov = name.split("/") - _ = plate.create_position(row, col, fov) + dst_pos = plate.create_position(row, col, fov) # overwrite position group _ = zarr.copy_store( src_pos.zgroup.store, @@ -1400,6 +1400,9 @@ def from_positions( dest_path=name, if_exists="replace", ) + dst_pos._parse_meta() + dst_pos.metadata.omero.name = fov + dst_pos.dump_meta() return plate def __init__(