Skip to content

Commit 2bd5c6a

Browse files
committed
Bugfix in replicate_zarr_structure_mip (omero metadata were only written for last well) [ref #61 #62]
1 parent 536897e commit 2bd5c6a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fractal/tasks/replicate_zarr_structure_mip.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ def replicate_zarr_structure_mip(zarrurl):
9898
}
9999
]
100100

101-
# Copy .zattrs file at the COL/ROW/SITE level
102-
path_zattrs = zarrurl + f"{row}/{column}/0/.zattrs"
103-
with open(path_zattrs) as zattrs_file:
104-
zattrs = json.load(zattrs_file)
105-
group_field.attrs["omero"] = zattrs["omero"]
101+
# Copy .zattrs file at the COL/ROW/SITE level
102+
path_zattrs = zarrurl + f"{row}/{column}/0/.zattrs"
103+
with open(path_zattrs) as zattrs_file:
104+
zattrs = json.load(zattrs_file)
105+
group_field.attrs["omero"] = zattrs["omero"]
106106

107107

108108
if __name__ == "__main__":

0 commit comments

Comments
 (0)