livvkit.util package¶
Submodules¶
livvkit.util.LIVVDict module¶
livvkit.util.bib module¶
livvkit.util.colormaps module¶
Provides some colormaps not included in matplotlib version < 2.0
livvkit.util.functions module¶
Module to hold LIVVkit specific functions
- class livvkit.util.functions.TempSysPath(path)[source]¶
Bases:
object
Add a path to the PYTHONPATH temporarily
- livvkit.util.functions.collect_cases(data_dir)[source]¶
Find all cases and subcases of a particular run type
- livvkit.util.functions.create_page_from_template(template_file, output_path)[source]¶
Copy the correct html template file to the output directory
- livvkit.util.functions.find_file(search_dir, file_pattern)[source]¶
Search for a file in a directory, and return the first match. If the file is not found return an empty string
- Parameters
search_dir – The root directory to search in
file_pattern – A unix-style wildcard pattern representing the file to find
- Returns
The path to the file if it was found, otherwise an empty string
- livvkit.util.functions.merge_dicts(dict1, dict2)[source]¶
Merge two dictionaries and return the result
- livvkit.util.functions.mkdir_p(path)[source]¶
Make parent directories as needed and no error if existing. Works like mkdir -p.
- livvkit.util.functions.parse_gptl(file_path, var_list)[source]¶
Read a GPTL timing file and extract some data.
- Parameters
file_path – the path to the GPTL timing file
var_list – a list of strings to look for in the file
- Returns
A dict containing key-value pairs of the livvkit and the times associated with them
- livvkit.util.functions.read_json(file_path)[source]¶
Read in a json file and return a dictionary representation
- livvkit.util.functions.setup_output(cssd=None, jsd=None, imgd=None)[source]¶
Set up the directory structure for the output. Copies old run data into a timestamped directory and sets up the new directory