campa.constants.CAMPAConfig
- class CAMPAConfig[source]
Configuration for CAMPA.
Defines device-specific
EXPERIENT_DIRandBASE_DATA_DIRpaths and mapping of data configuration names to configuration files.The configuration is attempted to be read from a
campa.iniconfiguration file. This file is searched for in the following places:the current directory
$HOME/.config/campa/
A default configuration file can be created using
campa setup. Configuration values can also directly be set in memory.Attributes
Root BASE_DATA_DIR.
Chunk size for optimised co-occurrence in
FeatureExtractor.extract_co_occurrence().Root EXPERIMENT_DIR.
Name of config file.
Return dictionary mapping from names to
data_configfiles.Methods
add_data_config(data_config_name, ...)Add a (name, file) mapping to
CAMPAConfig.data_configs.get_data_config([data_config_name])Load
data_configfile.write([config_fname])Save current configuration to
config_fname.