Utility functions and variables¶
scripts_output_write_mode : should we accumulate scripts output¶
Value ‘a’ allows to accumulate scripts outputs in file last.out. Default value is ‘w’ and allows to keep only the output of last script.
cerr : display the output of last operator call¶
cpath : path for CliMAF installation directory¶
clog : tune verbosity¶
clog_file : tune verbosity for log file¶
- env.clogging.clog_file(level=None)[source]¶
Sets the verbosity level for CliMAF log messages on file CLIMAF_LOG_DIR/climaf.log
- Parameters:
level (str) – among : “debug”, “info”, “warning”, “critical”
Note : at CliMAF startup, the level is set to the value of environment variable $CLIMAF_LOGFILE_LEVEL
csync¶
- climaf.cache.csync(update=False)[source]¶
Merges current in-memory cache index and current on-file cache index for updating both
If arg update is True, additionally ensures consistency between files set and index content, either :
if cache.stamping is true, by reading CRS in all files
else, by removing files which are not in the index; this may erase result files which have been computed by another running instance of CliMAF