idstools.scenariodescription¶
Module Contents¶
- class idstools.scenariodescription.ScenarioDescription(pulse: int, run: int, yaml_path: str)[source]¶
The above function initializes an object with a pulse, run, and yaml path, and attempts to load YAML data from a file.
- Parameters:¶
-
yaml_data =
'None'¶
- yaml_path¶
-
get_children(yaml_data, dict_to_fill=
{})[source]¶ The function get_children recursively retrieves data from a YAML file and populates a dictionary with specific keys and values.
- Parameters:¶
- yaml_data¶
The yaml_data parameter is a dictionary that contains data in YAML format.
- dict_to_fill=
{}¶ The dict_to_fill parameter is a dictionary that is used to store the values extracted from the yaml data . It is initially an empty dictionary and is passed as an argument to the get_children function.
- Returns:¶
the dictionary with scenario children.
- get_family()[source]¶
The function “get_family” returns a dictionary containing the parents and children of a scenario based on the provided YAML data.
-
class idstools.scenariodescription.ScenarioDescriptionSummary(directory_list=
[])[source]¶ The function initializes a directory list variable based on the provided input or a default value.
-
directory_list =
'[]'¶
-
static get_data_frame_from_yaml(yaml_file_path, add_obsolete=
False)[source]¶ The function get_data_frame_from_yaml takes a YAML file path, reads the data from the file, checks if the status is active (unless addObsolete is set to True), converts the data into a flat table, and returns it as a pandas DataFrame.
-
get_dataframes_from_files(extension=
'.yaml', add_obsolete=False)[source]¶ The function get_dataframes_from_files retrieves data from YAML files, creates dataframes, adds additional information, and returns a concatenated dataframe.
- static get_yaml_data(yaml_file_path)[source]¶
The function get_yaml_data reads a YAML file and returns its contents as a Python object.
-
directory_list =
-
idstools.scenariodescription.default_folder_path =
"'/work/imas/shared/imasdb/ITER/3/0'"¶
- idstools.scenariodescription.logger¶
- idstools.scenariodescription.yaml_mapping¶