pigeonpy.data.epdattributeloader module

For reading the JSON input files with standard specific EPD information (environmental indicators and life cycle modules) used within EPD dataset objects.

class pigeonpy.data.epdattributeloader.EpdAttributeLoader(environmental_indicators: list = None, life_cycle_stages: list = None, dataset_template=None)[source]

Bases: object

Handles the loading of environmental indicators and life cycle stages from the json files into lists containing EnvironmentalIndicator and LifeCycleStages instances. It is also responsible for handling the customization of attributes.

Every EpdDataset class holds one EpdAttributeLoader instance that is responsible for assigning the environmental indicators and life cycle stages to the EpdDataset class and subclasses associated class variables. For the case of custom attributes the EpdAttributeLoader of the class is exchanged with a new EpdAttributeLoader containing the wished attributes (see study class).

indicators_a1_path

Path to the environmental indicator json for the EN15804+A1 standard

Type:

str

indicators_a2_path

Path to the environmental indicator json for the EN15804+A2 standard

Type:

str

life_cycle_stages_path

Path to the life cycle stages json according to the EN15804 standard

Type:

str

environmental_indicators_to_be_used

If it is specified and not None, it contains the environmental indicator abbreviations that are defined for the study. It defaults to None, i.e. all environmental indicators from the standard/ json file are used.

Type:

list

life_cycle_stages_to_be_used

If it is specified and not None, it contains the life cycle stage abbreviations that are defined for the study. It defaults to None, i.e. all life cycle stages from the standard/ json file are used.

Type:

list

dataset_template

Not an instance of EpdDataset but the EpdDataset class itself (typically a subclass of EpdDataset used to indicate the standard for a study).

Type:

EpdDataset

indicators_a1

Contains the EnvironmentalIndicator objects for all available indicators of the EN15804+A1 standard in the json file. Gets assigned when an instance is created.

Type:

list

indicators_a2

Contains the EnvironmentalIndicator objects for all available indicators of the EN15804+A2 standard in the json file. Gets assigned when an instance is created.

Type:

list

life_cycle_stages

Contains the LifeCycleStage objects for all available indicators of the EN15804 standard in the json file. Gets assigned when an instance is created.

Type:

list