hestia-earth-models 0.64.11__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.

Files changed (196) hide show
  1. hestia_earth/models/aware/scarcityWeightedWaterUse.py +1 -1
  2. hestia_earth/models/chaudharyBrooks2018/damageToTerrestrialEcosystemsLandOccupation.py +1 -1
  3. hestia_earth/models/chaudharyBrooks2018/damageToTerrestrialEcosystemsLandTransformation.py +1 -1
  4. hestia_earth/models/chaudharyBrooks2018/damageToTerrestrialEcosystemsTotalLandUseEffects.py +3 -2
  5. hestia_earth/models/cml2001Baseline/eutrophicationPotentialExcludingFate.py +2 -2
  6. hestia_earth/models/cml2001Baseline/terrestrialAcidificationPotentialIncludingFateAverageEurope.py +2 -2
  7. hestia_earth/models/cml2001NonBaseline/eutrophicationPotentialIncludingFateAverageEurope.py +2 -2
  8. hestia_earth/models/cml2001NonBaseline/terrestrialAcidificationPotentialExcludingFate.py +2 -2
  9. hestia_earth/models/cycle/completeness/seed.py +6 -4
  10. hestia_earth/models/cycle/concentrateFeed.py +36 -19
  11. hestia_earth/models/cycle/endDate.py +10 -1
  12. hestia_earth/models/cycle/milkYield.py +6 -5
  13. hestia_earth/models/cycle/startDate.py +6 -4
  14. hestia_earth/models/edip2003/ozoneDepletionPotential.py +2 -2
  15. hestia_earth/models/emissionNotRelevant/__init__.py +3 -2
  16. hestia_earth/models/environmentalFootprintV3/freshwaterEcotoxicityPotentialCtue.py +2 -3
  17. hestia_earth/models/faostat2018/utils.py +72 -12
  18. hestia_earth/models/hestia/__init__.py +13 -0
  19. hestia_earth/models/hestia/landCover.py +727 -0
  20. hestia_earth/models/ipcc2013ExcludingFeedbacks/gwp100.py +2 -2
  21. hestia_earth/models/ipcc2013IncludingFeedbacks/gwp100.py +2 -2
  22. hestia_earth/models/ipcc2019/aboveGroundBiomass.py +4 -8
  23. hestia_earth/models/ipcc2019/animal/fatContent.py +1 -1
  24. hestia_earth/models/ipcc2019/animal/milkYieldPerAnimal.py +91 -0
  25. hestia_earth/models/ipcc2019/animal/trueProteinContent.py +1 -1
  26. hestia_earth/models/ipcc2019/animal/utils.py +17 -12
  27. hestia_earth/models/ipcc2019/belowGroundBiomass.py +4 -8
  28. hestia_earth/models/ipcc2019/biomass_utils.py +11 -0
  29. hestia_earth/models/ipcc2019/ch4ToAirEntericFermentation.py +1 -1
  30. hestia_earth/models/ipcc2019/co2ToAirAboveGroundBiomassStockChange.py +8 -4
  31. hestia_earth/models/ipcc2019/co2ToAirBelowGroundBiomassStockChange.py +7 -3
  32. hestia_earth/models/ipcc2019/co2ToAirCarbonStockChange_utils.py +52 -6
  33. hestia_earth/models/ipcc2019/co2ToAirSoilOrganicCarbonStockChange.py +7 -3
  34. hestia_earth/models/ipcc2019/n2OToAirExcretaDirect.py +14 -9
  35. hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_1_utils.py +9 -3
  36. hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_2_utils.py +1 -2
  37. hestia_earth/models/koble2014/aboveGroundCropResidue.py +5 -1
  38. hestia_earth/models/lcImpactAllEffects100Years/damageToFreshwaterEcosystemsClimateChange.py +2 -2
  39. hestia_earth/models/lcImpactAllEffects100Years/damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py +2 -3
  40. hestia_earth/models/lcImpactAllEffects100Years/damageToFreshwaterEcosystemsPdfYear.py +2 -2
  41. hestia_earth/models/lcImpactAllEffects100Years/damageToHumanHealth.py +2 -2
  42. hestia_earth/models/lcImpactAllEffects100Years/damageToHumanHealthClimateChange.py +2 -2
  43. hestia_earth/models/lcImpactAllEffects100Years/damageToHumanHealthHumanToxicityCancerogenic.py +2 -3
  44. hestia_earth/models/lcImpactAllEffects100Years/damageToHumanHealthHumanToxicityNonCancerogenic.py +2 -3
  45. hestia_earth/models/lcImpactAllEffects100Years/damageToHumanHealthStratosphericOzoneDepletion.py +2 -2
  46. hestia_earth/models/lcImpactAllEffects100Years/damageToMarineEcosystemsMarineEcotoxicity.py +2 -3
  47. hestia_earth/models/lcImpactAllEffects100Years/damageToMarineEcosystemsPdfYear.py +2 -2
  48. hestia_earth/models/lcImpactAllEffects100Years/damageToTerrestrialEcosystemsClimateChange.py +2 -2
  49. hestia_earth/models/lcImpactAllEffects100Years/damageToTerrestrialEcosystemsPdfYear.py +2 -2
  50. hestia_earth/models/lcImpactAllEffects100Years/damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py +2 -3
  51. hestia_earth/models/lcImpactAllEffectsInfinite/damageToFreshwaterEcosystemsClimateChange.py +2 -2
  52. hestia_earth/models/lcImpactAllEffectsInfinite/damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py +2 -3
  53. hestia_earth/models/lcImpactAllEffectsInfinite/damageToFreshwaterEcosystemsPdfYear.py +2 -2
  54. hestia_earth/models/lcImpactAllEffectsInfinite/damageToHumanHealth.py +2 -2
  55. hestia_earth/models/lcImpactAllEffectsInfinite/damageToHumanHealthClimateChange.py +2 -2
  56. hestia_earth/models/lcImpactAllEffectsInfinite/damageToHumanHealthHumanToxicityCancerogenic.py +2 -3
  57. hestia_earth/models/lcImpactAllEffectsInfinite/damageToHumanHealthHumanToxicityNonCancerogenic.py +2 -3
  58. hestia_earth/models/lcImpactAllEffectsInfinite/damageToHumanHealthStratosphericOzoneDepletion.py +2 -2
  59. hestia_earth/models/lcImpactAllEffectsInfinite/damageToMarineEcosystemsMarineEcotoxicity.py +2 -3
  60. hestia_earth/models/lcImpactAllEffectsInfinite/damageToMarineEcosystemsPdfYear.py +2 -2
  61. hestia_earth/models/lcImpactAllEffectsInfinite/damageToTerrestrialEcosystemsClimateChange.py +2 -2
  62. hestia_earth/models/lcImpactAllEffectsInfinite/damageToTerrestrialEcosystemsPdfYear.py +2 -2
  63. hestia_earth/models/lcImpactAllEffectsInfinite/damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py +2 -3
  64. hestia_earth/models/lcImpactCertainEffects100Years/damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py +2 -3
  65. hestia_earth/models/lcImpactCertainEffects100Years/damageToFreshwaterEcosystemsPdfYear.py +2 -2
  66. hestia_earth/models/lcImpactCertainEffects100Years/damageToHumanHealth.py +2 -2
  67. hestia_earth/models/lcImpactCertainEffects100Years/damageToHumanHealthClimateChange.py +2 -2
  68. hestia_earth/models/lcImpactCertainEffects100Years/damageToHumanHealthHumanToxicityCancerogenic.py +2 -3
  69. hestia_earth/models/lcImpactCertainEffects100Years/damageToHumanHealthHumanToxicityNonCancerogenic.py +2 -3
  70. hestia_earth/models/lcImpactCertainEffects100Years/damageToHumanHealthStratosphericOzoneDepletion.py +2 -2
  71. hestia_earth/models/lcImpactCertainEffects100Years/damageToMarineEcosystemsMarineEcotoxicity.py +2 -3
  72. hestia_earth/models/lcImpactCertainEffects100Years/damageToMarineEcosystemsPdfYear.py +2 -2
  73. hestia_earth/models/lcImpactCertainEffects100Years/damageToTerrestrialEcosystemsClimateChange.py +2 -2
  74. hestia_earth/models/lcImpactCertainEffects100Years/damageToTerrestrialEcosystemsPdfYear.py +2 -2
  75. hestia_earth/models/lcImpactCertainEffects100Years/damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py +2 -3
  76. hestia_earth/models/lcImpactCertainEffectsInfinite/damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py +2 -3
  77. hestia_earth/models/lcImpactCertainEffectsInfinite/damageToFreshwaterEcosystemsPdfYear.py +2 -2
  78. hestia_earth/models/lcImpactCertainEffectsInfinite/damageToHumanHealth.py +2 -2
  79. hestia_earth/models/lcImpactCertainEffectsInfinite/damageToHumanHealthClimateChange.py +2 -2
  80. hestia_earth/models/lcImpactCertainEffectsInfinite/damageToHumanHealthHumanToxicityCancerogenic.py +2 -3
  81. hestia_earth/models/lcImpactCertainEffectsInfinite/damageToHumanHealthHumanToxicityNonCancerogenic.py +2 -3
  82. hestia_earth/models/lcImpactCertainEffectsInfinite/damageToHumanHealthStratosphericOzoneDepletion.py +2 -2
  83. hestia_earth/models/lcImpactCertainEffectsInfinite/damageToMarineEcosystemsMarineEcotoxicity.py +2 -3
  84. hestia_earth/models/lcImpactCertainEffectsInfinite/damageToMarineEcosystemsPdfYear.py +2 -2
  85. hestia_earth/models/lcImpactCertainEffectsInfinite/damageToTerrestrialEcosystemsClimateChange.py +2 -2
  86. hestia_earth/models/lcImpactCertainEffectsInfinite/damageToTerrestrialEcosystemsPdfYear.py +2 -2
  87. hestia_earth/models/lcImpactCertainEffectsInfinite/damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py +2 -3
  88. hestia_earth/models/linkedImpactAssessment/emissions.py +3 -0
  89. hestia_earth/models/log.py +4 -3
  90. hestia_earth/models/mocking/search-results.json +575 -575
  91. hestia_earth/models/pooreNemecek2018/excretaKgN.py +4 -4
  92. hestia_earth/models/pooreNemecek2018/excretaKgVs.py +4 -4
  93. hestia_earth/models/pooreNemecek2018/no3ToGroundwaterCropResidueDecomposition.py +1 -1
  94. hestia_earth/models/pooreNemecek2018/no3ToGroundwaterExcreta.py +1 -1
  95. hestia_earth/models/pooreNemecek2018/no3ToGroundwaterInorganicFertiliser.py +1 -1
  96. hestia_earth/models/pooreNemecek2018/no3ToGroundwaterOrganicFertiliser.py +1 -1
  97. hestia_earth/models/pooreNemecek2018/{saplings.py → saplingsDepreciatedAmountPerCycle.py} +1 -1
  98. hestia_earth/models/pooreNemecek2018/utils.py +7 -1
  99. hestia_earth/models/recipe2016Egalitarian/damageToFreshwaterEcosystemsSpeciesYear.py +2 -2
  100. hestia_earth/models/recipe2016Egalitarian/damageToHumanHealth.py +2 -2
  101. hestia_earth/models/recipe2016Egalitarian/damageToMarineEcosystemsSpeciesYear.py +2 -2
  102. hestia_earth/models/recipe2016Egalitarian/damageToTerrestrialEcosystemsSpeciesYear.py +2 -2
  103. hestia_earth/models/recipe2016Egalitarian/freshwaterAquaticEcotoxicityPotential14Dcbeq.py +2 -3
  104. hestia_earth/models/recipe2016Egalitarian/freshwaterEutrophicationPotential.py +2 -2
  105. hestia_earth/models/recipe2016Egalitarian/humanCarcinogenicToxicity.py +2 -3
  106. hestia_earth/models/recipe2016Egalitarian/humanNonCarcinogenicToxicity.py +2 -3
  107. hestia_earth/models/recipe2016Egalitarian/marineAquaticEcotoxicityPotential14Dcbeq.py +2 -3
  108. hestia_earth/models/recipe2016Egalitarian/marineEutrophicationPotential.py +2 -2
  109. hestia_earth/models/recipe2016Egalitarian/ozoneDepletionPotential.py +2 -2
  110. hestia_earth/models/recipe2016Egalitarian/terrestrialAcidificationPotential.py +2 -2
  111. hestia_earth/models/recipe2016Egalitarian/terrestrialEcotoxicityPotential14Dcbeq.py +2 -3
  112. hestia_earth/models/recipe2016Hierarchist/damageToFreshwaterEcosystemsSpeciesYear.py +2 -2
  113. hestia_earth/models/recipe2016Hierarchist/damageToHumanHealth.py +2 -2
  114. hestia_earth/models/recipe2016Hierarchist/damageToMarineEcosystemsSpeciesYear.py +2 -2
  115. hestia_earth/models/recipe2016Hierarchist/damageToTerrestrialEcosystemsSpeciesYear.py +2 -2
  116. hestia_earth/models/recipe2016Hierarchist/freshwaterAquaticEcotoxicityPotential14Dcbeq.py +2 -3
  117. hestia_earth/models/recipe2016Hierarchist/freshwaterEutrophicationPotential.py +2 -2
  118. hestia_earth/models/recipe2016Hierarchist/humanCarcinogenicToxicity.py +2 -3
  119. hestia_earth/models/recipe2016Hierarchist/humanNonCarcinogenicToxicity.py +2 -3
  120. hestia_earth/models/recipe2016Hierarchist/marineAquaticEcotoxicityPotential14Dcbeq.py +2 -3
  121. hestia_earth/models/recipe2016Hierarchist/marineEutrophicationPotential.py +2 -2
  122. hestia_earth/models/recipe2016Hierarchist/ozoneDepletionPotential.py +2 -2
  123. hestia_earth/models/recipe2016Hierarchist/terrestrialAcidificationPotential.py +2 -2
  124. hestia_earth/models/recipe2016Hierarchist/terrestrialEcotoxicityPotential14Dcbeq.py +2 -3
  125. hestia_earth/models/recipe2016Individualist/damageToFreshwaterEcosystemsSpeciesYear.py +2 -2
  126. hestia_earth/models/recipe2016Individualist/damageToHumanHealth.py +2 -2
  127. hestia_earth/models/recipe2016Individualist/damageToMarineEcosystemsSpeciesYear.py +2 -2
  128. hestia_earth/models/recipe2016Individualist/damageToTerrestrialEcosystemsSpeciesYear.py +2 -2
  129. hestia_earth/models/recipe2016Individualist/freshwaterAquaticEcotoxicityPotential14Dcbeq.py +2 -3
  130. hestia_earth/models/recipe2016Individualist/freshwaterEutrophicationPotential.py +2 -2
  131. hestia_earth/models/recipe2016Individualist/humanCarcinogenicToxicity.py +2 -3
  132. hestia_earth/models/recipe2016Individualist/humanNonCarcinogenicToxicity.py +2 -3
  133. hestia_earth/models/recipe2016Individualist/marineAquaticEcotoxicityPotential14Dcbeq.py +2 -3
  134. hestia_earth/models/recipe2016Individualist/marineEutrophicationPotential.py +2 -2
  135. hestia_earth/models/recipe2016Individualist/ozoneDepletionPotential.py +2 -2
  136. hestia_earth/models/recipe2016Individualist/terrestrialAcidificationPotential.py +2 -2
  137. hestia_earth/models/recipe2016Individualist/terrestrialEcotoxicityPotential14Dcbeq.py +2 -3
  138. hestia_earth/models/site/management.py +142 -144
  139. hestia_earth/models/stehfestBouwman2006/n2OToAirCropResidueDecompositionDirect.py +1 -1
  140. hestia_earth/models/stehfestBouwman2006/n2OToAirExcretaDirect.py +1 -1
  141. hestia_earth/models/stehfestBouwman2006/n2OToAirInorganicFertiliserDirect.py +1 -1
  142. hestia_earth/models/stehfestBouwman2006/n2OToAirOrganicFertiliserDirect.py +1 -1
  143. hestia_earth/models/stehfestBouwman2006/noxToAirCropResidueDecomposition.py +1 -1
  144. hestia_earth/models/stehfestBouwman2006/noxToAirExcreta.py +1 -1
  145. hestia_earth/models/stehfestBouwman2006/noxToAirInorganicFertiliser.py +1 -1
  146. hestia_earth/models/stehfestBouwman2006/noxToAirOrganicFertiliser.py +1 -1
  147. hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirCropResidueDecomposition.py +1 -1
  148. hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirExcreta.py +1 -1
  149. hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirInorganicFertiliser.py +1 -1
  150. hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirOrganicFertiliser.py +1 -1
  151. hestia_earth/models/usetoxV2/freshwaterEcotoxicityPotentialCtue.py +2 -3
  152. hestia_earth/models/utils/__init__.py +4 -1
  153. hestia_earth/models/utils/blank_node.py +34 -14
  154. hestia_earth/models/utils/emission.py +1 -8
  155. hestia_earth/models/utils/lookup.py +2 -1
  156. hestia_earth/models/utils/management.py +11 -0
  157. hestia_earth/models/utils/pesticideAI.py +11 -17
  158. hestia_earth/models/utils/term.py +2 -1
  159. hestia_earth/models/version.py +1 -1
  160. {hestia_earth_models-0.64.11.dist-info → hestia_earth_models-0.64.13.dist-info}/METADATA +4 -4
  161. {hestia_earth_models-0.64.11.dist-info → hestia_earth_models-0.64.13.dist-info}/RECORD +192 -188
  162. {hestia_earth_models-0.64.11.dist-info → hestia_earth_models-0.64.13.dist-info}/WHEEL +1 -1
  163. tests/models/cycle/completeness/test_seed.py +1 -1
  164. tests/models/cycle/test_endDate.py +18 -2
  165. tests/models/cycle/test_startDate.py +21 -3
  166. tests/models/faostat2018/test_faostat_utils.py +84 -0
  167. tests/models/hestia/__init__.py +0 -0
  168. tests/models/hestia/test_landCover.py +210 -0
  169. tests/models/ipcc2019/animal/test_milkYieldPerAnimal.py +21 -0
  170. tests/models/ipcc2019/test_aboveGroundBiomass.py +2 -1
  171. tests/models/ipcc2019/test_belowGroundBiomass.py +2 -1
  172. tests/models/ipcc2019/test_co2ToAirAboveGroundBiomassStockChange.py +4 -3
  173. tests/models/ipcc2019/test_co2ToAirBelowGroundBiomassStockChange.py +3 -3
  174. tests/models/ipcc2019/test_co2ToAirSoilOrganicCarbonStockChange.py +49 -2
  175. tests/models/ipcc2019/test_n2OToAirExcretaDirect.py +12 -0
  176. tests/models/ipcc2019/test_organicCarbonPerHa.py +1 -0
  177. tests/models/koble2014/test_aboveGroundCropResidue.py +13 -0
  178. tests/models/pooreNemecek2018/test_no3ToGroundwaterCropResidueDecomposition.py +3 -2
  179. tests/models/pooreNemecek2018/test_no3ToGroundwaterExcreta.py +3 -2
  180. tests/models/pooreNemecek2018/test_no3ToGroundwaterInorganicFertiliser.py +3 -2
  181. tests/models/pooreNemecek2018/test_no3ToGroundwaterOrganicFertiliser.py +3 -2
  182. tests/models/pooreNemecek2018/{test_saplings.py → test_saplingsDepreciatedAmountPerCycle.py} +1 -1
  183. tests/models/site/test_management.py +18 -151
  184. tests/models/utils/test_blank_node.py +57 -1
  185. tests/models/utils/test_emission.py +1 -6
  186. tests/models/utils/test_site.py +33 -2
  187. tests/models/pooreNemecek2018/test_no3ToGroundwaterSoilFlux.py +0 -90
  188. tests/models/stehfestBouwman2006/test_n2OToAirSoilFlux.py +0 -41
  189. tests/models/stehfestBouwman2006/test_noxToAirSoilFlux.py +0 -40
  190. tests/models/stehfestBouwman2006GisImplementation/test_noxToAirSoilFlux.py +0 -33
  191. /hestia_earth/models/pooreNemecek2018/{no3ToGroundwaterSoilFlux.py → no3ToGroundwaterSoilFlux_utils.py} +0 -0
  192. /hestia_earth/models/stehfestBouwman2006/{n2OToAirSoilFlux.py → n2OToAirSoilFlux_utils.py} +0 -0
  193. /hestia_earth/models/stehfestBouwman2006/{noxToAirSoilFlux.py → noxToAirSoilFlux_utils.py} +0 -0
  194. /hestia_earth/models/stehfestBouwman2006GisImplementation/{noxToAirSoilFlux.py → noxToAirSoilFlux_utils.py} +0 -0
  195. {hestia_earth_models-0.64.11.dist-info → hestia_earth_models-0.64.13.dist-info}/LICENSE +0 -0
  196. {hestia_earth_models-0.64.11.dist-info → hestia_earth_models-0.64.13.dist-info}/top_level.txt +0 -0
