Skip to content

Commit

Permalink
FIXUP: More undef fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjwadams committed May 21, 2024
1 parent 84a08ec commit e5ba8be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compliance_checker/cfutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,8 @@ def get_grid_mapping_variables(ds):
if ncvar.grid_mapping in ds.variables:
grid_mapping_variables.add(ncvar.grid_mapping)

for ncvar in nc.get_variables_by_attributes(grid_mapping=lambda x: x is not None):
if ncvar.grid_mapping in nc.variables:
for ncvar in ds.get_variables_by_attributes(grid_mapping=lambda x: x is not None):
if ncvar.grid_mapping in ds.variables:
grid_mapping_variables.add(ncvar.grid_mapping)
return grid_mapping_variables

Expand Down

0 comments on commit e5ba8be

Please sign in to comment.