Skip to content

Commit

Permalink
fix SST edge case in _fn_from_var method
Browse files Browse the repository at this point in the history
  • Loading branch information
cisaacstern committed Aug 17, 2021
1 parent cb54d9e commit f6062f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/cesm-pop-lowres-1deg/netcdf_subsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(
def _fn_from_var(self):
"""Assumes one netCDF per variable in cache"""
for filename in self.cache_fs.ls(self.cache_dir):
if self.var_name.lower() in filename:
if f"{self.var_name.lower()}." in filename:
print(f"Filename for {self.var_name} is {filename}")
return filename

Expand Down

0 comments on commit f6062f3

Please sign in to comment.