hestia-earth-models 0.64.12__py3-none-any.whl → 0.64.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of hestia-earth-models might be problematic. Click here for more details.
- hestia_earth/models/aware/scarcityWeightedWaterUse.py +1 -1
- hestia_earth/models/chaudharyBrooks2018/damageToTerrestrialEcosystemsLandOccupation.py +1 -1
- hestia_earth/models/chaudharyBrooks2018/damageToTerrestrialEcosystemsLandTransformation.py +1 -1
- hestia_earth/models/chaudharyBrooks2018/damageToTerrestrialEcosystemsTotalLandUseEffects.py +3 -2
- hestia_earth/models/cml2001Baseline/eutrophicationPotentialExcludingFate.py +2 -2
- hestia_earth/models/cml2001Baseline/terrestrialAcidificationPotentialIncludingFateAverageEurope.py +2 -2
- hestia_earth/models/cml2001NonBaseline/eutrophicationPotentialIncludingFateAverageEurope.py +2 -2
- hestia_earth/models/cml2001NonBaseline/terrestrialAcidificationPotentialExcludingFate.py +2 -2
- hestia_earth/models/cycle/completeness/seed.py +6 -4
- hestia_earth/models/cycle/concentrateFeed.py +9 -4
- hestia_earth/models/cycle/endDate.py +10 -1
- hestia_earth/models/cycle/milkYield.py +6 -5
- hestia_earth/models/cycle/startDate.py +6 -4
- hestia_earth/models/edip2003/ozoneDepletionPotential.py +2 -2
- hestia_earth/models/emissionNotRelevant/__init__.py +3 -2
- hestia_earth/models/environmentalFootprintV3/freshwaterEcotoxicityPotentialCtue.py +2 -3
- hestia_earth/models/hestia/landCover.py +28 -26
- hestia_earth/models/ipcc2013ExcludingFeedbacks/gwp100.py +2 -2
- hestia_earth/models/ipcc2013IncludingFeedbacks/gwp100.py +2 -2
- hestia_earth/models/ipcc2019/aboveGroundBiomass.py +4 -8
- hestia_earth/models/ipcc2019/animal/milkYieldPerAnimal.py +2 -2
- hestia_earth/models/ipcc2019/belowGroundBiomass.py +4 -8
- hestia_earth/models/ipcc2019/biomass_utils.py +11 -0
- hestia_earth/models/ipcc2019/ch4ToAirEntericFermentation.py +1 -1
- hestia_earth/models/ipcc2019/co2ToAirCarbonStockChange_utils.py +7 -3
- hestia_earth/models/ipcc2019/n2OToAirExcretaDirect.py +14 -9
- hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_1_utils.py +9 -3
- hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_2_utils.py +1 -2
- hestia_earth/models/koble2014/aboveGroundCropResidue.py +5 -1
- hestia_earth/models/lcImpactAllEffects100Years/damageToFreshwaterEcosystemsClimateChange.py +2 -2
- hestia_earth/models/lcImpactAllEffects100Years/damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py +2 -3
- hestia_earth/models/lcImpactAllEffects100Years/damageToFreshwaterEcosystemsPdfYear.py +2 -2
- hestia_earth/models/lcImpactAllEffects100Years/damageToHumanHealth.py +2 -2
- hestia_earth/models/lcImpactAllEffects100Years/damageToHumanHealthClimateChange.py +2 -2
- hestia_earth/models/lcImpactAllEffects100Years/damageToHumanHealthHumanToxicityCancerogenic.py +2 -3
- hestia_earth/models/lcImpactAllEffects100Years/damageToHumanHealthHumanToxicityNonCancerogenic.py +2 -3
- hestia_earth/models/lcImpactAllEffects100Years/damageToHumanHealthStratosphericOzoneDepletion.py +2 -2
- hestia_earth/models/lcImpactAllEffects100Years/damageToMarineEcosystemsMarineEcotoxicity.py +2 -3
- hestia_earth/models/lcImpactAllEffects100Years/damageToMarineEcosystemsPdfYear.py +2 -2
- hestia_earth/models/lcImpactAllEffects100Years/damageToTerrestrialEcosystemsClimateChange.py +2 -2
- hestia_earth/models/lcImpactAllEffects100Years/damageToTerrestrialEcosystemsPdfYear.py +2 -2
- hestia_earth/models/lcImpactAllEffects100Years/damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py +2 -3
- hestia_earth/models/lcImpactAllEffectsInfinite/damageToFreshwaterEcosystemsClimateChange.py +2 -2
- hestia_earth/models/lcImpactAllEffectsInfinite/damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py +2 -3
- hestia_earth/models/lcImpactAllEffectsInfinite/damageToFreshwaterEcosystemsPdfYear.py +2 -2
- hestia_earth/models/lcImpactAllEffectsInfinite/damageToHumanHealth.py +2 -2
- hestia_earth/models/lcImpactAllEffectsInfinite/damageToHumanHealthClimateChange.py +2 -2
- hestia_earth/models/lcImpactAllEffectsInfinite/damageToHumanHealthHumanToxicityCancerogenic.py +2 -3
- hestia_earth/models/lcImpactAllEffectsInfinite/damageToHumanHealthHumanToxicityNonCancerogenic.py +2 -3
- hestia_earth/models/lcImpactAllEffectsInfinite/damageToHumanHealthStratosphericOzoneDepletion.py +2 -2
- hestia_earth/models/lcImpactAllEffectsInfinite/damageToMarineEcosystemsMarineEcotoxicity.py +2 -3
- hestia_earth/models/lcImpactAllEffectsInfinite/damageToMarineEcosystemsPdfYear.py +2 -2
- hestia_earth/models/lcImpactAllEffectsInfinite/damageToTerrestrialEcosystemsClimateChange.py +2 -2
- hestia_earth/models/lcImpactAllEffectsInfinite/damageToTerrestrialEcosystemsPdfYear.py +2 -2
- hestia_earth/models/lcImpactAllEffectsInfinite/damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py +2 -3
- hestia_earth/models/lcImpactCertainEffects100Years/damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py +2 -3
- hestia_earth/models/lcImpactCertainEffects100Years/damageToFreshwaterEcosystemsPdfYear.py +2 -2
- hestia_earth/models/lcImpactCertainEffects100Years/damageToHumanHealth.py +2 -2
- hestia_earth/models/lcImpactCertainEffects100Years/damageToHumanHealthClimateChange.py +2 -2
- hestia_earth/models/lcImpactCertainEffects100Years/damageToHumanHealthHumanToxicityCancerogenic.py +2 -3
- hestia_earth/models/lcImpactCertainEffects100Years/damageToHumanHealthHumanToxicityNonCancerogenic.py +2 -3
- hestia_earth/models/lcImpactCertainEffects100Years/damageToHumanHealthStratosphericOzoneDepletion.py +2 -2
- hestia_earth/models/lcImpactCertainEffects100Years/damageToMarineEcosystemsMarineEcotoxicity.py +2 -3
- hestia_earth/models/lcImpactCertainEffects100Years/damageToMarineEcosystemsPdfYear.py +2 -2
- hestia_earth/models/lcImpactCertainEffects100Years/damageToTerrestrialEcosystemsClimateChange.py +2 -2
- hestia_earth/models/lcImpactCertainEffects100Years/damageToTerrestrialEcosystemsPdfYear.py +2 -2
- hestia_earth/models/lcImpactCertainEffects100Years/damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py +2 -3
- hestia_earth/models/lcImpactCertainEffectsInfinite/damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py +2 -3
- hestia_earth/models/lcImpactCertainEffectsInfinite/damageToFreshwaterEcosystemsPdfYear.py +2 -2
- hestia_earth/models/lcImpactCertainEffectsInfinite/damageToHumanHealth.py +2 -2
- hestia_earth/models/lcImpactCertainEffectsInfinite/damageToHumanHealthClimateChange.py +2 -2
- hestia_earth/models/lcImpactCertainEffectsInfinite/damageToHumanHealthHumanToxicityCancerogenic.py +2 -3
- hestia_earth/models/lcImpactCertainEffectsInfinite/damageToHumanHealthHumanToxicityNonCancerogenic.py +2 -3
- hestia_earth/models/lcImpactCertainEffectsInfinite/damageToHumanHealthStratosphericOzoneDepletion.py +2 -2
- hestia_earth/models/lcImpactCertainEffectsInfinite/damageToMarineEcosystemsMarineEcotoxicity.py +2 -3
- hestia_earth/models/lcImpactCertainEffectsInfinite/damageToMarineEcosystemsPdfYear.py +2 -2
- hestia_earth/models/lcImpactCertainEffectsInfinite/damageToTerrestrialEcosystemsClimateChange.py +2 -2
- hestia_earth/models/lcImpactCertainEffectsInfinite/damageToTerrestrialEcosystemsPdfYear.py +2 -2
- hestia_earth/models/lcImpactCertainEffectsInfinite/damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py +2 -3
- hestia_earth/models/linkedImpactAssessment/emissions.py +3 -0
- hestia_earth/models/log.py +4 -3
- hestia_earth/models/mocking/search-results.json +471 -471
- hestia_earth/models/pooreNemecek2018/excretaKgN.py +4 -4
- hestia_earth/models/pooreNemecek2018/excretaKgVs.py +4 -4
- hestia_earth/models/pooreNemecek2018/no3ToGroundwaterCropResidueDecomposition.py +1 -1
- hestia_earth/models/pooreNemecek2018/no3ToGroundwaterExcreta.py +1 -1
- hestia_earth/models/pooreNemecek2018/no3ToGroundwaterInorganicFertiliser.py +1 -1
- hestia_earth/models/pooreNemecek2018/no3ToGroundwaterOrganicFertiliser.py +1 -1
- hestia_earth/models/pooreNemecek2018/{saplings.py → saplingsDepreciatedAmountPerCycle.py} +1 -1
- hestia_earth/models/pooreNemecek2018/utils.py +7 -1
- hestia_earth/models/recipe2016Egalitarian/damageToFreshwaterEcosystemsSpeciesYear.py +2 -2
- hestia_earth/models/recipe2016Egalitarian/damageToHumanHealth.py +2 -2
- hestia_earth/models/recipe2016Egalitarian/damageToMarineEcosystemsSpeciesYear.py +2 -2
- hestia_earth/models/recipe2016Egalitarian/damageToTerrestrialEcosystemsSpeciesYear.py +2 -2
- hestia_earth/models/recipe2016Egalitarian/freshwaterAquaticEcotoxicityPotential14Dcbeq.py +2 -3
- hestia_earth/models/recipe2016Egalitarian/freshwaterEutrophicationPotential.py +2 -2
- hestia_earth/models/recipe2016Egalitarian/humanCarcinogenicToxicity.py +2 -3
- hestia_earth/models/recipe2016Egalitarian/humanNonCarcinogenicToxicity.py +2 -3
- hestia_earth/models/recipe2016Egalitarian/marineAquaticEcotoxicityPotential14Dcbeq.py +2 -3
- hestia_earth/models/recipe2016Egalitarian/marineEutrophicationPotential.py +2 -2
- hestia_earth/models/recipe2016Egalitarian/ozoneDepletionPotential.py +2 -2
- hestia_earth/models/recipe2016Egalitarian/terrestrialAcidificationPotential.py +2 -2
- hestia_earth/models/recipe2016Egalitarian/terrestrialEcotoxicityPotential14Dcbeq.py +2 -3
- hestia_earth/models/recipe2016Hierarchist/damageToFreshwaterEcosystemsSpeciesYear.py +2 -2
- hestia_earth/models/recipe2016Hierarchist/damageToHumanHealth.py +2 -2
- hestia_earth/models/recipe2016Hierarchist/damageToMarineEcosystemsSpeciesYear.py +2 -2
- hestia_earth/models/recipe2016Hierarchist/damageToTerrestrialEcosystemsSpeciesYear.py +2 -2
- hestia_earth/models/recipe2016Hierarchist/freshwaterAquaticEcotoxicityPotential14Dcbeq.py +2 -3
- hestia_earth/models/recipe2016Hierarchist/freshwaterEutrophicationPotential.py +2 -2
- hestia_earth/models/recipe2016Hierarchist/humanCarcinogenicToxicity.py +2 -3
- hestia_earth/models/recipe2016Hierarchist/humanNonCarcinogenicToxicity.py +2 -3
- hestia_earth/models/recipe2016Hierarchist/marineAquaticEcotoxicityPotential14Dcbeq.py +2 -3
- hestia_earth/models/recipe2016Hierarchist/marineEutrophicationPotential.py +2 -2
- hestia_earth/models/recipe2016Hierarchist/ozoneDepletionPotential.py +2 -2
- hestia_earth/models/recipe2016Hierarchist/terrestrialAcidificationPotential.py +2 -2
- hestia_earth/models/recipe2016Hierarchist/terrestrialEcotoxicityPotential14Dcbeq.py +2 -3
- hestia_earth/models/recipe2016Individualist/damageToFreshwaterEcosystemsSpeciesYear.py +2 -2
- hestia_earth/models/recipe2016Individualist/damageToHumanHealth.py +2 -2
- hestia_earth/models/recipe2016Individualist/damageToMarineEcosystemsSpeciesYear.py +2 -2
- hestia_earth/models/recipe2016Individualist/damageToTerrestrialEcosystemsSpeciesYear.py +2 -2
- hestia_earth/models/recipe2016Individualist/freshwaterAquaticEcotoxicityPotential14Dcbeq.py +2 -3
- hestia_earth/models/recipe2016Individualist/freshwaterEutrophicationPotential.py +2 -2
- hestia_earth/models/recipe2016Individualist/humanCarcinogenicToxicity.py +2 -3
- hestia_earth/models/recipe2016Individualist/humanNonCarcinogenicToxicity.py +2 -3
- hestia_earth/models/recipe2016Individualist/marineAquaticEcotoxicityPotential14Dcbeq.py +2 -3
- hestia_earth/models/recipe2016Individualist/marineEutrophicationPotential.py +2 -2
- hestia_earth/models/recipe2016Individualist/ozoneDepletionPotential.py +2 -2
- hestia_earth/models/recipe2016Individualist/terrestrialAcidificationPotential.py +2 -2
- hestia_earth/models/recipe2016Individualist/terrestrialEcotoxicityPotential14Dcbeq.py +2 -3
- hestia_earth/models/site/management.py +142 -144
- hestia_earth/models/stehfestBouwman2006/n2OToAirCropResidueDecompositionDirect.py +1 -1
- hestia_earth/models/stehfestBouwman2006/n2OToAirExcretaDirect.py +1 -1
- hestia_earth/models/stehfestBouwman2006/n2OToAirInorganicFertiliserDirect.py +1 -1
- hestia_earth/models/stehfestBouwman2006/n2OToAirOrganicFertiliserDirect.py +1 -1
- hestia_earth/models/stehfestBouwman2006/noxToAirCropResidueDecomposition.py +1 -1
- hestia_earth/models/stehfestBouwman2006/noxToAirExcreta.py +1 -1
- hestia_earth/models/stehfestBouwman2006/noxToAirInorganicFertiliser.py +1 -1
- hestia_earth/models/stehfestBouwman2006/noxToAirOrganicFertiliser.py +1 -1
- hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirCropResidueDecomposition.py +1 -1
- hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirExcreta.py +1 -1
- hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirInorganicFertiliser.py +1 -1
- hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirOrganicFertiliser.py +1 -1
- hestia_earth/models/usetoxV2/freshwaterEcotoxicityPotentialCtue.py +2 -3
- hestia_earth/models/utils/__init__.py +4 -1
- hestia_earth/models/utils/blank_node.py +34 -14
- hestia_earth/models/utils/emission.py +1 -8
- hestia_earth/models/utils/management.py +11 -0
- hestia_earth/models/utils/pesticideAI.py +11 -17
- hestia_earth/models/utils/term.py +2 -1
- hestia_earth/models/version.py +1 -1
- {hestia_earth_models-0.64.12.dist-info → hestia_earth_models-0.64.13.dist-info}/METADATA +4 -4
- {hestia_earth_models-0.64.12.dist-info → hestia_earth_models-0.64.13.dist-info}/RECORD +180 -183
- {hestia_earth_models-0.64.12.dist-info → hestia_earth_models-0.64.13.dist-info}/WHEEL +1 -1
- tests/models/cycle/completeness/test_seed.py +1 -1
- tests/models/cycle/test_endDate.py +18 -2
- tests/models/cycle/test_startDate.py +21 -3
- tests/models/hestia/test_landCover.py +3 -2
- tests/models/ipcc2019/test_aboveGroundBiomass.py +2 -1
- tests/models/ipcc2019/test_belowGroundBiomass.py +2 -1
- tests/models/ipcc2019/test_co2ToAirAboveGroundBiomassStockChange.py +4 -3
- tests/models/ipcc2019/test_co2ToAirBelowGroundBiomassStockChange.py +3 -3
- tests/models/ipcc2019/test_co2ToAirSoilOrganicCarbonStockChange.py +1 -1
- tests/models/ipcc2019/test_n2OToAirExcretaDirect.py +12 -0
- tests/models/ipcc2019/test_organicCarbonPerHa.py +1 -0
- tests/models/koble2014/test_aboveGroundCropResidue.py +13 -0
- tests/models/pooreNemecek2018/test_no3ToGroundwaterCropResidueDecomposition.py +3 -2
- tests/models/pooreNemecek2018/test_no3ToGroundwaterExcreta.py +3 -2
- tests/models/pooreNemecek2018/test_no3ToGroundwaterInorganicFertiliser.py +3 -2
- tests/models/pooreNemecek2018/test_no3ToGroundwaterOrganicFertiliser.py +3 -2
- tests/models/pooreNemecek2018/{test_saplings.py → test_saplingsDepreciatedAmountPerCycle.py} +1 -1
- tests/models/site/test_management.py +18 -151
- tests/models/utils/test_blank_node.py +57 -1
- tests/models/utils/test_emission.py +1 -6
- tests/models/utils/test_site.py +33 -2
- tests/models/pooreNemecek2018/test_no3ToGroundwaterSoilFlux.py +0 -90
- tests/models/stehfestBouwman2006/test_n2OToAirSoilFlux.py +0 -41
- tests/models/stehfestBouwman2006/test_noxToAirSoilFlux.py +0 -40
- tests/models/stehfestBouwman2006GisImplementation/test_noxToAirSoilFlux.py +0 -33
- /hestia_earth/models/pooreNemecek2018/{no3ToGroundwaterSoilFlux.py → no3ToGroundwaterSoilFlux_utils.py} +0 -0
- /hestia_earth/models/stehfestBouwman2006/{n2OToAirSoilFlux.py → n2OToAirSoilFlux_utils.py} +0 -0
- /hestia_earth/models/stehfestBouwman2006/{noxToAirSoilFlux.py → noxToAirSoilFlux_utils.py} +0 -0
- /hestia_earth/models/stehfestBouwman2006GisImplementation/{noxToAirSoilFlux.py → noxToAirSoilFlux_utils.py} +0 -0
- {hestia_earth_models-0.64.12.dist-info → hestia_earth_models-0.64.13.dist-info}/LICENSE +0 -0
- {hestia_earth_models-0.64.12.dist-info → hestia_earth_models-0.64.13.dist-info}/top_level.txt +0 -0
|
@@ -1271,8 +1271,7 @@ def _get_irrigated_monthly(year: int, cycles: list[dict]) -> list[bool]:
|
|
|
1271
1271
|
irrigation_nodes = non_empty_list(flatten([
|
|
1272
1272
|
[
|
|
1273
1273
|
{
|
|
1274
|
-
|
|
1275
|
-
"endDate": cycle.get("endDate"),
|
|
1274
|
+
**{key: cycle.get(key) for key in ["startDate", "endDate"] if cycle.get(key)},
|
|
1276
1275
|
**node
|
|
1277
1276
|
} for node in cycle.get("practices", [])
|
|
1278
1277
|
] for cycle in cycles
|
|
@@ -94,6 +94,10 @@ def _model_value(term_id: str, products: list):
|
|
|
94
94
|
return list_average(values) if len(values) > 0 else 0
|
|
95
95
|
|
|
96
96
|
|
|
97
|
+
def _remaining_model_value(products: list):
|
|
98
|
+
return list_sum(find_term_match(products, REMAINING_MODEL).get('value', []), 0)
|
|
99
|
+
|
|
100
|
+
|
|
97
101
|
def _run(cycle: dict, total_values: list):
|
|
98
102
|
products = cycle.get('products', [])
|
|
99
103
|
total_value = list_average(total_values)
|
|
@@ -126,7 +130,7 @@ def _run(cycle: dict, total_values: list):
|
|
|
126
130
|
|
|
127
131
|
return values + [
|
|
128
132
|
# whatever remains is "left on field"
|
|
129
|
-
_product(REMAINING_MODEL, remaining_value)
|
|
133
|
+
_product(REMAINING_MODEL, remaining_value + _remaining_model_value(products))
|
|
130
134
|
] if remaining_value > 0 else values
|
|
131
135
|
|
|
132
136
|
|
|
@@ -29,5 +29,5 @@ def run(impact_assessment: dict):
|
|
|
29
29
|
value = impact_emission_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['emission'])
|
|
30
30
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
31
31
|
value=value)
|
|
32
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
33
|
-
return _indicator(value)
|
|
32
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
33
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactAllEffects100Years/damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -33,5 +33,5 @@ def run(impact_assessment: dict):
|
|
|
33
33
|
value = impact_endpoint_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['characterisedIndicator'])
|
|
34
34
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
35
35
|
value=value)
|
|
36
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
37
|
-
return _indicator(value)
|
|
36
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
37
|
+
return _indicator(value) if value is not None else None
|
|
@@ -33,5 +33,5 @@ def run(impact_assessment: dict):
|
|
|
33
33
|
value = impact_endpoint_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['characterisedIndicator'])
|
|
34
34
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
35
35
|
value=value)
|
|
36
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
37
|
-
return _indicator(value)
|
|
36
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
37
|
+
return _indicator(value) if value is not None else None
|
|
@@ -29,5 +29,5 @@ def run(impact_assessment: dict):
|
|
|
29
29
|
value = impact_emission_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['emission'])
|
|
30
30
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
31
31
|
value=value)
|
|
32
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
33
|
-
return _indicator(value)
|
|
32
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
33
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactAllEffects100Years/damageToHumanHealthHumanToxicityCancerogenic.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactAllEffects100Years/damageToHumanHealthHumanToxicityNonCancerogenic.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactAllEffects100Years/damageToHumanHealthStratosphericOzoneDepletion.py
CHANGED
|
@@ -29,5 +29,5 @@ def run(impact_assessment: dict):
|
|
|
29
29
|
value = impact_emission_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['emission'])
|
|
30
30
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
31
31
|
value=value)
|
|
32
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
33
|
-
return _indicator(value)
|
|
32
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -33,5 +33,5 @@ def run(impact_assessment: dict):
|
|
|
33
33
|
value = impact_endpoint_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['characterisedIndicator'])
|
|
34
34
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
35
35
|
value=value)
|
|
36
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
37
|
-
return _indicator(value)
|
|
36
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
37
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactAllEffects100Years/damageToTerrestrialEcosystemsClimateChange.py
CHANGED
|
@@ -29,5 +29,5 @@ def run(impact_assessment: dict):
|
|
|
29
29
|
value = impact_emission_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['emission'])
|
|
30
30
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
31
31
|
value=value)
|
|
32
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
33
|
-
return _indicator(value)
|
|
32
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -33,5 +33,5 @@ def run(impact_assessment: dict):
|
|
|
33
33
|
value = impact_endpoint_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['characterisedIndicator'])
|
|
34
34
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
35
35
|
value=value)
|
|
36
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
37
|
-
return _indicator(value)
|
|
36
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
37
|
+
return _indicator(value) if value is not None else None
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -29,5 +29,5 @@ def run(impact_assessment: dict):
|
|
|
29
29
|
value = impact_emission_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['emission'])
|
|
30
30
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
31
31
|
value=value)
|
|
32
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
33
|
-
return _indicator(value)
|
|
32
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
33
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactAllEffectsInfinite/damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -33,5 +33,5 @@ def run(impact_assessment: dict):
|
|
|
33
33
|
value = impact_endpoint_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['characterisedIndicator'])
|
|
34
34
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
35
35
|
value=value)
|
|
36
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
37
|
-
return _indicator(value)
|
|
36
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
37
|
+
return _indicator(value) if value is not None else None
|
|
@@ -33,5 +33,5 @@ def run(impact_assessment: dict):
|
|
|
33
33
|
value = impact_endpoint_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['characterisedIndicator'])
|
|
34
34
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
35
35
|
value=value)
|
|
36
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
37
|
-
return _indicator(value)
|
|
36
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
37
|
+
return _indicator(value) if value is not None else None
|
|
@@ -29,5 +29,5 @@ def run(impact_assessment: dict):
|
|
|
29
29
|
value = impact_emission_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['emission'])
|
|
30
30
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
31
31
|
value=value)
|
|
32
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
33
|
-
return _indicator(value)
|
|
32
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
33
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactAllEffectsInfinite/damageToHumanHealthHumanToxicityCancerogenic.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactAllEffectsInfinite/damageToHumanHealthHumanToxicityNonCancerogenic.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactAllEffectsInfinite/damageToHumanHealthStratosphericOzoneDepletion.py
CHANGED
|
@@ -29,5 +29,5 @@ def run(impact_assessment: dict):
|
|
|
29
29
|
value = impact_emission_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['emission'])
|
|
30
30
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
31
31
|
value=value)
|
|
32
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
33
|
-
return _indicator(value)
|
|
32
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -33,5 +33,5 @@ def run(impact_assessment: dict):
|
|
|
33
33
|
value = impact_endpoint_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['characterisedIndicator'])
|
|
34
34
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
35
35
|
value=value)
|
|
36
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
37
|
-
return _indicator(value)
|
|
36
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
37
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactAllEffectsInfinite/damageToTerrestrialEcosystemsClimateChange.py
CHANGED
|
@@ -29,5 +29,5 @@ def run(impact_assessment: dict):
|
|
|
29
29
|
value = impact_emission_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['emission'])
|
|
30
30
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
31
31
|
value=value)
|
|
32
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
33
|
-
return _indicator(value)
|
|
32
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -33,5 +33,5 @@ def run(impact_assessment: dict):
|
|
|
33
33
|
value = impact_endpoint_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['characterisedIndicator'])
|
|
34
34
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
35
35
|
value=value)
|
|
36
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
37
|
-
return _indicator(value)
|
|
36
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
37
|
+
return _indicator(value) if value is not None else None
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -33,5 +33,5 @@ def run(impact_assessment: dict):
|
|
|
33
33
|
value = impact_endpoint_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['characterisedIndicator'])
|
|
34
34
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
35
35
|
value=value)
|
|
36
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
37
|
-
return _indicator(value)
|
|
36
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
37
|
+
return _indicator(value) if value is not None else None
|
|
@@ -33,5 +33,5 @@ def run(impact_assessment: dict):
|
|
|
33
33
|
value = impact_endpoint_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['characterisedIndicator'])
|
|
34
34
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
35
35
|
value=value)
|
|
36
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
37
|
-
return _indicator(value)
|
|
36
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
37
|
+
return _indicator(value) if value is not None else None
|
|
@@ -29,5 +29,5 @@ def run(impact_assessment: dict):
|
|
|
29
29
|
value = impact_emission_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['emission'])
|
|
30
30
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
31
31
|
value=value)
|
|
32
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
33
|
-
return _indicator(value)
|
|
32
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
33
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactCertainEffects100Years/damageToHumanHealthHumanToxicityCancerogenic.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactCertainEffects100Years/damageToHumanHealthStratosphericOzoneDepletion.py
CHANGED
|
@@ -29,5 +29,5 @@ def run(impact_assessment: dict):
|
|
|
29
29
|
value = impact_emission_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['emission'])
|
|
30
30
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
31
31
|
value=value)
|
|
32
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
33
|
-
return _indicator(value)
|
|
32
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
33
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactCertainEffects100Years/damageToMarineEcosystemsMarineEcotoxicity.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -33,5 +33,5 @@ def run(impact_assessment: dict):
|
|
|
33
33
|
value = impact_endpoint_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['characterisedIndicator'])
|
|
34
34
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
35
35
|
value=value)
|
|
36
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
37
|
-
return _indicator(value)
|
|
36
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
37
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactCertainEffects100Years/damageToTerrestrialEcosystemsClimateChange.py
CHANGED
|
@@ -29,5 +29,5 @@ def run(impact_assessment: dict):
|
|
|
29
29
|
value = impact_emission_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['emission'])
|
|
30
30
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
31
31
|
value=value)
|
|
32
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
33
|
-
return _indicator(value)
|
|
32
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -33,5 +33,5 @@ def run(impact_assessment: dict):
|
|
|
33
33
|
value = impact_endpoint_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['characterisedIndicator'])
|
|
34
34
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
35
35
|
value=value)
|
|
36
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
37
|
-
return _indicator(value)
|
|
36
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
37
|
+
return _indicator(value) if value is not None else None
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -33,5 +33,5 @@ def run(impact_assessment: dict):
|
|
|
33
33
|
value = impact_endpoint_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['characterisedIndicator'])
|
|
34
34
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
35
35
|
value=value)
|
|
36
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
37
|
-
return _indicator(value)
|
|
36
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
37
|
+
return _indicator(value) if value is not None else None
|
|
@@ -33,5 +33,5 @@ def run(impact_assessment: dict):
|
|
|
33
33
|
value = impact_endpoint_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['characterisedIndicator'])
|
|
34
34
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
35
35
|
value=value)
|
|
36
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
37
|
-
return _indicator(value)
|
|
36
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
37
|
+
return _indicator(value) if value is not None else None
|
|
@@ -29,5 +29,5 @@ def run(impact_assessment: dict):
|
|
|
29
29
|
value = impact_emission_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['emission'])
|
|
30
30
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
31
31
|
value=value)
|
|
32
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
33
|
-
return _indicator(value)
|
|
32
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
33
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactCertainEffectsInfinite/damageToHumanHealthHumanToxicityCancerogenic.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactCertainEffectsInfinite/damageToHumanHealthStratosphericOzoneDepletion.py
CHANGED
|
@@ -29,5 +29,5 @@ def run(impact_assessment: dict):
|
|
|
29
29
|
value = impact_emission_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['emission'])
|
|
30
30
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
31
31
|
value=value)
|
|
32
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
33
|
-
return _indicator(value)
|
|
32
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
33
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactCertainEffectsInfinite/damageToMarineEcosystemsMarineEcotoxicity.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -33,5 +33,5 @@ def run(impact_assessment: dict):
|
|
|
33
33
|
value = impact_endpoint_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['characterisedIndicator'])
|
|
34
34
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
35
35
|
value=value)
|
|
36
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
37
|
-
return _indicator(value)
|
|
36
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
37
|
+
return _indicator(value) if value is not None else None
|
hestia_earth/models/lcImpactCertainEffectsInfinite/damageToTerrestrialEcosystemsClimateChange.py
CHANGED
|
@@ -29,5 +29,5 @@ def run(impact_assessment: dict):
|
|
|
29
29
|
value = impact_emission_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['emission'])
|
|
30
30
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
31
31
|
value=value)
|
|
32
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
33
|
-
return _indicator(value)
|
|
32
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
33
|
+
return _indicator(value) if value is not None else None
|
|
@@ -33,5 +33,5 @@ def run(impact_assessment: dict):
|
|
|
33
33
|
value = impact_endpoint_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['characterisedIndicator'])
|
|
34
34
|
logRequirements(impact_assessment, model=MODEL, term=TERM_ID,
|
|
35
35
|
value=value)
|
|
36
|
-
logShouldRun(impact_assessment, MODEL, TERM_ID,
|
|
37
|
-
return _indicator(value)
|
|
36
|
+
logShouldRun(impact_assessment, MODEL, TERM_ID, value is not None)
|
|
37
|
+
return _indicator(value) if value is not None else None
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from hestia_earth.models.utils.indicator import _new_indicator
|
|
2
|
-
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
2
|
+
from hestia_earth.models.utils.pesticideAI import impact_lookup_value
|
|
3
3
|
from . import MODEL
|
|
4
4
|
|
|
5
5
|
REQUIREMENTS = {
|
|
@@ -30,5 +30,4 @@ def _indicator(value: float):
|
|
|
30
30
|
|
|
31
31
|
def run(impact_assessment: dict):
|
|
32
32
|
value = impact_lookup_value(MODEL, TERM_ID, impact_assessment, LOOKUPS['pesticideAI'])
|
|
33
|
-
|
|
34
|
-
return _indicator(value) if should_run else None
|
|
33
|
+
return _indicator(value) if value is not None else None
|