hestia_earth.calculation.abstract_engine.Engine

class hestia_earth.calculation.abstract_engine.Engine[source]

Bases: object

Engine class. This is the engine abstract class for that orchestrates calculations for Hestia.

Methods

calculate_assessments

calculate_emissions

Method that orchestrates the execution of hierarchies of the engine.

calculate_transformation_emissions

Method that orchestrates the execution of transformation hierarchies of the engine.

export_assessments

Method that imports a jsonld file into the representation required to perform the Hestia calculations.

export_cycle

Method that exports the Engine representation into the Hestia Schema.

export_data

import_assessments

Method that imports a jsonld file into the representation required to perform the Hestia calculations.

import_cycle

Method that imports a jsonld file into the representation required to perform the Hestia calculations.

import_data

run

calculate_emissions()[source]

Method that orchestrates the execution of hierarchies of the engine. :param None:

Returns nothing.

calculate_transformation_emissions()[source]

Method that orchestrates the execution of transformation hierarchies of the engine. :param None:

Returns nothing.

export_assessments()[source]

Method that imports a jsonld file into the representation required to perform the Hestia calculations. :param file: A jsonld file

Returns nothing.

export_cycle()[source]

Method that exports the Engine representation into the Hestia Schema. :param None:

Returns a dict representing the recalculated cycle.

import_assessments(assessments)[source]

Method that imports a jsonld file into the representation required to perform the Hestia calculations. :param file: A jsonld file

Returns nothing.

import_cycle(cycle, site=None)[source]

Method that imports a jsonld file into the representation required to perform the Hestia calculations. :param file: A jsonld file

Returns nothing.