Skip to content

Commit 8bc1006

Browse files
committed
chore: drop iterate only over groups that exist in the datatree
1 parent aae0dfb commit 8bc1006

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/eopf_geozarr/conversion/geozarr.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ def setup_datatree_metadata_geozarr_spec_compliant(
121121
grid_mapping_var_name = "spatial_ref"
122122

123123
for key in groups:
124-
if key not in dt:
125-
continue
126124
if not dt[key].data_vars:
127125
continue
128126

0 commit comments

Comments
 (0)