@@ -156,6 +156,7 @@ def configuration(
156156 tempdir = None ,
157157 chunksize = None ,
158158 log_level = None ,
159+ display_data = None ,
159160 regrid_logging = None ,
160161 relaxed_identities = None ,
161162 bounds_combination_mode = None ,
@@ -177,6 +178,7 @@ def configuration(
177178 * `tempdir`
178179 * `chunksize`
179180 * `log_level`
181+ * `display_data`
180182 * `regrid_logging`
181183 * `relaxed_identities`
182184 * `bounds_combination_mode`
@@ -200,10 +202,10 @@ def configuration(
200202 .. versionadded:: 3.6.0
201203
202204 .. seealso:: `atol`, `rtol`, `tempdir`, `chunksize`,
203- `total_memory`, `log_level`, `regrid_logging `,
204- `relaxed_identities `, `bounds_combination_mode `,
205- `active_storage `, `active_storage_url `,
206- `active_storage_max_requests`
205+ `total_memory`, `log_level`, `display_data `,
206+ `regrid_logging `, `relaxed_identities `,
207+ `bounds_combination_mode `, `active_storage `,
208+ `active_storage_url`, ` active_storage_max_requests`
207209
208210 :Parameters:
209211
@@ -245,6 +247,12 @@ def configuration(
245247 * ``'DETAIL'`` (``3``);
246248 * ``'DEBUG'`` (``-1``).
247249
250+ display_data `bool` or `Constant`, optional
251+ The new display data option. The default is to not change
252+ the current behaviour.
253+
254+ .. versionadded:: NEXTVERSION
255+
248256 regrid_logging: `bool` or `Constant`, optional
249257 The new value (either True to enable logging or False to
250258 disable it). The default is to not change the current
@@ -303,6 +311,7 @@ def configuration(
303311 'log_level': 'WARNING',
304312 'bounds_combination_mode': 'AND',
305313 'chunksize': 82873466.88000001,
314+ 'display_data': True,
306315 'active_storage': False,
307316 'active_storage_url': None,
308317 'active_storage_max_requests': 100}
@@ -320,6 +329,7 @@ def configuration(
320329 'log_level': 'WARNING',
321330 'bounds_combination_mode': 'AND',
322331 'chunksize': 75000000.0,
332+ 'display_data': True,
323333 'active_storage': False,
324334 'active_storage_url': None,
325335 'active_storage_max_requests': 100}
@@ -347,6 +357,7 @@ def configuration(
347357 'log_level': 'INFO',
348358 'bounds_combination_mode': 'AND',
349359 'chunksize': 75000000.0,
360+ 'display_data': True,
350361 'active_storage': False,
351362 'active_storage_url': None}
352363 >>> with cf.configuration(atol=9, rtol=10):
@@ -360,6 +371,7 @@ def configuration(
360371 'log_level': 'INFO',
361372 'bounds_combination_mode': 'AND',
362373 'chunksize': 75000000.0,
374+ 'display_data': True,
363375 'active_storage': False,
364376 'active_storage_url': None,
365377 'active_storage_max_requests': 100}
@@ -372,6 +384,7 @@ def configuration(
372384 'log_level': 'INFO',
373385 'bounds_combination_mode': 'AND',
374386 'chunksize': 75000000.0,
387+ 'display_data': True,
375388 'active_storage': False,
376389 'active_storage_url': None,
377390 'active_storage_max_requests': 100}
@@ -402,6 +415,7 @@ def configuration(
402415 new_tempdir = tempdir ,
403416 new_chunksize = chunksize ,
404417 new_log_level = log_level ,
418+ new_display_data = display_data ,
405419 new_regrid_logging = regrid_logging ,
406420 new_relaxed_identities = relaxed_identities ,
407421 bounds_combination_mode = bounds_combination_mode ,
@@ -445,6 +459,7 @@ def _configuration(_Configuration, **kwargs):
445459 "new_tempdir" : tempdir ,
446460 "new_chunksize" : chunksize ,
447461 "new_log_level" : log_level ,
462+ "new_display_data" : display_data ,
448463 "new_regrid_logging" : regrid_logging ,
449464 "new_relaxed_identities" : relaxed_identities ,
450465 "bounds_combination_mode" : bounds_combination_mode ,
@@ -459,10 +474,6 @@ def _configuration(_Configuration, **kwargs):
459474
460475 old = ConstantAccess .constants (copy = True )
461476
462- # old = {name.lower(): val for name, val in CONSTANTS.items()}
463- #
464- # old.pop("total_memory", None)
465-
466477 # Filter out 'None' kwargs from configuration() defaults. Note that this
467478 # does not filter out '0' or 'True' values, which is important as the user
468479 # might be trying to set those, as opposed to None emerging as default.
@@ -552,7 +563,6 @@ def FREE_MEMORY():
552563# Functions inherited from cfdm
553564# --------------------------------------------------------------------
554565class ConstantAccess (cfdm .ConstantAccess ):
555- _constants = {}
556566 _Constant = Constant
557567
558568 def __docstring_substitutions__ (self ):
@@ -576,6 +586,10 @@ class log_level(ConstantAccess, cfdm.log_level):
576586 _reset_log_emergence_level = _reset_log_emergence_level
577587
578588
589+ class display_data (ConstantAccess , cfdm .display_data ):
590+ pass
591+
592+
579593class regrid_logging (ConstantAccess ):
580594 """Whether or not to enable `esmpy` regridding logging.
581595
0 commit comments