sssparser package¶
Submodules¶
sssparser.DataConfig module¶
sssparser.ParseScenarios module¶
-
sssparser.ParseScenarios.
parse_file_name
(s, config_set)[source]¶ Parses the filename into the relevant configuration components and returns as a dict :param s: filename :return: dict
sssparser.ScenarioFile module¶
-
class
sssparser.ScenarioFile.
ScenarioFile
(config_set, fp, scenario, attribute, temporal_resolution, spatial_resolution)[source]¶ Bases:
object
Class representing individual input data files. Contains methods to parse and format those files based on configs.
-
SPATIAL_CUMULATIVE
= {'id': 'total', 'label': 'Cumulative'}¶
-
TEMPORAL_CUMULATIVE
= {'id': 'total', 'label': 'Cumulative'}¶
-
scenario_id
¶
-
attribute_id
¶
-
temporal_resolution_id
¶
-
spatial_resolution_id
¶
-
sssparser.ScenariosDataset module¶
-
class
sssparser.ScenariosDataset.
ScenariosDataset
(dataset_dir, scenario_data_dirname='ScenarioData')[source]¶ Bases:
object
Parameters: - dataset_dir (str) – Name of the directory containing the dataset to be examined, e.g. ‘NREL Standard Scenarios 2016’
- scenario_data_dirname (str) – Directory that holds all of the datasets of interest (e.g. sssmatch/sssmixes)
-
GENMIX_ATTRIBUTES
= ['capacity', 'generation']¶
-
gentypes
¶ Assumes generator types can be inferred from ScenarioFiles with attribute_id == ‘capacity’ and spatial_resolution_id == ‘national’.
Returns: List of generator types found in the ScenariosDataset Return type: list
-
years
¶
-
scenarios
¶
-
geographies
¶