@@ -73,9 +73,9 @@ RETURNS = {
73
73
  }
74
74
  LOOKUPS = {
75
75
  "crop-property": ["nitrogenContent", "crudeProteinContent"],
76
- "animalProduct": ["excretaKgNTermId", "allowedExcretaKgNTermIds"],
77
- "liveAnimal": ["excretaKgNTermId", "allowedExcretaKgNTermIds"],
78
- "liveAquaticSpecies": ["excretaKgNTermId", "allowedExcretaKgNTermIds"]
76
+ "animalProduct": ["excretaKgNTermIds", "allowedExcretaKgNTermIds"],
77
+ "liveAnimal": ["excretaKgNTermIds", "allowedExcretaKgNTermIds"],
78
+ "liveAquaticSpecies": ["excretaKgNTermIds", "allowedExcretaKgNTermIds"]
79
79
  }
80
80
  MODEL_KEY = 'excretaKgN'
81
81
 
@@ -94,7 +94,7 @@ def _run(excreta_product: dict, mass_balance_items: list, alternate_items: list)
94
94
 
95
95
  def _get_excreta_product(cycle: dict, primary_product: dict):
96
96
  term = primary_product.get('term', {})
97
- return get_excreta_product(cycle, term, 'excretaKgNTermId', 'allowedExcretaKgNTermIds')
97
+ return get_excreta_product(cycle, term, 'excretaKgNTermIds', 'allowedExcretaKgNTermIds')
98
98
 
