Skip to content

Commit

Permalink
Handle job.load_clim() issue with CRUTS related to oindex
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhu2e committed Nov 6, 2024
1 parent 4d5c489 commit 6f2b5dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cfr/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ def load_nc(self, path, vn=None, time_name='time', lat_name='lat', lon_name='lon
raise ValueError('Variable name should be specified with `vn`.')

da = ds[vn]
if load: da.load()
fd = ClimateField(da)
if time_name != 'time':
fd.da = fd.da.rename({time_name: 'time'})
Expand All @@ -239,7 +240,6 @@ def load_nc(self, path, vn=None, time_name='time', lat_name='lat', lon_name='lon
if np.min(fd.da.lon) < 0:
fd = fd.wrap_lon()

if load: fd.da.load()

return fd

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='cfr', # required
version='2024.10.25',
version='2024.11.6',
description='cfr: a Python package for Climate Field Reconstruction',
long_description=long_description,
long_description_content_type='text/x-rst',
Expand Down

0 comments on commit 6f2b5dc

Please sign in to comment.