Utility functions and variables

cerr : display the output of last operator call

climaf.api.cerr = <function cerr at 0x7f900380a320>[source]

Display file ‘last.out’ (stdout and stderr of last operator call)

cpath : path for CliMAF installation directory

climaf.api.cpath = '/home/docs/checkouts/readthedocs.org/user_builds/climaf/checkouts/dev/climaf'

Path for the CliMAF package. From here, can write e.g. cpath+"../scripts". The value shown in the doc is not meaningful for your own CliMAF install

clog : tune verbosity

climaf.clogging.clog(level=None)[source]

Sets the verbosity level for CliMAF log messages on stderr.

Parameters:level (str) – among : “debug”, “info”, “warning”, “critical”

Note : at CliMAF startup, the level is set to the value of envrionment variable $CLIMAF_LOG_LEVEL

clog_file : tune verbosity for log file

climaf.clogging.clog_file(level=None)[source]
Sets the verbosity level for CliMAF log messages on file CLIMAF_LOG_DIR/climaf.log
Parameters:level – among : “debug”, “info”, “warning”, “critical”

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, additionnaly 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