pymor.scripts.pymor_config

Functions

main

Show pyMOR config.

write_defaults

Write pyMOR defaults to a config file.

pymor.scripts.pymor_config.main(*, show_defaults: bool = False, show_cached_methods: bool = False, all: bool = False)[source]

Show pyMOR config.

Parameters:
  • show_defaults (bool) – Also show values of all pyMOR defaults.

  • show_cached_methods (bool) – Also show which methods are cached by default.

  • all (bool) – Print all information.

pymor.scripts.pymor_config.write_defaults(filename: Path = PosixPath('pymor_defaults.py'))[source]

Write pyMOR defaults to a config file.

pyMOR will look for a file ‘pymor_defaults.py’ in the current directory and automatically load defaults from this file. Alternatively, defaults can be loaded using load_defaults_from_file or by setting the PYMOR_DEFAULTS environment variable.

Parameters:

filename (Path) – Write defaults to this file.