From 6f2b5dcf5fd6358ff004529e111e066f31fa5789 Mon Sep 17 00:00:00 2001 From: Feng Zhu Date: Wed, 6 Nov 2024 10:01:53 -0700 Subject: [PATCH] Handle job.load_clim() issue with CRUTS related to oindex --- cfr/climate.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cfr/climate.py b/cfr/climate.py index b95ecb5..484af62 100644 --- a/cfr/climate.py +++ b/cfr/climate.py @@ -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'}) @@ -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 diff --git a/setup.py b/setup.py index 12c1a74..650d798 100644 --- a/setup.py +++ b/setup.py @@ -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',