Skip to content

Commit

Permalink
fix ome zarr reader
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamaedler committed Dec 15, 2024
1 parent 576291f commit 3e1ead1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/scportrait/pipeline/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,8 +816,7 @@ def load_input_from_omezarr(
self.log(f"Read input image from file {ome_zarr_path} to numpy array in {(time_end - time_start)/60} minutes.")

# Access the metadata to get channel names
zarr_group = loc.zarr_group()
metadata = zarr_group.attrs.asdict()
metadata = loc.root_attrs

if "omero" in metadata and "channels" in metadata["omero"]:
channels = metadata["omero"]["channels"]
Expand Down

0 comments on commit 3e1ead1

Please sign in to comment.