hestia_earth.calculation.assessment_hierarchies.Assessments_hierarchy¶
-
class
hestia_earth.calculation.assessment_hierarchies.Assessments_hierarchy[source]¶ Bases:
hestia_earth.calculation.abstract_hierarchy.HierarchyAssessments_hierarchy class. This is an abstract class from which inherit all the hierarchies defined in Hestia. It contains a set of common impacts and instance variables that are typically used by every hierarchy. A hierarchy defines the order to run the calculations of impacts in Hestia. The order is from higher tier to lower tier.
Methods
build_impact_assessmentbuild_indicatorbuild_indicators_arraycalculate_emissionsResourceUsescalculate_impact_indicatorsget_nameget_referenceMethod that runs the hierarchy through all the impacts for a given cycle.
process_hierarchy_no_cycleprocess_hierarchy_with_cycleMethod to round to a given number of significant numbers.
Method that checks if the model has enough data to do the calculation.
Attributes
context-
process_hierarchy(data)[source]¶ Method that runs the hierarchy through all the impacts for a given cycle. :param cycle: This is a cycle in the representation required by the calculation engine. :param (Different from the Schema representation):
Returns a file object.
-
round_to_significant(number, sig_number)¶ Method to round to a given number of significant numbers. :param number: The number to round. :param sig_number: The number of significant numbers.
Returns The rounded number.
-
update_representation(cycle)¶ Method that checks if the model has enough data to do the calculation. :param cycle: This is a cycle in the representation required by the calculation engine. :param (Different from the Schema representation):
Returns boolean.
-