Utility functions and variables

cerr : display the output of last operator call

climaf.api.cerr = <function cerr>[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/master/climaf'

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.

clog : tune verbosity

env.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 environment variable $CLIMAF_LOG_LEVEL

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