class ScenarioCollection()
def __init__(path)
Scenario Collection Constructor.
Arguments:
path
: Path to the scenario collection
def list_scenarios()
List the scenarios present in the collection.
def get_scenario(scenario_name)
Retrieve a scenario from the collection.
Arguments:
scenario_name
: The name of the scenario
Returns:
A Scenario object, or None if the Scenario does not exist within the collection
def list_configs(scenario_name)
List configs for the given scenario.
Arguments:
scenario_name
: The name of the scenario
Returns:
A dictionary of config types, containing lists of the available configs
def get_leak_data(scenario_name, leak_config_name)
Retrieve the information about the leaks in a specific leak config in the given Scenario.
Arguments:
scenario_name
: The name of the scenarioleak_config
: The name of the leak config
Returns:
A list of dictionaries containing the leak information, None if no information was found
def get_sensorfault_data(scenario_name, sensorfault_config_name)
Retrieve the information about the sensorfaults in a specific sensorfault config in the given Scenario.
Arguments:
scenario_name
: The name of the scenariosensorfault_config_name
: The name of the sensorfault config
Returns:
A list of dictionaries containing the sensorfault information, None if no information was found
def get(scenario_name, leak_config, sensor_config, sensorfault_config)
Retrieve specific measurements from the collection
Arguments:
scenario_name
: The name of the scenarioleak_config
: The name of the leak configsensor_config
: The name of the sensor configsensorfault_config
: The name of the sensorfault config
Returns:
A dictionary of measurement data frames, or None if the measurements do not exist within the collection
class Scenario()
def __init__(path)
Scenario constructor.
Arguments:
path
: The path to the scenario
def list_configs()
List configs of this scenario.
Returns:
A dictionary of config types, containing lists of the available configs
def get_leak_data(leak_config_name)
Retrieve the information about the leaks in a specific leak config.
Arguments:
leak_config
: The name of the leak config
Returns:
A list of dictionaries containing the leak information, None if no information was found
def get_sensorfault_data(sensorfault_config_name)
Retrieve the information about the sensorfaults in a specific sensorfault config.
Arguments:
sensorfault_config_name
: The name of the sensorfault config
Returns:
A list of dictionaries containing the sensorfault information, None if no information was found
def get(leak_config, sensor_config_name, sensorfault_config_name)
Retrieve specific measurements from this scenario.
Arguments:
leak_config
: The name of the leak configsensor_config
: The name of the sensor configsensorfault_config
: The name of the sensorfault config
Returns:
A dictionary of measurement data frames, or None if the measurements do not exist within the collection