Skip to content

Commit

Permalink
Fix a bug in prep_da_cfg()
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhu2e committed Apr 30, 2024
1 parent 476cecc commit 7407b5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cfr/reconjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ def calib_psms(self, ptype_psm_dict=None, ptype_season_dict=None, ptype_clim_dic
ptype_psm_dict_default = {ptype: 'Linear' for ptype in set(self.proxydb.type_list)}
ptype_season_dict_default = {ptype: list(range(1, 13)) for ptype in set(self.proxydb.type_list)}
ptype_clim_dict_default = {ptype: ['tas'] for ptype in set(self.proxydb.type_list)}

if ptype_psm_dict is not None: ptype_psm_dict_default.update(ptype_psm_dict)
if ptype_season_dict is not None: ptype_season_dict_default.update(ptype_season_dict)
if ptype_clim_dict is not None: ptype_clim_dict_default.update(ptype_clim_dict)
Expand Down Expand Up @@ -849,7 +850,8 @@ def prep_da_cfg(self, cfg_path, seeds=None, save_job=False, verbose=False):
anom_period=self.configs[f'obs_anom_period'],
rename_dict=obs_rename_dict, verbose=verbose)
self.calib_psms(ptype_psm_dict=self.configs['ptype_psm_dict'],
ptype_season_dict=self.configs['ptype_season_dict'], verbose=verbose)
ptype_season_dict=self.configs['ptype_season_dict'],
ptype_clim_dict=self.configs['ptype_clim_dict'], verbose=verbose)
self.forward_psms(verbose=verbose)

if 'prior_annualize_months' in self.configs:
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.4.17',
version='2024.4.30',
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 7407b5b

Please sign in to comment.