Skip to content

Commit

Permalink
fix variable typo in reconcile_names (NOAA-GFDL#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmims authored Aug 12, 2024
1 parent cc23fc6 commit 9174ad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xr_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,8 +900,8 @@ def reconcile_names(self, our_var, ds, ds_var_name: str, overwrite_ours=None):
overwrite_ours = True
else:
# attempt to match on standard_name attribute if present in data
ds_names = [v.name for v in ds.variables
if v.attrs.get('standard_name', "") == our_var.standard_name]
ds_names = [ds.variables[v].name for v in ds.variables
if ds.variables[v].attrs.get('standard_name', "") == our_var.standard_name]
if len(ds_names) == 1:
# success, narrowed down to one guess
self.log.info(("Selecting '%s' as the intended name for '%s' "
Expand Down

0 comments on commit 9174ad3

Please sign in to comment.