hestia_earth.calculation.CalculationEngine

class hestia_earth.calculation.CalculationEngine(baseUrl)[source]

Bases: hestia_earth.calculation.abstract_engine.Engine

Engine class. This is the class that runs all the models for all emissions and impacts.

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()

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

Returns nothing.

calculate_transformation_emissions()

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

Returns nothing.

export_assessments()

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

Returns nothing.

export_cycle()

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

Returns a dict representing the recalculated cycle.

import_assessments(assessments)

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)

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

Returns nothing.