bioflow.utils package¶
Subpackages¶
- bioflow.utils.general_utils package
- Submodules
- bioflow.utils.general_utils.debug_scripts module
- bioflow.utils.general_utils.deprecated_id_translations module
- bioflow.utils.general_utils.dict_like_configs_parser module
- bioflow.utils.general_utils.high_level_os_io module
- bioflow.utils.general_utils.id_translations module
- bioflow.utils.general_utils.internet_io module
- bioflow.utils.general_utils.useful_wrappers module
- Module contents
Submodules¶
bioflow.utils.dataviz module¶
bioflow.utils.gdfExportInterface module¶
bioflow.utils.io_routines module¶
bioflow.utils.linalg_routines module¶
bioflow.utils.log_behavior module¶
File managing most of the logging behavior of the application.
-
bioflow.utils.log_behavior.
add_to_file_handler
(my_logger, level, file_name, rotating=False, log_location='/home/docs/bioflow/.internal/logs')[source]¶ Adds a file-writing handler for the log.
Parameters: - my_logger – the logger to which add a handler
- level – logging.DEBUG or other level
- file_name – short file name, that will be stored within the application logs location
- rotating – if true, rotating file handler will be added.
Returns:
-
bioflow.utils.log_behavior.
get_logger
(logger_name)[source]¶ Returns a properly configured logger object
Parameters: logger_name – name of the logger object
-
bioflow.utils.log_behavior.
mkdir_recursive
(my_path)[source]¶ Copy of mkdir recursive from saner configs, used here to remove circular dependencies Recursively creates a directory that would contain a file given a windows-like filename (xxx.xxx) or a directory name
Parameters: my_path – path which to recursively create Returns: None