Skip to content

Commit 04d359b

Browse files
committed
Default behaviour for ds() doesn't include a data check
env.environment.data_check turned to False
1 parent d794eb3 commit 04d359b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

doc/news.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@ Changes, newest first:
88

99
- V3.x:
1010

11-
- **Warning : next entry describes a significant change in default behaviour when
12-
defining a dataset : a check of available data is now performed, which may
11+
- **Warning : next entry describes a way to significantly change default behaviour when
12+
defining a dataset : a check of available data can be performed, which may
1313
raise an error. Also, second entry describes the use of intake catalogs which,
1414
for CMIP6 data (see below) implies a significant setup time**
1515
- On creating a dataset using :py:func:`~climaf.classes.ds()`, a check of the
1616
dataset's period w.r.t. the period covered by the datafiles may be automatically
1717
performed, depending on new arguments 'check' and 'check_type'. Default
1818
values are env.environment.data_check and env.environment.period_check_type,
19-
which default settings lead to activate the check when some datafiles actually
20-
exist, and to perform a 'light' check. See
19+
which default settings do not yet activate the check. See
2120
:ref:`that section of class documentation<data_check>` for details
2221
- On Spirit, use **intake catalogs**, as available at IPSL for some MIPs.
2322
First use implies reading the catalog, which can last up to 30s for CMIP6;

env/environment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ def my_which(soft):
260260

261261
#: Should ds() calls be checked w.r.t. datafiles. "if_found" means yes if some relevant datafiles exists. Other allowed values are True and False. See :ref:`that section of class cdataset's documentation<data_check>`
262262
data_check = "if_found"
263+
# For the time being, ensure compatibility with earlier behaviour
264+
data_check = False
263265

264266
#: On ds() calls, which level of check of the requested period w.r.t datafiles. See :ref:`that section of class cdataset's documentation<data_check>`
265267
period_check_type = "light"

0 commit comments

Comments
 (0)