synthesis_workflow.utils¶
Utils functions.
Attributes¶
Classes¶
Context manager to disable logging. |
Functions¶
|
Setup logging. |
|
Create a dataframe with a diff between two parameter dict. |
|
Create a dict entry if it does not exist. |
|
Apply a parameter diff from 'create_parameter_diff' to a parameter dict. |
|
Save planes to txt files. |
|
Create simple circuit config. |
|
Parse XML with morphology annotations. |
|
Parse (ext)neuronDB.dat file. |
|
Collect annotations from given directory. |
Module Contents¶
- _TEMPLATES¶
- class DisableLogger(log_level=logging.CRITICAL, logger=None)¶
Context manager to disable logging.
- log_level¶
- logger¶
- __enter__()¶
Disabling the logger when entering the context manager.
- __exit__(*args)¶
Enabling the logger when exiting the context manager.
- setup_logging(log_level=logging.DEBUG, log_file=None, log_file_level=None, log_format=None, date_format=None, logger=None)¶
Setup logging.
- create_parameter_diff(param, param_spec)¶
Create a dataframe with a diff between two parameter dict.
- _create_entry(param, entry)¶
Create a dict entry if it does not exist.
- apply_parameter_diff(param, custom_values)¶
Apply a parameter diff from ‘create_parameter_diff’ to a parameter dict.
- save_planes(planes, path)¶
Save planes to txt files.
- create_circuit_config(nodes_file, morphology_path)¶
Create simple circuit config.
- parse_annotations(filepath)¶
Parse XML with morphology annotations.
- parse_morphdb(filepath)¶
Parse (ext)neuronDB.dat file.
- collect_annotations(annotation_dir, morphdb_path)¶
Collect annotations from given directory.