ronswanson.utils package
Submodules
ronswanson.utils.cartesian_product module
ronswanson.utils.check_complete module
- ronswanson.utils.check_complete.make_fig(this_name: str, other_name: str, finished_values: ndarray, unfinished_values: ndarray, width: int) str [source]
- ronswanson.utils.check_complete.examine_parameter(database_file_name: str, parameter_grid_file_name: str, parameter_to_check: str) None [source]
ronswanson.utils.color module
ronswanson.utils.colormap_generator module
- ronswanson.utils.colormap_generator.hex_to_rgb(value)[source]
Converts hex to rgb colours value: string of 6 characters representing a hex colour. Returns: list length 3 of RGB values
ronswanson.utils.configuration module
- class ronswanson.utils.configuration.Logging(on: bool = True, level: str = 'WARNING')[source]
Bases:
object
- on: bool = True
- level: str = 'WARNING'
- __init__(on: bool = True, level: str = 'WARNING') None
- class ronswanson.utils.configuration.SLURM(user_email: str = 'user@email.com', modules: Union[List[str], NoneType] = None, mpi_modules: Union[List[str], NoneType] = None, python: str = 'python', store_dir: Union[str, NoneType] = None)[source]
Bases:
object
- user_email: str = 'user@email.com'
- modules: Optional[List[str]] = None
- mpi_modules: Optional[List[str]] = None
- python: str = 'python'
- store_dir: Optional[str] = None
- __init__(user_email: str = 'user@email.com', modules: Optional[List[str]] = None, mpi_modules: Optional[List[str]] = None, python: str = 'python', store_dir: Optional[str] = None) None
- class ronswanson.utils.configuration.RonSwansonConfig(logging: ronswanson.utils.configuration.Logging = Logging(on=True, level='WARNING'), slurm: ronswanson.utils.configuration.SLURM = SLURM(user_email='user@email.com', modules=None, mpi_modules=None, python='python', store_dir=None))[source]
Bases:
object
ronswanson.utils.file_open module
ronswanson.utils.hdf5_utils module
ronswanson.utils.logging module
- ronswanson.utils.logging.silence_warnings()[source]
supress warning messages in console and file usr logs