pymor
¶
Subpackages¶
Submodules¶
Package Contents¶
Functions¶
provides a way to manually set the thread init mode for MPI if necessary. |
|
Loads |
|
Set log levels for pyMOR's logging facility. |
|
Set log levels for pyMOR's logging facility. |
|
Attributes¶
- pymor._init_mpi()[source]¶
provides a way to manually set the thread init mode for MPI if necessary. Needs to happen as early as possible, otherwise mpi4py might auto-init somewhere else.
- pymor.load_defaults_from_file(filename='./pymor_defaults.py')[source]¶
Loads
default
values defined in configuration file.Suitable configuration files can be created via
write_defaults_to_file
. The file is loaded via Python’sexec
function, so be very careful with configuration files you have not created your own. You have been warned!Parameters
- filename
Path of the configuration file.
- pymor.set_log_levels(levels=None)[source]¶
Set log levels for pyMOR’s logging facility.
Parameters
- levels
Dict of log levels. Keys are names of loggers (see
logging.getLogger
), values are the log levels to set for the loggers of the given names (seesetLevel
).
- pymor.set_log_format(max_hierarchy_level=1, indent_blocks=True, block_timings=False)[source]¶
Set log levels for pyMOR’s logging facility.
Parameters
- max_hierarchy_level
The number of components of the loggers name which are printed. (The first component is always stripped, the last component always preserved.)
- indent_blocks
If
True
, indent log messages inside a code block started withwith logger.block(...)
.- block_timings
If
True
, measure the duration of a code block started withwith logger.block(...)
.