pigeonpy.data.epddata.source.fileepdsource module¶
Defines the abstract base class for local, file-based EPD data sources.
- class pigeonpy.data.epddata.source.fileepdsource.FileEpdSource(filepath)[source]¶
Bases:
EpdSourceAbstract class for EPD sources using files as data source.
- contains_dataset(epd_id) bool¶
Method that checks if the respective source contains a dataset specified by the given epd_id.
- load(dataset_template)¶
Initializes the datasource, e.g. by loading file bindings for the database.
- Parameters:
dataset_template (EpdDataset) – The dataset template is used to determine the standard for the datasource.
- load_epd(epd_dataset, epd_id, scenario)¶
Method to load the EPD dataset given by an epd_id from the respective source.
- Parameters:
epd_dataset (EpdDataset) – Instance to store the loaded EPD data.
epd_id (str) – Identifier, e.g. UUID, for finding an EPD dataset within a source.
scenario (str) – Used to select the scenario for an EPD dataset, if scenarios are present.