99
99
 
100
100
  def _should_run(cycle: dict):
@@ -89,9 +89,9 @@ RETURNS = {
89
89
  }
90
90
  LOOKUPS = {
91
91
  "crop-property": ["carbonContent", "energyContentHigherHeatingValue"],
92
- "animalProduct": ["excretaKgVsTermId", "allowedExcretaKgVsTermIds"],
93
- "liveAnimal": ["excretaKgVsTermId", "allowedExcretaKgVsTermIds"],
94
- "liveAquaticSpecies": ["excretaKgVsTermId", "allowedExcretaKgVsTermIds"]
92
+ "animalProduct": ["excretaKgVsTermIds", "allowedExcretaKgVsTermIds"],
93
+ "liveAnimal": ["excretaKgVsTermIds", "allowedExcretaKgVsTermIds"],
94
+ "liveAquaticSpecies": ["excretaKgVsTermIds", "allowedExcretaKgVsTermIds"]
95
95
  }
96
96
  MODEL_KEY = 'excretaKgVs'
97
97
 
@@ -129,7 +129,7 @@ def _get_conv_aq_ocsed(siteType: str):
129
129
 
130
130
  def _get_excreta_product(cycle: dict, primary_product: dict):
131
131
  term = primary_product.get('term', {})
132
- return get_excreta_product(cycle, term, 'excretaKgVsTermId', 'allowedExcretaKgVsTermIds')
132
+ return get_excreta_product(cycle, term, 'excretaKgVsTermIds', 'allowedExcretaKgVsTermIds')
133
133
 
