scrnatools._configs.Config

class scrnatools._configs.Config(verbosity='warning', log_path='sc-rna-tools_logs', save_logs=False)[source]

Config manager for scrnatools

__init__(verbosity='warning', log_path='sc-rna-tools_logs', save_logs=False)[source]

Methods

__init__([verbosity, log_path, save_logs])

check_log_path()

Checks if the log path exists, and creates it if it doesn't

clear_logs()

Clears all logs saved in the logs path

create_logger(name)

Called by modules to create a logger for that function

Attributes

log_path

The path where log files are saved

save_logs

Determines whether logging messages are saved to a log file

verbosity

'debug', 'info', 'warning', 'error', 'critical'