pigeonpy.data.epddata.source.epdsource module

Defines the abstract base class for EPD data sources.

class pigeonpy.data.epddata.source.epdsource.EpdSource[source]

Bases: object

Abstract class containing basic attributes and methods utilized in all subclasses, i.e. implemented EPD sources.

standards

Contains available standards of the EPD source

Type:

list

dataset_template

Alias for EpdDataset class to specify the standard used for the respective EPD source among other things

Type:

EpdDataset

load_epd(epd_dataset, epd_id, scenario)[source]

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.

load(dataset_template)[source]

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.

contains_dataset(epd_id) → bool[source]

Method that checks if the respective source contains a dataset specified by the given epd_id.