dirigent_utils

Module Attributes

module_directories

List of folders (os.path objects) containing dirigent subcommands ("modules" in click language)

FELIS_DATA

Dictionary containing calibration-specific data for Felis/Panthera

Functions

create_results_directory(directory)

Makes the main dirigent results directory.

list_python_modules(*directories)

Creates a list of Python module names (strings) from the given directories.

create_results_directory

module_testing.utils.dirigent_utils.create_results_directory(directory)

Makes the main dirigent results directory. If the directory exists, a timestamp is appended to the existing directory, and then the new directory is created.

Parameters:

directory – The name of the directory to be created (string).

list_python_modules

module_testing.utils.dirigent_utils.list_python_modules(*directories)

Creates a list of Python module names (strings) from the given directories.

Parameters:

*directories

Variadic argument. Unpacks any number of positional arguments (strings), or list of strings and packs into a tuple.

Returns:

A list of strings of names of PY files in *directories.