We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.pop(...)
1 parent c0358a9 commit 4081199Copy full SHA for 4081199
zarr/n5.py
@@ -311,11 +311,8 @@ def group_metadata_to_n5(group_metadata):
311
312
def group_metadata_to_zarr(group_metadata):
313
'''Convert group metadata from N5 to zarr format.'''
314
- try:
315
- group_metadata.pop('n5')
316
- except KeyError:
317
- # This only exists at the top level
318
- pass
+ # This only exists at the top level
+ group_metadata.pop('n5', None)
319
group_metadata['zarr_format'] = ZARR_FORMAT
320
return group_metadata
321
0 commit comments