File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -57,12 +57,20 @@ def maximum_intensity_projection(
57
57
logger .info (f"{ init_args .origin_url = } " )
58
58
logger .info (f"{ zarr_url = } " )
59
59
60
- # Read some parameters from metadata
60
+ # Read image metadata
61
61
ngff_image = load_NgffImageMeta (init_args .origin_url )
62
+ # Currently not using the validation models due to wavelength_id issue
63
+ # See #681 for discussion
64
+ # new_attrs = ngff_image.dict(exclude_none=True)
65
+ # Current way to get the necessary metadata for MIP
66
+ group = zarr .open_group (init_args .origin_url , mode = "r" )
67
+ new_attrs = group .attrs .asdict ()
68
+
69
+ print (new_attrs )
62
70
63
71
# Create the zarr image with correct
64
72
new_image_group = zarr .group (zarr_url )
65
- new_image_group .attrs .put (ngff_image . dict ( exclude_none = True ) )
73
+ new_image_group .attrs .put (new_attrs )
66
74
67
75
# Load 0-th level
68
76
data_czyx = da .from_zarr (init_args .origin_url + "/0" )
You can’t perform that action at this time.
0 commit comments