@@ -277,28 +277,24 @@ def matches(zarr: ZarrLocation) -> bool:
277
277
def __init__ (self , node : Node ) -> None :
278
278
super ().__init__ (node )
279
279
280
- try :
281
- multiscales = self .lookup ("multiscales" , [])
282
- version = multiscales [0 ].get (
283
- "version" , "0.1"
284
- ) # should this be matched with Format.version?
285
- datasets = multiscales [0 ]["datasets" ]
286
- axes = multiscales [0 ].get ("axes" )
287
- fmt = format_from_version (version )
288
- # Raises ValueError if not valid
289
- axes_obj = Axes (axes , fmt )
290
- node .metadata ["axes" ] = axes_obj .to_list ()
291
- # This will get overwritten by 'omero' metadata if present
292
- node .metadata ["name" ] = multiscales [0 ].get ("name" )
293
- paths = [d ["path" ] for d in datasets ]
294
- self .datasets : List [str ] = paths
295
- transformations = [d .get ("coordinateTransformations" ) for d in datasets ]
296
- if any (trans is not None for trans in transformations ):
297
- node .metadata ["coordinateTransformations" ] = transformations
298
- LOGGER .info ("datasets %s" , datasets )
299
- except Exception :
300
- LOGGER .exception ("Failed to parse multiscale metadata" )
301
- return # EARLY EXIT
280
+ multiscales = self .lookup ("multiscales" , [])
281
+ version = multiscales [0 ].get (
282
+ "version" , "0.1"
283
+ ) # should this be matched with Format.version?
284
+ datasets = multiscales [0 ]["datasets" ]
285
+ axes = multiscales [0 ].get ("axes" )
286
+ fmt = format_from_version (version )
287
+ # Raises ValueError if not valid
288
+ axes_obj = Axes (axes , fmt )
289
+ node .metadata ["axes" ] = axes_obj .to_list ()
290
+ # This will get overwritten by 'omero' metadata if present
291
+ node .metadata ["name" ] = multiscales [0 ].get ("name" )
292
+ paths = [d ["path" ] for d in datasets ]
293
+ self .datasets : List [str ] = paths
294
+ transformations = [d .get ("coordinateTransformations" ) for d in datasets ]
295
+ if any (trans is not None for trans in transformations ):
296
+ node .metadata ["coordinateTransformations" ] = transformations
297
+ LOGGER .info ("datasets %s" , datasets )
302
298
303
299
for resolution in self .datasets :
304
300
data : da .core .Array = self .array (resolution , version )
0 commit comments