Artifact Manager
This module contains the ArtifactManager, a vivarium plugin
for handling complex data bound up in a data artifact.
- class vivarium.framework.artifact.manager.ArtifactManager[source]
The controller plugin component for managing a data artifact.
-
CONFIGURATION_DEFAULTS:
dict[str,Any] = {'input_data': {'artifact_filter_term': None, 'artifact_path': None, 'input_draw_number': None}} A dictionary containing the defaults for any configurations managed by this manager. An empty dictionary indicates no managed configurations.
-
CONFIGURATION_DEFAULTS:
- vivarium.framework.artifact.manager.filter_data(data, config_filter_term=None, **column_filters)[source]
Uses the provided column filters and age_group conditions to subset the raw data.
- vivarium.framework.artifact.manager.get_base_filter_terms(configuration)[source]
Parses default filter terms from the artifact configuration.
- Return type:
- Parameters:
configuration (LayeredConfigTree)
- vivarium.framework.artifact.manager.parse_artifact_path_config(config)[source]
Gets the path to the data artifact from the simulation configuration.
The path specified in the configuration may be absolute or it may be relative to the location of the configuration file.
- Return type:
- Parameters:
config (LayeredConfigTree) – The configuration block of the simulation model specification containing the artifact path.
- Returns:
The path to the data artifact.