134
134
 
135
135
  def _should_run(cycle: dict):
@@ -2,7 +2,7 @@ from hestia_earth.schema import EmissionMethodTier
2
2
 
3
3
  from hestia_earth.models.utils.emission import _new_emission
4
4
  from hestia_earth.models.utils.cycle import get_crop_residue_decomposition_N_total
5
- from .no3ToGroundwaterSoilFlux import _should_run, _get_value
5
+ from .no3ToGroundwaterSoilFlux_utils import _should_run, _get_value
6
6
  from . import MODEL
7
7
 
8
8
  REQUIREMENTS = {
@@ -2,7 +2,7 @@ from hestia_earth.schema import EmissionMethodTier
2
2
 
3
3
  from hestia_earth.models.utils.cycle import get_excreta_N_total
4
4
  from hestia_earth.models.utils.emission import _new_emission
5
- from .no3ToGroundwaterSoilFlux import _should_run, _get_value
5
+ from .no3ToGroundwaterSoilFlux_utils import _should_run, _get_value
6
6
  from . import MODEL
7
7
 
8
8
  REQUIREMENTS = {
@@ -2,7 +2,7 @@ from hestia_earth.schema import EmissionMethodTier
2
2
 
3
3
  from hestia_earth.models.utils.cycle import get_inorganic_fertiliser_N_total
4
4
  from hestia_earth.models.utils.emission import _new_emission
5
- from .no3ToGroundwaterSoilFlux import _should_run, _get_value
5
+ from .no3ToGroundwaterSoilFlux_utils import _should_run, _get_value
6
6
  from . import MODEL
7
7
 
8
8
  REQUIREMENTS = {
@@ -2,7 +2,7 @@ from hestia_earth.schema import EmissionMethodTier
2
2
 
3
3
  from hestia_earth.models.utils.cycle import get_organic_fertiliser_N_total
4
4
  from hestia_earth.models.utils.emission import _new_emission
5
- from .no3ToGroundwaterSoilFlux import _should_run, _get_value
5
+ from .no3ToGroundwaterSoilFlux_utils import _should_run, _get_value
6
6
  from . import MODEL
7
7
 
8
8
  REQUIREMENTS = {
@@ -24,7 +24,7 @@ RETURNS = {
24
24
  "value": ""
25
25
  }]
26
26
  }
27
- TERM_ID = 'saplings'
27
+ TERM_ID = 'saplingsDepreciatedAmountPerCycle'
28
28
 
29
29
 
30
30
  def _input(value: float):
@@ -1,5 +1,6 @@
1
1
  from hestia_earth.utils.model import find_term_match
2
2
  from hestia_earth.utils.tools import non_empty_list, list_average
3
+ from hestia_earth.utils.lookup import extract_grouped_data
3
4
 
4
5
  from hestia_earth.models.log import logShouldRun, logRequirements, log_as_table
5
6
  from hestia_earth.models.utils.term import get_lookup_value
@@ -29,7 +30,12 @@ def run_products_average(cycle: dict, term_id: str, get_value_func):
29
30
 
30
31
 
31
32
  def get_excreta_product(cycle: dict, term: dict, lookup_expected_id: str, lookup_allowed_ids: str):
32
- expected_term_id = get_lookup_value(term, lookup_expected_id, model=MODEL)
33
+ primary_excreta_data = get_lookup_value(term, lookup_expected_id, model=MODEL) or (
34
+ # TODO: remove fallback when glossary is fixed for liveAquaticSpecies
35
+ get_lookup_value(term, lookup_expected_id[0:-1], model=MODEL) or ''
36
+ )
37
+ expected_term_id = extract_grouped_data(primary_excreta_data, 'default') if ':' in primary_excreta_data \
38
+ else primary_excreta_data
33
39
  allowed_term_ids = (get_lookup_value(term, lookup_allowed_ids, model=MODEL) or '').split(';')
34
40
  products = non_empty_list([
35
41
  find_term_match(cycle.get('products', []), term_id) for term_id in non_empty_list(
@@ -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, True)
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, True)
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, True)
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, True)
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, impact_value_set_none
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
- should_run = any([value is not None, impact_value_set_none(impact_assessment)])
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, True)
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, impact_value_set_none
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
- should_run = any([value is not None, impact_value_set_none(impact_assessment)])
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, impact_value_set_none
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
- should_run = any([value is not None, impact_value_set_none(impact_assessment)])
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, impact_value_set_none
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
- should_run = any([value is not None, impact_value_set_none(impact_assessment)])
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, True)
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
@@ -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, True)
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
@@ -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, True)
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, impact_value_set_none
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
- should_run = any([value is not None, impact_value_set_none(impact_assessment)])
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, True)
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, True)
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, True)
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, True)
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, impact_value_set_none
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
- should_run = any([value is not None, impact_value_set_none(impact_assessment)])
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, True)
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, impact_value_set_none
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
- should_run = any([value is not None, impact_value_set_none(impact_assessment)])
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, impact_value_set_none
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
- should_run = any([value is not None, impact_value_set_none(impact_assessment)])
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, impact_value_set_none
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
- should_run = any([value is not None, impact_value_set_none(impact_assessment)])
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, True)
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
@@ -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, True)
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
@@ -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, True)
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, impact_value_set_none
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
- should_run = any([value is not None, impact_value_set_none(impact_assessment)])
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, True)
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, True)
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, True)
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, True)
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, impact_value_set_none
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
- should_run = any([value is not None, impact_value_set_none(impact_assessment)])
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, True)
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, impact_value_set_none
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
- should_run = any([value is not None, impact_value_set_none(impact_assessment)])
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, impact_value_set_none
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
- should_run = any([value is not None, impact_value_set_none(impact_assessment)])
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, impact_value_set_none
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
- should_run = any([value is not None, impact_value_set_none(impact_assessment)])
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, True)
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
@@ -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, True)
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
@@ -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, True)
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, impact_value_set_none
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
- should_run = any([value is not None, impact_value_set_none(impact_assessment)])
34
- return _indicator(value) if should_run else None
33
+ return _indicator(value) if value is not None else None