Skip to content

Commit

Permalink
Merge branch 'NOAA-GFDL:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
nishsilva authored May 16, 2024
2 parents ba47ed1 + 718518a commit 1e12b11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ def query_catalog(self,
# path_regex = re.compile(r'(?i)(?<!\\S){}(?!\\S+)'.format(case_name))
path_regex = re.compile(r'({})'.format(case_name))
# path_regex = '*' + case_name + '*'
freq = case_d.varlist.T.frequency
freq = case_d.varlist.T.frequency.format()

for v in case_d.varlist.iter_vars():
realm_regex = v.realm + '*'
Expand Down
5 changes: 4 additions & 1 deletion src/util/datelabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,10 @@ def format(self):
if self.unit == 'fx':
return 'fx'
else:
return "{}{}".format(self.quantity, self.unit)
if self.quantity == '1':
return self.unit
else:
return "{}{}".format(self.quantity, self.unit)

__str__ = format

Expand Down

0 comments on commit 1e12b11

Please sign in to comment.