hestia_earth.calculation.CalculationEngine¶
-
class
hestia_earth.calculation.CalculationEngine(baseUrl)[source]¶ Bases:
hestia_earth.calculation.abstract_engine.EngineEngine class. This is the class that runs all the models for all emissions and impacts.
Methods
calculate_assessmentsMethod that orchestrates the execution of hierarchies of the engine.
Method that orchestrates the execution of transformation hierarchies of the engine.
Method that imports a jsonld file into the representation required to perform the Hestia calculations.
Method that exports the Engine representation into the Hestia Schema.
export_dataMethod that imports a jsonld file into the representation required to perform the Hestia calculations.
Method that imports a jsonld file into the representation required to perform the Hestia calculations.
import_datarun-
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.
-