dubfi¶
Package for Bayesian inversion with multiple linear algebra backends.
Added in version 0.1.0: (initial release)
Submodules¶
Functions¶
|
Set given file path as log file, replacing all other log handlers. |
Quit MPI processes if a connection to such processes exists. |
Package Contents¶
- dubfi.set_log_file(log_file, level)[source]¶
Set given file path as log file, replacing all other log handlers.
- Parameters:
log_file (str)
level (str | None)
- dubfi.quit_clean()[source]¶
Quit MPI processes if a connection to such processes exists.
This light-weight function will check if an MPI context has been created and sends a quit signal through this context. Always call this function before exiting the program to avoid dangling MPI processes on exit of the parent process.
Added in version 0.1.1.