higgs_dna.utils package
Submodules
higgs_dna.utils.logger_utils module
- higgs_dna.utils.logger_utils.setup_logger(level: str = 'INFO', logfile: str | None = None, time: bool | None = False) Logger[source]
Setup a logger that uses RichHandler to write the same message both in stdout and in a log file called logfile. Level of information can be customized and dumping a logfile is optional.
- Parameters:
level (str, optional) – level of information
logfile (str) – file where information are stored
higgs_dna.utils.runner_utils module
- higgs_dna.utils.runner_utils.get_proxy()[source]
Use voms-proxy-info to check if a proxy is available. If so, copy it to $HOME/.proxy and return the path. An exception is raised in the following cases: - voms-proxy-info is not installed - the proxy is not valid
- Returns:
Path to proxy
- Return type:
str