Skip to content

Commit

Permalink
Modify default verbose for pdb.to_ds()
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhu2e committed Oct 26, 2024
1 parent 28d7a07 commit 4d5c489
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cfr/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ def to_nc(self, path, verbose=True, **kwargs):
path (str): the path to save the file.
verbose (bool, optional): print verbose information. Defaults to False.
'''
p_warning('>>> Warning: this is an experimental feature.')
da = self.to_da()

try:
Expand Down Expand Up @@ -1801,14 +1800,15 @@ def to_df(self):

return df

def to_ds(self, annualize=False, months=None, verbose=False):
def to_ds(self, annualize=False, months=None, verbose=True):
''' Convert the proxy database to a `xarray.Dataset`
Args:
annualize (bool): annualize the proxy records with `months`
months (list): months for annulization
verbose (bool, optional): print verbose information. Defaults to False.
'''
p_warning('>>> Warning: this is an experimental feature.')
da_dict = {}
pid_truncated = []
for pobj in tqdm(self, total=self.nrec):
Expand Down Expand Up @@ -1865,6 +1865,7 @@ def to_nc(self, path, annualize=False, months=None, verbose=True, compress_param
compress_params (dict): the paramters for compression when storing the reconstruction results to netCDF files.
verbose (bool, optional): print verbose information. Defaults to False.
'''
p_warning('>>> Warning: this is an experimental feature.')
encoding_dict = {}
for k in self.records.keys():
encoding_dict[k] = compress_params
Expand Down

0 comments on commit 4d5c489

Please sign in to comment.