hestia-earth-models 0.74.17__py3-none-any.whl → 0.75.1__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 (668) hide show
  1. hestia_earth/models/__init__.py +0 -3
  2. hestia_earth/models/aware/scarcityWeightedWaterUse.py +2 -4
  3. hestia_earth/models/aware2_0/scarcityWeightedWaterUse.py +2 -5
  4. hestia_earth/models/chaudharyBrooks2018/utils.py +2 -2
  5. hestia_earth/models/cml2001Baseline/abioticResourceDepletionFossilFuels.py +3 -2
  6. hestia_earth/models/cml2001Baseline/abioticResourceDepletionMineralsAndMetals.py +13 -6
  7. hestia_earth/models/ecoalimV9/utils.py +3 -3
  8. hestia_earth/models/ecoinventV3/utils.py +2 -2
  9. hestia_earth/models/ecoinventV3AndEmberClimate/utils.py +2 -2
  10. hestia_earth/models/emissionNotRelevant/__init__.py +2 -2
  11. hestia_earth/models/environmentalFootprintV3_1/environmentalFootprintSingleOverallScore.py +1 -2
  12. hestia_earth/models/environmentalFootprintV3_1/soilQualityIndexLandOccupation.py +8 -5
  13. hestia_earth/models/faostat2018/utils.py +3 -3
  14. hestia_earth/models/frischknechtEtAl2000/ionisingRadiationKbqU235Eq.py +5 -4
  15. hestia_earth/models/geospatialDatabase/ecoClimateZone.py +2 -2
  16. hestia_earth/models/hestia/landCover_utils.py +8 -12
  17. hestia_earth/models/hestia/management.py +3 -3
  18. hestia_earth/models/hestia/seed_emissions.py +2 -2
  19. hestia_earth/models/ipcc2019/ch4ToAirEntericFermentation.py +12 -9
  20. hestia_earth/models/ipcc2019/ch4ToAirExcreta.py +2 -2
  21. hestia_earth/models/ipcc2019/nonCo2EmissionsToAirNaturalVegetationBurning.py +2 -2
  22. hestia_earth/models/ipcc2019/pastureGrass_utils.py +6 -3
  23. hestia_earth/models/ipcc2019/utils.py +3 -2
  24. hestia_earth/models/linkedImpactAssessment/emissions.py +2 -2
  25. hestia_earth/models/mocking/search-results.json +1 -1
  26. hestia_earth/models/requirements.py +2 -2
  27. hestia_earth/models/utils/aggregated.py +2 -2
  28. hestia_earth/models/utils/background_emissions.py +6 -5
  29. hestia_earth/models/utils/ecoClimateZone.py +7 -8
  30. hestia_earth/models/utils/excretaManagement.py +3 -3
  31. hestia_earth/models/utils/feedipedia.py +7 -7
  32. hestia_earth/models/utils/input.py +2 -2
  33. hestia_earth/models/utils/liveAnimal.py +4 -4
  34. hestia_earth/models/utils/lookup.py +15 -20
  35. hestia_earth/models/utils/property.py +3 -3
  36. hestia_earth/models/utils/term.py +5 -5
  37. hestia_earth/models/version.py +1 -1
  38. hestia_earth/orchestrator/__init__.py +0 -3
  39. hestia_earth/orchestrator/models/transformations.py +2 -2
  40. {hestia_earth_models-0.74.17.dist-info → hestia_earth_models-0.75.1.dist-info}/METADATA +10 -14
  41. {hestia_earth_models-0.74.17.dist-info → hestia_earth_models-0.75.1.dist-info}/RECORD +44 -668
  42. {hestia_earth_models-0.74.17.dist-info → hestia_earth_models-0.75.1.dist-info}/WHEEL +1 -1
  43. {hestia_earth_models-0.74.17.dist-info → hestia_earth_models-0.75.1.dist-info}/top_level.txt +0 -1
  44. hestia_earth/__init__.py +0 -1
  45. tests/models/__init__.py +0 -0
  46. tests/models/agribalyse2016/__init__.py +0 -0
  47. tests/models/agribalyse2016/test_fuelElectricity.py +0 -42
  48. tests/models/agribalyse2016/test_machineryInfrastructureDepreciatedAmountPerCycle.py +0 -36
  49. tests/models/akagiEtAl2011/__init__.py +0 -0
  50. tests/models/akagiEtAl2011/test_ch4ToAirCropResidueBurning.py +0 -33
  51. tests/models/akagiEtAl2011/test_nh3ToAirCropResidueBurning.py +0 -33
  52. tests/models/akagiEtAl2011/test_noxToAirCropResidueBurning.py +0 -33
  53. tests/models/akagiEtAl2011/test_pm25ToAirCropResidueBurning.py +0 -33
  54. tests/models/akagiEtAl2011/test_so2ToAirCropResidueBurning.py +0 -33
  55. tests/models/akagiEtAl2011/test_utils.py +0 -19
  56. tests/models/aware/__init__.py +0 -0
  57. tests/models/aware/test_scarcityWeightedWaterUse.py +0 -57
  58. tests/models/aware2_0/__init__.py +0 -0
  59. tests/models/aware2_0/test_scarcityWeightedWaterUse.py +0 -58
  60. tests/models/chaudharyBrooks2018/__init__.py +0 -0
  61. tests/models/chaudharyBrooks2018/test_damageToTerrestrialEcosystemsLandOccupation.py +0 -58
  62. tests/models/chaudharyBrooks2018/test_damageToTerrestrialEcosystemsLandTransformation.py +0 -58
  63. tests/models/chaudharyBrooks2018/test_damageToTerrestrialEcosystemsTotalLandUseEffects.py +0 -20
  64. tests/models/cml2001Baseline/__init__.py +0 -0
  65. tests/models/cml2001Baseline/test_abioticResourceDepletionFossilFuels.py +0 -141
  66. tests/models/cml2001Baseline/test_abioticResourceDepletionMineralsAndMetals.py +0 -105
  67. tests/models/cml2001Baseline/test_eutrophicationPotentialExcludingFate.py +0 -23
  68. tests/models/cml2001Baseline/test_resourceUseEnergyDepletionDuringCycle.py +0 -136
  69. tests/models/cml2001Baseline/test_resourceUseEnergyDepletionInputsProduction.py +0 -23
  70. tests/models/cml2001Baseline/test_resourceUseMineralsAndMetalsDuringCycle.py +0 -58
  71. tests/models/cml2001Baseline/test_resourceUseMineralsAndMetalsInputsProduction.py +0 -23
  72. tests/models/cml2001Baseline/test_terrestrialAcidificationPotentialIncludingFateAverageEurope.py +0 -25
  73. tests/models/cml2001NonBaseline/__init__.py +0 -0
  74. tests/models/cml2001NonBaseline/test_eutrophicationPotentialIncludingFateAverageEurope.py +0 -23
  75. tests/models/cml2001NonBaseline/test_terrestrialAcidificationPotentialExcludingFate.py +0 -23
  76. tests/models/cycle/__init__.py +0 -0
  77. tests/models/cycle/animal/__init__.py +0 -0
  78. tests/models/cycle/animal/input/__init__.py +0 -0
  79. tests/models/cycle/animal/input/test_hestiaAggregatedData.py +0 -40
  80. tests/models/cycle/animal/input/test_properties.py +0 -55
  81. tests/models/cycle/animal/test_milkYield.py +0 -30
  82. tests/models/cycle/animal/test_properties.py +0 -20
  83. tests/models/cycle/completeness/__init__.py +0 -0
  84. tests/models/cycle/completeness/test_animalFeed.py +0 -14
  85. tests/models/cycle/completeness/test_cropResidue.py +0 -19
  86. tests/models/cycle/completeness/test_electricityFuel.py +0 -21
  87. tests/models/cycle/completeness/test_excretaManagement.py +0 -14
  88. tests/models/cycle/completeness/test_freshForage.py +0 -21
  89. tests/models/cycle/completeness/test_material.py +0 -18
  90. tests/models/cycle/completeness/test_seed.py +0 -36
  91. tests/models/cycle/completeness/test_soilAmendment.py +0 -23
  92. tests/models/cycle/input/__init__.py +0 -0
  93. tests/models/cycle/input/test_hestiaAggregatedData.py +0 -91
  94. tests/models/cycle/input/test_properties.py +0 -55
  95. tests/models/cycle/input/test_value.py +0 -41
  96. tests/models/cycle/post_checks/__init__.py +0 -0
  97. tests/models/cycle/post_checks/test_cache.py +0 -8
  98. tests/models/cycle/post_checks/test_otherSites.py +0 -15
  99. tests/models/cycle/post_checks/test_site.py +0 -26
  100. tests/models/cycle/practice/__init__.py +0 -0
  101. tests/models/cycle/practice/test_landCover.py +0 -27
  102. tests/models/cycle/practice/test_value.py +0 -52
  103. tests/models/cycle/pre_checks/__init__.py +0 -0
  104. tests/models/cycle/pre_checks/test_otherSites.py +0 -21
  105. tests/models/cycle/pre_checks/test_site.py +0 -33
  106. tests/models/cycle/product/__init__.py +0 -0
  107. tests/models/cycle/product/test_currency.py +0 -41
  108. tests/models/cycle/product/test_economicValueShare.py +0 -158
  109. tests/models/cycle/product/test_price.py +0 -29
  110. tests/models/cycle/product/test_primary.py +0 -75
  111. tests/models/cycle/product/test_properties.py +0 -32
  112. tests/models/cycle/product/test_revenue.py +0 -32
  113. tests/models/cycle/product/test_value.py +0 -41
  114. tests/models/cycle/test_aboveGroundCropResidueTotal.py +0 -20
  115. tests/models/cycle/test_completeness.py +0 -51
  116. tests/models/cycle/test_cycleDuration.py +0 -31
  117. tests/models/cycle/test_endDate.py +0 -38
  118. tests/models/cycle/test_otherSitesArea.py +0 -68
  119. tests/models/cycle/test_otherSitesUnusedDuration.py +0 -54
  120. tests/models/cycle/test_post_checks.py +0 -11
  121. tests/models/cycle/test_pre_checks.py +0 -11
  122. tests/models/cycle/test_siteArea.py +0 -51
  123. tests/models/cycle/test_siteDuration.py +0 -83
  124. tests/models/cycle/test_siteUnusedDuration.py +0 -55
  125. tests/models/cycle/test_startDate.py +0 -58
  126. tests/models/cycle/test_startDateDefinition.py +0 -31
  127. tests/models/cycle/test_transformations.py +0 -17
  128. tests/models/dammgen2009/__init__.py +0 -0
  129. tests/models/dammgen2009/test_noxToAirExcreta.py +0 -58
  130. tests/models/data/__init__.py +0 -0
  131. tests/models/data/test_hestiaAggregatedData.py +0 -32
  132. tests/models/deRuijterEtAl2010/__init__.py +0 -0
  133. tests/models/deRuijterEtAl2010/test_nh3ToAirCropResidueDecomposition.py +0 -57
  134. tests/models/ecoalimV9/__init__.py +0 -0
  135. tests/models/ecoalimV9/test_cycle.py +0 -22
  136. tests/models/ecoalimV9/test_impact_assessment.py +0 -24
  137. tests/models/ecoinventV3/__init__.py +0 -0
  138. tests/models/ecoinventV3/test_cycle.py +0 -69
  139. tests/models/ecoinventV3AndEmberClimate/__init__.py +0 -0
  140. tests/models/ecoinventV3AndEmberClimate/test_cycle.py +0 -28
  141. tests/models/edip2003/__init__.py +0 -0
  142. tests/models/edip2003/test_ozoneDepletionPotential.py +0 -21
  143. tests/models/emepEea2019/__init__.py +0 -0
  144. tests/models/emepEea2019/test_co2ToAirFuelCombustion.py +0 -34
  145. tests/models/emepEea2019/test_n2OToAirFuelCombustionDirect.py +0 -34
  146. tests/models/emepEea2019/test_nh3ToAirExcreta.py +0 -36
  147. tests/models/emepEea2019/test_nh3ToAirFuelCombustion.py +0 -34
  148. tests/models/emepEea2019/test_nh3ToAirInorganicFertiliser.py +0 -64
  149. tests/models/emepEea2019/test_noxToAirFuelCombustion.py +0 -34
  150. tests/models/emepEea2019/test_pm10ToAirAnimalHousing.py +0 -21
  151. tests/models/emepEea2019/test_pm25ToAirAnimalHousing.py +0 -21
  152. tests/models/emepEea2019/test_so2ToAirFuelCombustion.py +0 -34
  153. tests/models/emepEea2019/test_tspToAirAnimalHousing.py +0 -21
  154. tests/models/emepEea2019/test_utils.py +0 -204
  155. tests/models/environmentalFootprintV3_1/__init__.py +0 -0
  156. tests/models/environmentalFootprintV3_1/test_environmentalFootprintSingleOverallScore.py +0 -138
  157. tests/models/environmentalFootprintV3_1/test_freshwaterEcotoxicityPotentialCtue.py +0 -26
  158. tests/models/environmentalFootprintV3_1/test_marineEutrophicationPotential.py +0 -21
  159. tests/models/environmentalFootprintV3_1/test_photochemicalOzoneCreationPotentialHumanHealthNmvocEq.py +0 -30
  160. tests/models/environmentalFootprintV3_1/test_scarcityWeightedWaterUse.py +0 -27
  161. tests/models/environmentalFootprintV3_1/test_soilQualityIndexLandOccupation.py +0 -160
  162. tests/models/environmentalFootprintV3_1/test_soilQualityIndexLandTransformation.py +0 -184
  163. tests/models/environmentalFootprintV3_1/test_soilQualityIndexTotalLandUseEffects.py +0 -78
  164. tests/models/epa2014/__init__.py +0 -0
  165. tests/models/epa2014/test_no3ToGroundwaterExcreta.py +0 -38
  166. tests/models/fantkeEtAl2016/__init__.py +0 -0
  167. tests/models/fantkeEtAl2016/test_damageToHumanHealthParticulateMatterFormation.py +0 -20
  168. tests/models/faostat2018/__init__.py +0 -0
  169. tests/models/faostat2018/product/__init__.py +0 -0
  170. tests/models/faostat2018/product/test_price.py +0 -117
  171. tests/models/faostat2018/test_coldCarcassWeightPerHead.py +0 -58
  172. tests/models/faostat2018/test_coldDressedCarcassWeightPerHead.py +0 -54
  173. tests/models/faostat2018/test_faostat_utils.py +0 -64
  174. tests/models/faostat2018/test_liveweightPerHead.py +0 -134
  175. tests/models/faostat2018/test_readyToCookWeightPerHead.py +0 -54
  176. tests/models/faostat2018/test_seed.py +0 -50
  177. tests/models/faostat2018/test_utils.py +0 -28
  178. tests/models/frischknechtEtAl2000/__init__.py +0 -0
  179. tests/models/frischknechtEtAl2000/test_ionisingRadiationKbqU235Eq.py +0 -138
  180. tests/models/geospatialDatabase/__init__.py +0 -0
  181. tests/models/geospatialDatabase/test_awareWaterBasinId.py +0 -27
  182. tests/models/geospatialDatabase/test_clayContent.py +0 -49
  183. tests/models/geospatialDatabase/test_croppingIntensity.py +0 -33
  184. tests/models/geospatialDatabase/test_drainageClass.py +0 -29
  185. tests/models/geospatialDatabase/test_ecoClimateZone.py +0 -32
  186. tests/models/geospatialDatabase/test_ecoregion.py +0 -27
  187. tests/models/geospatialDatabase/test_erodibility.py +0 -29
  188. tests/models/geospatialDatabase/test_heavyWinterPrecipitation.py +0 -29
  189. tests/models/geospatialDatabase/test_histosol.py +0 -33
  190. tests/models/geospatialDatabase/test_longFallowRatio.py +0 -33
  191. tests/models/geospatialDatabase/test_nutrientLossToAquaticEnvironment.py +0 -29
  192. tests/models/geospatialDatabase/test_organicCarbonPerKgSoil.py +0 -43
  193. tests/models/geospatialDatabase/test_potentialEvapotranspirationAnnual.py +0 -19
  194. tests/models/geospatialDatabase/test_potentialEvapotranspirationLongTermAnnualMean.py +0 -30
  195. tests/models/geospatialDatabase/test_potentialEvapotranspirationMonthly.py +0 -20
  196. tests/models/geospatialDatabase/test_precipitationAnnual.py +0 -20
  197. tests/models/geospatialDatabase/test_precipitationLongTermAnnualMean.py +0 -29
  198. tests/models/geospatialDatabase/test_precipitationMonthly.py +0 -20
  199. tests/models/geospatialDatabase/test_region.py +0 -27
  200. tests/models/geospatialDatabase/test_sandContent.py +0 -49
  201. tests/models/geospatialDatabase/test_siltContent.py +0 -37
  202. tests/models/geospatialDatabase/test_slope.py +0 -29
  203. tests/models/geospatialDatabase/test_slopeLength.py +0 -29
  204. tests/models/geospatialDatabase/test_soilPh.py +0 -43
  205. tests/models/geospatialDatabase/test_temperatureAnnual.py +0 -20
  206. tests/models/geospatialDatabase/test_temperatureLongTermAnnualMean.py +0 -29
  207. tests/models/geospatialDatabase/test_temperatureMonthly.py +0 -20
  208. tests/models/geospatialDatabase/test_totalNitrogenPerKgSoil.py +0 -43
  209. tests/models/geospatialDatabase/test_totalPhosphorusPerKgSoil.py +0 -29
  210. tests/models/geospatialDatabase/test_utils.py +0 -39
  211. tests/models/geospatialDatabase/test_waterDepth.py +0 -28
  212. tests/models/globalCropWaterModel2008/__init__.py +0 -0
  213. tests/models/globalCropWaterModel2008/test_rootingDepth.py +0 -84
  214. tests/models/haversineFormula/__init__.py +0 -0
  215. tests/models/haversineFormula/transport/__init__.py +0 -0
  216. tests/models/haversineFormula/transport/test_distance.py +0 -28
  217. tests/models/hestia/__init__.py +0 -0
  218. tests/models/hestia/test_aboveGroundCropResidue.py +0 -40
  219. tests/models/hestia/test_aboveGroundCropResidueTotal.py +0 -41
  220. tests/models/hestia/test_brackishWater.py +0 -32
  221. tests/models/hestia/test_cationExchangeCapacityPerKgSoil.py +0 -34
  222. tests/models/hestia/test_coldCarcassWeightPerHead.py +0 -47
  223. tests/models/hestia/test_coldDressedCarcassWeightPerHead.py +0 -47
  224. tests/models/hestia/test_concentrateFeed.py +0 -52
  225. tests/models/hestia/test_cropResidueManagement.py +0 -53
  226. tests/models/hestia/test_croppingIntensity.py +0 -53
  227. tests/models/hestia/test_default_emissions.py +0 -32
  228. tests/models/hestia/test_default_resourceUse.py +0 -32
  229. tests/models/hestia/test_energyContentLowerHeatingValue.py +0 -40
  230. tests/models/hestia/test_excretaKgMass.py +0 -97
  231. tests/models/hestia/test_excretaKgN.py +0 -36
  232. tests/models/hestia/test_excretaKgVs.py +0 -36
  233. tests/models/hestia/test_feedConversionRatio.py +0 -64
  234. tests/models/hestia/test_flowingWater.py +0 -44
  235. tests/models/hestia/test_freshWater.py +0 -32
  236. tests/models/hestia/test_histosol.py +0 -24
  237. tests/models/hestia/test_inorganicFertiliser.py +0 -20
  238. tests/models/hestia/test_irrigatedTypeUnspecified.py +0 -59
  239. tests/models/hestia/test_landCover.py +0 -100
  240. tests/models/hestia/test_landCover_utils.py +0 -233
  241. tests/models/hestia/test_landOccupationDuringCycle.py +0 -75
  242. tests/models/hestia/test_landTransformation100YearAverageDuringCycle.py +0 -30
  243. tests/models/hestia/test_landTransformation20YearAverageDuringCycle.py +0 -29
  244. tests/models/hestia/test_liveAnimal.py +0 -64
  245. tests/models/hestia/test_longFallowRatio.py +0 -49
  246. tests/models/hestia/test_management.py +0 -80
  247. tests/models/hestia/test_materialsAndSubstrate.py +0 -49
  248. tests/models/hestia/test_milkYield.py +0 -58
  249. tests/models/hestia/test_netPrimaryProduction.py +0 -38
  250. tests/models/hestia/test_organicCarbonPerHa.py +0 -104
  251. tests/models/hestia/test_organicCarbonPerKgSoil.py +0 -34
  252. tests/models/hestia/test_organicCarbonPerM3Soil.py +0 -34
  253. tests/models/hestia/test_organicMatterPerKgSoil.py +0 -34
  254. tests/models/hestia/test_organicMatterPerM3Soil.py +0 -34
  255. tests/models/hestia/test_pToSurfaceWaterAquacultureSystems.py +0 -56
  256. tests/models/hestia/test_pastureGrass.py +0 -31
  257. tests/models/hestia/test_pastureSystem.py +0 -47
  258. tests/models/hestia/test_potentialEvapotranspirationAnnual.py +0 -32
  259. tests/models/hestia/test_potentialEvapotranspirationMonthly.py +0 -32
  260. tests/models/hestia/test_precipitationAnnual.py +0 -32
  261. tests/models/hestia/test_precipitationMonthly.py +0 -32
  262. tests/models/hestia/test_rainfallAnnual.py +0 -32
  263. tests/models/hestia/test_rainfallMonthly.py +0 -32
  264. tests/models/hestia/test_readyToCookWeightPerHead.py +0 -47
  265. tests/models/hestia/test_residueBurnt.py +0 -37
  266. tests/models/hestia/test_residueIncorporated.py +0 -48
  267. tests/models/hestia/test_residueLeftOnField.py +0 -37
  268. tests/models/hestia/test_residueRemoved.py +0 -32
  269. tests/models/hestia/test_salineWater.py +0 -32
  270. tests/models/hestia/test_seed_emissions.py +0 -27
  271. tests/models/hestia/test_slope.py +0 -23
  272. tests/models/hestia/test_slopeLength.py +0 -23
  273. tests/models/hestia/test_soilClassification.py +0 -72
  274. tests/models/hestia/test_soilMeasurement.py +0 -156
  275. tests/models/hestia/test_stockingDensityAnimalHousingAverage.py +0 -42
  276. tests/models/hestia/test_temperatureAnnual.py +0 -32
  277. tests/models/hestia/test_temperatureMonthly.py +0 -32
  278. tests/models/hestia/test_totalNitrogenPerKgSoil.py +0 -36
  279. tests/models/hestia/test_unknownPreSeasonWaterRegime.py +0 -36
  280. tests/models/hestia/test_waterDepth.py +0 -34
  281. tests/models/hestia/test_waterSalinity.py +0 -38
  282. tests/models/impact_assessment/__init__.py +0 -0
  283. tests/models/impact_assessment/post_checks/__init__.py +0 -0
  284. tests/models/impact_assessment/post_checks/test_cycle.py +0 -28
  285. tests/models/impact_assessment/post_checks/test_remove_cache_fields.py +0 -6
  286. tests/models/impact_assessment/post_checks/test_remove_no_value.py +0 -17
  287. tests/models/impact_assessment/post_checks/test_site.py +0 -28
  288. tests/models/impact_assessment/pre_checks/__init__.py +0 -0
  289. tests/models/impact_assessment/pre_checks/test_cycle.py +0 -39
  290. tests/models/impact_assessment/pre_checks/test_site.py +0 -37
  291. tests/models/impact_assessment/product/__init__.py +0 -0
  292. tests/models/impact_assessment/product/test_economicValueShare.py +0 -36
  293. tests/models/impact_assessment/product/test_value.py +0 -36
  294. tests/models/impact_assessment/test_allocationMethod.py +0 -48
  295. tests/models/impact_assessment/test_emissions.py +0 -31
  296. tests/models/impact_assessment/test_irrigated.py +0 -14
  297. tests/models/impact_assessment/test_oganic.py +0 -14
  298. tests/models/impact_assessment/test_post_checks.py +0 -11
  299. tests/models/impact_assessment/test_pre_checks.py +0 -11
  300. tests/models/ipcc2006/__init__.py +0 -0
  301. tests/models/ipcc2006/test_aboveGroundCropResidueRemoved.py +0 -36
  302. tests/models/ipcc2006/test_aboveGroundCropResidueTotal.py +0 -48
  303. tests/models/ipcc2006/test_belowGroundCropResidue.py +0 -45
  304. tests/models/ipcc2006/test_n2OToAirCropResidueDecompositionDirect.py +0 -53
  305. tests/models/ipcc2006/test_n2OToAirCropResidueDecompositionIndirect.py +0 -45
  306. tests/models/ipcc2006/test_n2OToAirExcretaDirect.py +0 -68
  307. tests/models/ipcc2006/test_n2OToAirExcretaIndirect.py +0 -45
  308. tests/models/ipcc2006/test_n2OToAirInorganicFertiliserDirect.py +0 -55
  309. tests/models/ipcc2006/test_n2OToAirInorganicFertiliserIndirect.py +0 -43
  310. tests/models/ipcc2006/test_n2OToAirOrganicFertiliserDirect.py +0 -55
  311. tests/models/ipcc2006/test_n2OToAirOrganicFertiliserIndirect.py +0 -55
  312. tests/models/ipcc2013ExcludingFeedbacks/__init__.py +0 -0
  313. tests/models/ipcc2013ExcludingFeedbacks/test_gwp100.py +0 -23
  314. tests/models/ipcc2013IncludingFeedbacks/__init__.py +0 -0
  315. tests/models/ipcc2013IncludingFeedbacks/test_gwp100.py +0 -23
  316. tests/models/ipcc2019/__init__.py +0 -0
  317. tests/models/ipcc2019/animal/__init__.py +0 -0
  318. tests/models/ipcc2019/animal/test_fatContent.py +0 -22
  319. tests/models/ipcc2019/animal/test_hoursWorkedPerDay.py +0 -22
  320. tests/models/ipcc2019/animal/test_liveweightGain.py +0 -22
  321. tests/models/ipcc2019/animal/test_liveweightPerHead.py +0 -22
  322. tests/models/ipcc2019/animal/test_milkYieldPerAnimal.py +0 -21
  323. tests/models/ipcc2019/animal/test_pastureGrass.py +0 -47
  324. tests/models/ipcc2019/animal/test_pregnancyRateTotal.py +0 -22
  325. tests/models/ipcc2019/animal/test_trueProteinContent.py +0 -22
  326. tests/models/ipcc2019/animal/test_weightAtMaturity.py +0 -21
  327. tests/models/ipcc2019/test_aboveGroundBiomass.py +0 -189
  328. tests/models/ipcc2019/test_aboveGroundCropResidueTotal.py +0 -51
  329. tests/models/ipcc2019/test_belowGroundBiomass.py +0 -189
  330. tests/models/ipcc2019/test_belowGroundCropResidue.py +0 -77
  331. tests/models/ipcc2019/test_biocharOrganicCarbonPerHa.py +0 -132
  332. tests/models/ipcc2019/test_biomass_utils.py +0 -115
  333. tests/models/ipcc2019/test_carbonContent.py +0 -119
  334. tests/models/ipcc2019/test_ch4ToAirAquacultureSystems.py +0 -60
  335. tests/models/ipcc2019/test_ch4ToAirEntericFermentation.py +0 -199
  336. tests/models/ipcc2019/test_ch4ToAirExcreta.py +0 -83
  337. tests/models/ipcc2019/test_ch4ToAirFloodedRice.py +0 -25
  338. tests/models/ipcc2019/test_ch4ToAirOrganicSoilCultivation.py +0 -62
  339. tests/models/ipcc2019/test_co2ToAirAboveGroundBiomassStockChange.py +0 -120
  340. tests/models/ipcc2019/test_co2ToAirBelowGroundBiomassStockChange.py +0 -118
  341. tests/models/ipcc2019/test_co2ToAirBiocharStockChange.py +0 -90
  342. tests/models/ipcc2019/test_co2ToAirCarbonStockChange_utils.py +0 -50
  343. tests/models/ipcc2019/test_co2ToAirLimeHydrolysis.py +0 -49
  344. tests/models/ipcc2019/test_co2ToAirOrganicSoilCultivation.py +0 -63
  345. tests/models/ipcc2019/test_co2ToAirSoilOrganicCarbonStockChange.py +0 -151
  346. tests/models/ipcc2019/test_co2ToAirUreaHydrolysis.py +0 -30
  347. tests/models/ipcc2019/test_croppingDuration.py +0 -55
  348. tests/models/ipcc2019/test_ligninContent.py +0 -119
  349. tests/models/ipcc2019/test_n2OToAirAquacultureSystemsIndirect.py +0 -45
  350. tests/models/ipcc2019/test_n2OToAirCropResidueBurningDirect.py +0 -46
  351. tests/models/ipcc2019/test_n2OToAirCropResidueBurningIndirect.py +0 -45
  352. tests/models/ipcc2019/test_n2OToAirCropResidueDecompositionDirect.py +0 -79
  353. tests/models/ipcc2019/test_n2OToAirCropResidueDecompositionIndirect.py +0 -45
  354. tests/models/ipcc2019/test_n2OToAirExcretaDirect.py +0 -50
  355. tests/models/ipcc2019/test_n2OToAirExcretaIndirect.py +0 -45
  356. tests/models/ipcc2019/test_n2OToAirFuelCombustionIndirect.py +0 -45
  357. tests/models/ipcc2019/test_n2OToAirInorganicFertiliserDirect.py +0 -79
  358. tests/models/ipcc2019/test_n2OToAirInorganicFertiliserIndirect.py +0 -45
  359. tests/models/ipcc2019/test_n2OToAirNaturalVegetationBurningIndirect.py +0 -45
  360. tests/models/ipcc2019/test_n2OToAirOrganicFertiliserDirect.py +0 -79
  361. tests/models/ipcc2019/test_n2OToAirOrganicFertiliserIndirect.py +0 -45
  362. tests/models/ipcc2019/test_n2OToAirOrganicSoilBurningIndirect.py +0 -45
  363. tests/models/ipcc2019/test_n2OToAirOrganicSoilCultivationDirect.py +0 -62
  364. tests/models/ipcc2019/test_n2OToAirOrganicSoilCultivationIndirect.py +0 -45
  365. tests/models/ipcc2019/test_n2OToAir_indirect_emissions_utils.py +0 -19
  366. tests/models/ipcc2019/test_nh3ToAirInorganicFertiliser.py +0 -47
  367. tests/models/ipcc2019/test_nh3ToAirOrganicFertiliser.py +0 -35
  368. tests/models/ipcc2019/test_nitrogenContent.py +0 -107
  369. tests/models/ipcc2019/test_no3ToGroundwaterCropResidueDecomposition.py +0 -51
  370. tests/models/ipcc2019/test_no3ToGroundwaterExcreta.py +0 -64
  371. tests/models/ipcc2019/test_no3ToGroundwaterInorganicFertiliser.py +0 -48
  372. tests/models/ipcc2019/test_no3ToGroundwaterOrganicFertiliser.py +0 -48
  373. tests/models/ipcc2019/test_nonCo2EmissionsToAirNaturalVegetationBurning.py +0 -97
  374. tests/models/ipcc2019/test_noxToAirInorganicFertiliser.py +0 -47
  375. tests/models/ipcc2019/test_noxToAirOrganicFertiliser.py +0 -35
  376. tests/models/ipcc2019/test_organicCarbonPerHa.py +0 -415
  377. tests/models/ipcc2019/test_organicCarbonPerHa_tier_1.py +0 -465
  378. tests/models/ipcc2019/test_organicCarbonPerHa_tier_2.py +0 -148
  379. tests/models/ipcc2019/test_organicCarbonPerHa_utils.py +0 -31
  380. tests/models/ipcc2019/test_pastureGrass.py +0 -68
  381. tests/models/ipcc2021/__init__.py +0 -0
  382. tests/models/ipcc2021/test_gwp100.py +0 -23
  383. tests/models/jarvisAndPain1994/__init__.py +0 -0
  384. tests/models/jarvisAndPain1994/test_n2ToAirExcreta.py +0 -37
  385. tests/models/koble2014/__init__.py +0 -0
  386. tests/models/koble2014/test_cropResidueManagement.py +0 -19
  387. tests/models/koble2014/test_residueBurnt.py +0 -20
  388. tests/models/koble2014/test_residueLeftOnField.py +0 -21
  389. tests/models/koble2014/test_residueRemoved.py +0 -20
  390. tests/models/koble2014/test_utils.py +0 -52
  391. tests/models/lcImpactAllEffects100Years/__init__.py +0 -0
  392. tests/models/lcImpactAllEffects100Years/test_damageToFreshwaterEcosystemsClimateChange.py +0 -23
  393. tests/models/lcImpactAllEffects100Years/test_damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py +0 -25
  394. tests/models/lcImpactAllEffects100Years/test_damageToFreshwaterEcosystemsFreshwaterEutrophication.py +0 -25
  395. tests/models/lcImpactAllEffects100Years/test_damageToFreshwaterEcosystemsPdfYear.py +0 -20
  396. tests/models/lcImpactAllEffects100Years/test_damageToFreshwaterEcosystemsWaterStress.py +0 -21
  397. tests/models/lcImpactAllEffects100Years/test_damageToHumanHealth.py +0 -20
  398. tests/models/lcImpactAllEffects100Years/test_damageToHumanHealthClimateChange.py +0 -23
  399. tests/models/lcImpactAllEffects100Years/test_damageToHumanHealthHumanToxicityCancerogenic.py +0 -25
  400. tests/models/lcImpactAllEffects100Years/test_damageToHumanHealthHumanToxicityNonCancerogenic.py +0 -25
  401. tests/models/lcImpactAllEffects100Years/test_damageToHumanHealthParticulateMatterFormation.py +0 -25
  402. tests/models/lcImpactAllEffects100Years/test_damageToHumanHealthPhotochemicalOzoneFormation.py +0 -25
  403. tests/models/lcImpactAllEffects100Years/test_damageToHumanHealthStratosphericOzoneDepletion.py +0 -25
  404. tests/models/lcImpactAllEffects100Years/test_damageToHumanHealthWaterStress.py +0 -32
  405. tests/models/lcImpactAllEffects100Years/test_damageToMarineEcosystemsMarineEcotoxicity.py +0 -25
  406. tests/models/lcImpactAllEffects100Years/test_damageToMarineEcosystemsMarineEutrophication.py +0 -25
  407. tests/models/lcImpactAllEffects100Years/test_damageToMarineEcosystemsPdfYear.py +0 -20
  408. tests/models/lcImpactAllEffects100Years/test_damageToTerrestrialEcosystemsClimateChange.py +0 -25
  409. tests/models/lcImpactAllEffects100Years/test_damageToTerrestrialEcosystemsPdfYear.py +0 -20
  410. tests/models/lcImpactAllEffects100Years/test_damageToTerrestrialEcosystemsPhotochemicalOzoneFormation.py +0 -25
  411. tests/models/lcImpactAllEffects100Years/test_damageToTerrestrialEcosystemsTerrestrialAcidification.py +0 -25
  412. tests/models/lcImpactAllEffects100Years/test_damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py +0 -25
  413. tests/models/lcImpactAllEffectsInfinite/__init__.py +0 -0
  414. tests/models/lcImpactAllEffectsInfinite/test_damageToFreshwaterEcosystemsClimateChange.py +0 -23
  415. tests/models/lcImpactAllEffectsInfinite/test_damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py +0 -25
  416. tests/models/lcImpactAllEffectsInfinite/test_damageToFreshwaterEcosystemsFreshwaterEutrophication.py +0 -25
  417. tests/models/lcImpactAllEffectsInfinite/test_damageToFreshwaterEcosystemsPdfYear.py +0 -20
  418. tests/models/lcImpactAllEffectsInfinite/test_damageToFreshwaterEcosystemsWaterStress.py +0 -21
  419. tests/models/lcImpactAllEffectsInfinite/test_damageToHumanHealth.py +0 -20
  420. tests/models/lcImpactAllEffectsInfinite/test_damageToHumanHealthClimateChange.py +0 -23
  421. tests/models/lcImpactAllEffectsInfinite/test_damageToHumanHealthHumanToxicityCancerogenic.py +0 -25
  422. tests/models/lcImpactAllEffectsInfinite/test_damageToHumanHealthHumanToxicityNonCancerogenic.py +0 -25
  423. tests/models/lcImpactAllEffectsInfinite/test_damageToHumanHealthParticulateMatterFormation.py +0 -25
  424. tests/models/lcImpactAllEffectsInfinite/test_damageToHumanHealthPhotochemicalOzoneFormation.py +0 -25
  425. tests/models/lcImpactAllEffectsInfinite/test_damageToHumanHealthStratosphericOzoneDepletion.py +0 -25
  426. tests/models/lcImpactAllEffectsInfinite/test_damageToHumanHealthWaterStress.py +0 -32
  427. tests/models/lcImpactAllEffectsInfinite/test_damageToMarineEcosystemsMarineEcotoxicity.py +0 -25
  428. tests/models/lcImpactAllEffectsInfinite/test_damageToMarineEcosystemsMarineEutrophication.py +0 -25
  429. tests/models/lcImpactAllEffectsInfinite/test_damageToMarineEcosystemsPdfYear.py +0 -20
  430. tests/models/lcImpactAllEffectsInfinite/test_damageToTerrestrialEcosystemsClimateChange.py +0 -25
  431. tests/models/lcImpactAllEffectsInfinite/test_damageToTerrestrialEcosystemsPdfYear.py +0 -20
  432. tests/models/lcImpactAllEffectsInfinite/test_damageToTerrestrialEcosystemsPhotochemicalOzoneFormation.py +0 -25
  433. tests/models/lcImpactAllEffectsInfinite/test_damageToTerrestrialEcosystemsTerrestrialAcidification.py +0 -25
  434. tests/models/lcImpactAllEffectsInfinite/test_damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py +0 -25
  435. tests/models/lcImpactCertainEffects100Years/__init__.py +0 -0
  436. tests/models/lcImpactCertainEffects100Years/test_damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py +0 -25
  437. tests/models/lcImpactCertainEffects100Years/test_damageToFreshwaterEcosystemsFreshwaterEutrophication.py +0 -25
  438. tests/models/lcImpactCertainEffects100Years/test_damageToFreshwaterEcosystemsPdfYear.py +0 -20
  439. tests/models/lcImpactCertainEffects100Years/test_damageToFreshwaterEcosystemsWaterStress.py +0 -21
  440. tests/models/lcImpactCertainEffects100Years/test_damageToHumanHealth.py +0 -20
  441. tests/models/lcImpactCertainEffects100Years/test_damageToHumanHealthClimateChange.py +0 -23
  442. tests/models/lcImpactCertainEffects100Years/test_damageToHumanHealthHumanToxicityCancerogenic.py +0 -25
  443. tests/models/lcImpactCertainEffects100Years/test_damageToHumanHealthHumanToxicityNonCancerogenic.py +0 -25
  444. tests/models/lcImpactCertainEffects100Years/test_damageToHumanHealthParticulateMatterFormation.py +0 -25
  445. tests/models/lcImpactCertainEffects100Years/test_damageToHumanHealthPhotochemicalOzoneFormation.py +0 -25
  446. tests/models/lcImpactCertainEffects100Years/test_damageToHumanHealthStratosphericOzoneDepletion.py +0 -25
  447. tests/models/lcImpactCertainEffects100Years/test_damageToHumanHealthWaterStress.py +0 -32
  448. tests/models/lcImpactCertainEffects100Years/test_damageToMarineEcosystemsMarineEcotoxicity.py +0 -25
  449. tests/models/lcImpactCertainEffects100Years/test_damageToMarineEcosystemsMarineEutrophication.py +0 -25
  450. tests/models/lcImpactCertainEffects100Years/test_damageToMarineEcosystemsPdfYear.py +0 -20
  451. tests/models/lcImpactCertainEffects100Years/test_damageToTerrestrialEcosystemsClimateChange.py +0 -25
  452. tests/models/lcImpactCertainEffects100Years/test_damageToTerrestrialEcosystemsPdfYear.py +0 -20
  453. tests/models/lcImpactCertainEffects100Years/test_damageToTerrestrialEcosystemsPhotochemicalOzoneFormation.py +0 -25
  454. tests/models/lcImpactCertainEffects100Years/test_damageToTerrestrialEcosystemsTerrestrialAcidification.py +0 -25
  455. tests/models/lcImpactCertainEffects100Years/test_damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py +0 -25
  456. tests/models/lcImpactCertainEffectsInfinite/__init__.py +0 -0
  457. tests/models/lcImpactCertainEffectsInfinite/test_damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py +0 -25
  458. tests/models/lcImpactCertainEffectsInfinite/test_damageToFreshwaterEcosystemsFreshwaterEutrophication.py +0 -25
  459. tests/models/lcImpactCertainEffectsInfinite/test_damageToFreshwaterEcosystemsPdfYear.py +0 -20
  460. tests/models/lcImpactCertainEffectsInfinite/test_damageToFreshwaterEcosystemsWaterStress.py +0 -21
  461. tests/models/lcImpactCertainEffectsInfinite/test_damageToHumanHealth.py +0 -20
  462. tests/models/lcImpactCertainEffectsInfinite/test_damageToHumanHealthClimateChange.py +0 -23
  463. tests/models/lcImpactCertainEffectsInfinite/test_damageToHumanHealthHumanToxicityCancerogenic.py +0 -25
  464. tests/models/lcImpactCertainEffectsInfinite/test_damageToHumanHealthHumanToxicityNonCancerogenic.py +0 -25
  465. tests/models/lcImpactCertainEffectsInfinite/test_damageToHumanHealthParticulateMatterFormation.py +0 -25
  466. tests/models/lcImpactCertainEffectsInfinite/test_damageToHumanHealthPhotochemicalOzoneFormation.py +0 -25
  467. tests/models/lcImpactCertainEffectsInfinite/test_damageToHumanHealthStratosphericOzoneDepletion.py +0 -25
  468. tests/models/lcImpactCertainEffectsInfinite/test_damageToHumanHealthWaterStress.py +0 -32
  469. tests/models/lcImpactCertainEffectsInfinite/test_damageToMarineEcosystemsMarineEcotoxicity.py +0 -25
  470. tests/models/lcImpactCertainEffectsInfinite/test_damageToMarineEcosystemsMarineEutrophication.py +0 -25
  471. tests/models/lcImpactCertainEffectsInfinite/test_damageToMarineEcosystemsPdfYear.py +0 -20
  472. tests/models/lcImpactCertainEffectsInfinite/test_damageToTerrestrialEcosystemsClimateChange.py +0 -25
  473. tests/models/lcImpactCertainEffectsInfinite/test_damageToTerrestrialEcosystemsPdfYear.py +0 -20
  474. tests/models/lcImpactCertainEffectsInfinite/test_damageToTerrestrialEcosystemsPhotochemicalOzoneFormation.py +0 -25
  475. tests/models/lcImpactCertainEffectsInfinite/test_damageToTerrestrialEcosystemsTerrestrialAcidification.py +0 -25
  476. tests/models/lcImpactCertainEffectsInfinite/test_damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py +0 -25
  477. tests/models/linkedImpactAssessment/__init__.py +0 -0
  478. tests/models/linkedImpactAssessment/test_emissions.py +0 -22
  479. tests/models/linkedImpactAssessment/test_freshwaterWithdrawalsInputsProduction.py +0 -23
  480. tests/models/linkedImpactAssessment/test_landOccupationInputsProduction.py +0 -23
  481. tests/models/linkedImpactAssessment/test_landTransformation100YearAverageInputsProduction.py +0 -25
  482. tests/models/linkedImpactAssessment/test_landTransformation20YearAverageInputsProduction.py +0 -25
  483. tests/models/pooreNemecek2018/__init__.py +0 -0
  484. tests/models/pooreNemecek2018/test_aboveGroundCropResidueTotal.py +0 -45
  485. tests/models/pooreNemecek2018/test_belowGroundCropResidue.py +0 -45
  486. tests/models/pooreNemecek2018/test_ch4ToAirAquacultureSystems.py +0 -79
  487. tests/models/pooreNemecek2018/test_excretaKgN.py +0 -124
  488. tests/models/pooreNemecek2018/test_excretaKgVs.py +0 -107
  489. tests/models/pooreNemecek2018/test_freshwaterWithdrawalsDuringCycle.py +0 -60
  490. tests/models/pooreNemecek2018/test_landOccupationDuringCycle.py +0 -51
  491. tests/models/pooreNemecek2018/test_longFallowDuration.py +0 -29
  492. tests/models/pooreNemecek2018/test_n2OToAirAquacultureSystemsDirect.py +0 -59
  493. tests/models/pooreNemecek2018/test_n2ToAirAquacultureSystems.py +0 -59
  494. tests/models/pooreNemecek2018/test_nh3ToAirAquacultureSystems.py +0 -80
  495. tests/models/pooreNemecek2018/test_no3ToGroundwaterCropResidueDecomposition.py +0 -23
  496. tests/models/pooreNemecek2018/test_no3ToGroundwaterExcreta.py +0 -23
  497. tests/models/pooreNemecek2018/test_no3ToGroundwaterInorganicFertiliser.py +0 -23
  498. tests/models/pooreNemecek2018/test_no3ToGroundwaterOrganicFertiliser.py +0 -23
  499. tests/models/pooreNemecek2018/test_noxToAirAquacultureSystems.py +0 -59
  500. tests/models/pooreNemecek2018/test_nurseryDensity.py +0 -29
  501. tests/models/pooreNemecek2018/test_nurseryDuration.py +0 -29
  502. tests/models/pooreNemecek2018/test_plantationDensity.py +0 -29
  503. tests/models/pooreNemecek2018/test_plantationLifespan.py +0 -29
  504. tests/models/pooreNemecek2018/test_plantationProductiveLifespan.py +0 -29
  505. tests/models/pooreNemecek2018/test_rotationDuration.py +0 -29
  506. tests/models/pooreNemecek2018/test_saplingsDepreciatedAmountPerCycle.py +0 -46
  507. tests/models/pooreNemecek2018/test_utils.py +0 -26
  508. tests/models/poschEtAl2008/__init__.py +0 -0
  509. tests/models/poschEtAl2008/test_terrestrialAcidificationPotentialAccumulatedExceedance.py +0 -39
  510. tests/models/poschEtAl2008/test_terrestrialEutrophicationPotentialAccumulatedExceedance.py +0 -39
  511. tests/models/recipe2016Egalitarian/__init__.py +0 -0
  512. tests/models/recipe2016Egalitarian/test_damageToFreshwaterEcosystemsSpeciesYear.py +0 -20
  513. tests/models/recipe2016Egalitarian/test_damageToHumanHealth.py +0 -20
  514. tests/models/recipe2016Egalitarian/test_damageToMarineEcosystemsSpeciesYear.py +0 -20
  515. tests/models/recipe2016Egalitarian/test_damageToResourceAvailability.py +0 -23
  516. tests/models/recipe2016Egalitarian/test_damageToTerrestrialEcosystemsSpeciesYear.py +0 -20
  517. tests/models/recipe2016Egalitarian/test_ecosystemDamageOzoneFormation.py +0 -26
  518. tests/models/recipe2016Egalitarian/test_fossilResourceScarcity.py +0 -23
  519. tests/models/recipe2016Egalitarian/test_freshwaterAquaticEcotoxicityPotential14Dcbeq.py +0 -23
  520. tests/models/recipe2016Egalitarian/test_freshwaterEutrophicationPotential.py +0 -23
  521. tests/models/recipe2016Egalitarian/test_humanCarcinogenicToxicity.py +0 -23
  522. tests/models/recipe2016Egalitarian/test_humanDamageOzoneFormation.py +0 -26
  523. tests/models/recipe2016Egalitarian/test_humanNonCarcinogenicToxicity.py +0 -23
  524. tests/models/recipe2016Egalitarian/test_marineAquaticEcotoxicityPotential14Dcbeq.py +0 -23
  525. tests/models/recipe2016Egalitarian/test_marineEutrophicationPotential.py +0 -23
  526. tests/models/recipe2016Egalitarian/test_ozoneDepletionPotential.py +0 -26
  527. tests/models/recipe2016Egalitarian/test_terrestrialAcidificationPotential.py +0 -23
  528. tests/models/recipe2016Egalitarian/test_terrestrialEcotoxicityPotential14Dcbeq.py +0 -23
  529. tests/models/recipe2016Hierarchist/__init__.py +0 -0
  530. tests/models/recipe2016Hierarchist/test_damageToFreshwaterEcosystemsSpeciesYear.py +0 -20
  531. tests/models/recipe2016Hierarchist/test_damageToHumanHealth.py +0 -20
  532. tests/models/recipe2016Hierarchist/test_damageToMarineEcosystemsSpeciesYear.py +0 -20
  533. tests/models/recipe2016Hierarchist/test_damageToResourceAvailability.py +0 -23
  534. tests/models/recipe2016Hierarchist/test_damageToTerrestrialEcosystemsSpeciesYear.py +0 -20
  535. tests/models/recipe2016Hierarchist/test_ecosystemDamageOzoneFormation.py +0 -26
  536. tests/models/recipe2016Hierarchist/test_fossilResourceScarcity.py +0 -23
  537. tests/models/recipe2016Hierarchist/test_freshwaterAquaticEcotoxicityPotential14Dcbeq.py +0 -23
  538. tests/models/recipe2016Hierarchist/test_freshwaterEutrophicationPotential.py +0 -23
  539. tests/models/recipe2016Hierarchist/test_humanCarcinogenicToxicity.py +0 -23
  540. tests/models/recipe2016Hierarchist/test_humanDamageOzoneFormation.py +0 -26
  541. tests/models/recipe2016Hierarchist/test_humanNonCarcinogenicToxicity.py +0 -23
  542. tests/models/recipe2016Hierarchist/test_marineAquaticEcotoxicityPotential14Dcbeq.py +0 -23
  543. tests/models/recipe2016Hierarchist/test_marineEutrophicationPotential.py +0 -23
  544. tests/models/recipe2016Hierarchist/test_ozoneDepletionPotential.py +0 -26
  545. tests/models/recipe2016Hierarchist/test_terrestrialAcidificationPotential.py +0 -23
  546. tests/models/recipe2016Hierarchist/test_terrestrialEcotoxicityPotential14Dcbeq.py +0 -23
  547. tests/models/recipe2016Individualist/__init__.py +0 -0
  548. tests/models/recipe2016Individualist/test_damageToFreshwaterEcosystemsSpeciesYear.py +0 -20
  549. tests/models/recipe2016Individualist/test_damageToHumanHealth.py +0 -20
  550. tests/models/recipe2016Individualist/test_damageToMarineEcosystemsSpeciesYear.py +0 -20
  551. tests/models/recipe2016Individualist/test_damageToResourceAvailability.py +0 -23
  552. tests/models/recipe2016Individualist/test_damageToTerrestrialEcosystemsSpeciesYear.py +0 -20
  553. tests/models/recipe2016Individualist/test_ecosystemDamageOzoneFormation.py +0 -26
  554. tests/models/recipe2016Individualist/test_fossilResourceScarcity.py +0 -23
  555. tests/models/recipe2016Individualist/test_freshwaterAquaticEcotoxicityPotential14Dcbeq.py +0 -23
  556. tests/models/recipe2016Individualist/test_freshwaterEutrophicationPotential.py +0 -23
  557. tests/models/recipe2016Individualist/test_humanCarcinogenicToxicity.py +0 -23
  558. tests/models/recipe2016Individualist/test_humanDamageOzoneFormation.py +0 -26
  559. tests/models/recipe2016Individualist/test_humanNonCarcinogenicToxicity.py +0 -23
  560. tests/models/recipe2016Individualist/test_marineAquaticEcotoxicityPotential14Dcbeq.py +0 -23
  561. tests/models/recipe2016Individualist/test_marineEutrophicationPotential.py +0 -23
  562. tests/models/recipe2016Individualist/test_ozoneDepletionPotential.py +0 -26
  563. tests/models/recipe2016Individualist/test_terrestrialAcidificationPotential.py +0 -23
  564. tests/models/recipe2016Individualist/test_terrestrialEcotoxicityPotential14Dcbeq.py +0 -23
  565. tests/models/schererPfister2015/__init__.py +0 -0
  566. tests/models/schererPfister2015/test_nErosionSoilFlux.py +0 -70
  567. tests/models/schererPfister2015/test_pErosionSoilFlux.py +0 -70
  568. tests/models/schererPfister2015/test_pToDrainageWaterSoilFlux.py +0 -33
  569. tests/models/schererPfister2015/test_pToGroundwaterSoilFlux.py +0 -33
  570. tests/models/schererPfister2015/test_pToSurfaceWaterSoilFlux.py +0 -45
  571. tests/models/schmidt2007/__init__.py +0 -0
  572. tests/models/schmidt2007/test_ch4ToAirWasteTreatment.py +0 -45
  573. tests/models/schmidt2007/test_h2SToAirWasteTreatment.py +0 -45
  574. tests/models/schmidt2007/test_n2OToAirWasteTreatmentDirect.py +0 -45
  575. tests/models/schmidt2007/test_nh3ToAirWasteTreatment.py +0 -45
  576. tests/models/schmidt2007/test_utils.py +0 -39
  577. tests/models/site/__init__.py +0 -0
  578. tests/models/site/measurement/__init__.py +0 -0
  579. tests/models/site/measurement/test_value.py +0 -41
  580. tests/models/site/post_checks/__init__.py +0 -0
  581. tests/models/site/post_checks/test_cache.py +0 -8
  582. tests/models/site/post_checks/test_country.py +0 -6
  583. tests/models/site/pre_checks/__init__.py +0 -0
  584. tests/models/site/pre_checks/test_cache_geospatialDatabase.py +0 -22
  585. tests/models/site/pre_checks/test_cache_years.py +0 -25
  586. tests/models/site/pre_checks/test_country.py +0 -13
  587. tests/models/site/test_defaultMethodClassification.py +0 -24
  588. tests/models/site/test_defaultMethodClassificationDescription.py +0 -24
  589. tests/models/site/test_grouped_measurement.py +0 -20
  590. tests/models/stehfestBouwman2006/__init__.py +0 -0
  591. tests/models/stehfestBouwman2006/test_n2OToAirCropResidueDecompositionDirect.py +0 -20
  592. tests/models/stehfestBouwman2006/test_n2OToAirExcretaDirect.py +0 -20
  593. tests/models/stehfestBouwman2006/test_n2OToAirInorganicFertiliserDirect.py +0 -20
  594. tests/models/stehfestBouwman2006/test_n2OToAirOrganicFertiliserDirect.py +0 -20
  595. tests/models/stehfestBouwman2006/test_noxToAirCropResidueDecomposition.py +0 -20
  596. tests/models/stehfestBouwman2006/test_noxToAirExcreta.py +0 -20
  597. tests/models/stehfestBouwman2006/test_noxToAirInorganicFertiliser.py +0 -20
  598. tests/models/stehfestBouwman2006/test_noxToAirOrganicFertiliser.py +0 -20
  599. tests/models/stehfestBouwman2006GisImplementation/__init__.py +0 -0
  600. tests/models/stehfestBouwman2006GisImplementation/test_noxToAirCropResidueDecomposition.py +0 -22
  601. tests/models/stehfestBouwman2006GisImplementation/test_noxToAirExcreta.py +0 -20
  602. tests/models/stehfestBouwman2006GisImplementation/test_noxToAirInorganicFertiliser.py +0 -20
  603. tests/models/stehfestBouwman2006GisImplementation/test_noxToAirOrganicFertiliser.py +0 -20
  604. tests/models/test_cache_nodes.py +0 -31
  605. tests/models/test_cache_sites.py +0 -93
  606. tests/models/test_config.py +0 -170
  607. tests/models/test_emissionNotRelevant.py +0 -32
  608. tests/models/test_log.py +0 -128
  609. tests/models/test_resourceUseNotRelevant.py +0 -27
  610. tests/models/test_utils.py +0 -6
  611. tests/models/transformation/__init__.py +0 -0
  612. tests/models/transformation/input/__init__.py +0 -0
  613. tests/models/transformation/input/test_excreta.py +0 -49
  614. tests/models/transformation/input/test_max.py +0 -34
  615. tests/models/transformation/input/test_min.py +0 -34
  616. tests/models/transformation/input/test_properties.py +0 -34
  617. tests/models/transformation/input/test_sd.py +0 -34
  618. tests/models/transformation/input/test_value.py +0 -34
  619. tests/models/transformation/product/__init__.py +0 -0
  620. tests/models/transformation/product/test_excreta.py +0 -54
  621. tests/models/usetoxV2/__init__.py +0 -0
  622. tests/models/usetoxV2/test_freshwaterEcotoxicityPotentialCtue.py +0 -23
  623. tests/models/utils/__init__.py +0 -0
  624. tests/models/utils/test_array_builders.py +0 -314
  625. tests/models/utils/test_background_emissions.py +0 -13
  626. tests/models/utils/test_blank_node.py +0 -1081
  627. tests/models/utils/test_cache_sources.py +0 -21
  628. tests/models/utils/test_crop.py +0 -27
  629. tests/models/utils/test_cropResidue.py +0 -26
  630. tests/models/utils/test_cropResidueManagement.py +0 -24
  631. tests/models/utils/test_currency.py +0 -13
  632. tests/models/utils/test_dataCompleteness.py +0 -52
  633. tests/models/utils/test_ecoClimateZone.py +0 -152
  634. tests/models/utils/test_emission.py +0 -74
  635. tests/models/utils/test_feedipedia.py +0 -26
  636. tests/models/utils/test_impact_assessment.py +0 -48
  637. tests/models/utils/test_indicator.py +0 -26
  638. tests/models/utils/test_input.py +0 -88
  639. tests/models/utils/test_liveAnimal.py +0 -34
  640. tests/models/utils/test_measurement.py +0 -116
  641. tests/models/utils/test_practice.py +0 -24
  642. tests/models/utils/test_product.py +0 -73
  643. tests/models/utils/test_property.py +0 -24
  644. tests/models/utils/test_site.py +0 -70
  645. tests/models/utils/test_source.py +0 -42
  646. tests/models/utils/test_term.py +0 -115
  647. tests/models/utils/test_time_series.py +0 -88
  648. tests/models/webbEtAl2012AndSintermannEtAl2012/__init__.py +0 -0
  649. tests/models/webbEtAl2012AndSintermannEtAl2012/test_nh3ToAirOrganicFertiliser.py +0 -79
  650. tests/orchestrator/__init__.py +0 -0
  651. tests/orchestrator/models/__init__.py +0 -0
  652. tests/orchestrator/models/emissions/__init__.py +0 -0
  653. tests/orchestrator/models/emissions/test_deleted.py +0 -21
  654. tests/orchestrator/models/test_transformations.py +0 -32
  655. tests/orchestrator/strategies/__init__.py +0 -0
  656. tests/orchestrator/strategies/merge/__init__.py +0 -0
  657. tests/orchestrator/strategies/merge/test_merge_append.py +0 -33
  658. tests/orchestrator/strategies/merge/test_merge_default.py +0 -7
  659. tests/orchestrator/strategies/merge/test_merge_list.py +0 -342
  660. tests/orchestrator/strategies/merge/test_merge_node.py +0 -95
  661. tests/orchestrator/strategies/run/__init__.py +0 -0
  662. tests/orchestrator/strategies/run/test_add_blank_node_if_missing.py +0 -109
  663. tests/orchestrator/strategies/run/test_add_key_if_missing.py +0 -14
  664. tests/orchestrator/strategies/run/test_always.py +0 -5
  665. tests/orchestrator/test_models.py +0 -70
  666. tests/orchestrator/test_orchestrator.py +0 -27
  667. tests/orchestrator/test_utils.py +0 -109
  668. {hestia_earth_models-0.74.17.dist-info → hestia_earth_models-0.75.1.dist-info}/licenses/LICENSE +0 -0
@@ -4,7 +4,7 @@ from functools import reduce
4
4
  from importlib import import_module
5
5
  from pydash.objects import merge, merge_with, omit
6
6
  from hestia_earth.schema import is_schema_type, is_type_valid, NodeType
7
- from hestia_earth.utils.lookup import download_lookup, get_table_value, column_name
7
+ from hestia_earth.utils.lookup import download_lookup, get_table_value
8
8
  from hestia_earth.utils.api import download_hestia
9
9
  from hestia_earth.utils.tools import flatten, non_empty_list
10
10
 
@@ -87,7 +87,7 @@ ALL_MODELS = _models(CURRENT_DIR)
87
87
  def _lookup_allowed(model_term_id: str, column: str, value: str):
88
88
  term = download_hestia(model_term_id)
89
89
  lookup = download_lookup(f"{term.get('termType')}.csv")
90
- values = get_table_value(lookup, 'termid', model_term_id, column_name(column))
90
+ values = get_table_value(lookup, 'term.id', model_term_id, column)
91
91
  allowed_values = (values or 'all').split(';')
92
92
  return 'all' in allowed_values or value in allowed_values
93
93
 
@@ -1,6 +1,6 @@
1
1
  import math
2
2
  from hestia_earth.schema import NodeType
3
- from hestia_earth.utils.lookup import download_lookup, get_table_value, column_name
3
+ from hestia_earth.utils.lookup import download_lookup, get_table_value
4
4
  from hestia_earth.utils.model import find_term_match, linked_node
5
5
  from hestia_earth.utils.tools import safe_parse_date, non_empty_list
6
6
 
@@ -52,7 +52,7 @@ def link_inputs_to_impact(model: str, cycle: dict, inputs: list, **log_args):
52
52
 
53
53
  def _should_not_skip_input(term: dict):
54
54
  lookup = download_lookup(f"{term.get('termType')}.csv", True)
55
- value = get_table_value(lookup, 'termid', term.get('@id'), column_name('skipLinkedImpactAssessment'))
55
+ value = get_table_value(lookup, 'term.id', term.get('@id'), 'skipLinkedImpactAssessment')
56
56
  return True if value is None or value == '' else not value
57
57
 
58
58
 
@@ -1,7 +1,7 @@
1
1
  from functools import reduce
2
2
  from typing import Callable, Tuple
3
3
  from hestia_earth.schema import TermTermType, EmissionMethodTier
4
- from hestia_earth.utils.lookup import _is_missing_value, lookup_columns
4
+ from hestia_earth.utils.lookup import is_missing_value, lookup_columns
5
5
  from hestia_earth.utils.model import find_term_match, filter_list_term_type
6
6
  from hestia_earth.utils.tools import flatten, non_empty_list, safe_parse_float, omit
7
7
  from hestia_earth.utils.emission import cycle_emissions_in_system_boundary
@@ -121,19 +121,20 @@ def _values_from_column(index_column: str, column: str, value: str):
121
121
  column != index_column,
122
122
  not column.startswith('ecoinvent'),
123
123
  not column.startswith('ecoalim'),
124
- not _is_missing_value(value)
124
+ not is_missing_value(value)
125
125
  ]) else {}
126
126
 
127
127
 
128
128
  def convert_background_lookup(lookup, index_column: str):
129
129
  columns = lookup_columns(lookup)
130
+ indexed_df = lookup.set_index(index_column, drop=False).copy()
130
131
  return {
131
- row[index_column]: reduce(
132
- lambda prev, curr: prev | _values_from_column(index_column, curr, row[curr]),
132
+ index_key: reduce(
133
+ lambda prev, curr: prev | _values_from_column(index_column, curr, row_data[curr]),
133
134
  columns,
134
135
  {}
135
136
  )
136
- for row in lookup
137
+ for index_key, row_data in indexed_df.to_dict('index').items()
137
138
  }
138
139
 
139
140
 
@@ -1,11 +1,9 @@
1
1
  from enum import Enum
2
2
  from functools import reduce
3
3
  from typing import Any, Optional, Union
4
-
5
4
  from hestia_earth.schema import NodeType
6
-
7
5
  from hestia_earth.utils.blank_node import get_node_value
8
- from hestia_earth.utils.lookup import download_lookup, _get_single_table_value, column_name, extract_grouped_data
6
+ from hestia_earth.utils.lookup import download_lookup, get_table_value, extract_grouped_data
9
7
  from hestia_earth.utils.model import find_term_match
10
8
  from hestia_earth.utils.tools import safe_parse_float
11
9
 
@@ -84,10 +82,11 @@ def get_ecoClimateZone_lookup_value(eco_climate_zone: str, col_name: str, group_
84
82
  """
85
83
  try:
86
84
  lookup = download_lookup('ecoClimateZone.csv')
87
- code = int(str(eco_climate_zone))
88
- data = _get_single_table_value(lookup, column_name('ecoClimateZone'), code, column_name(col_name))
85
+ code = int(eco_climate_zone)
86
+ data = get_table_value(lookup, 'ecoClimateZone', code, col_name)
89
87
  return safe_parse_float(
90
- data if group_name is None else extract_grouped_data(data, group_name), default=None
88
+ data if group_name is None else extract_grouped_data(data, group_name),
89
+ default=None
91
90
  )
92
91
  except Exception:
93
92
  return 0
@@ -115,8 +114,8 @@ def get_ecoClimateZone_lookup_grouped_value(
115
114
  """
116
115
  try:
117
116
  lookup = download_lookup('ecoClimateZone.csv')
118
- code = int(str(eco_climate_zone))
119
- data = _get_single_table_value(lookup, column_name('ecoClimateZone'), code, column_name(col_name))
117
+ code = int(eco_climate_zone)
118
+ data = get_table_value(lookup, 'ecoClimateZone', code, col_name)
120
119
  grouped_data = reduce(
121
120
  lambda prev, curr: prev | {curr.split(':')[0]: safe_parse_float(curr.split(':')[1], default=None)},
122
121
  data.split(';'),
@@ -1,6 +1,6 @@
1
1
  from hestia_earth.schema import TermTermType
2
2
  from hestia_earth.utils.model import filter_list_term_type
3
- from hestia_earth.utils.lookup import column_name, download_lookup, get_table_value
3
+ from hestia_earth.utils.lookup import download_lookup, get_table_value
4
4
  from hestia_earth.utils.tools import safe_parse_float, list_sum
5
5
 
6
6
  from hestia_earth.models.log import debugValues, debugMissingLookup, log_as_table
@@ -17,8 +17,8 @@ def get_lookup_factor(practices: list, lookup_col: str):
17
17
 
18
18
  def _get_nh3_factor(lookup_name: str, term_id: str, input: dict, **log_args):
19
19
  input_term_id = input.get('term', {}).get('@id')
20
- value = get_table_value(download_lookup(lookup_name), 'termid', term_id, column_name(input_term_id))
21
- debugMissingLookup(lookup_name, 'termid', term_id, input_term_id, value, **log_args)
20
+ value = get_table_value(download_lookup(lookup_name), 'term.id', term_id, input_term_id)
21
+ debugMissingLookup(lookup_name, 'term.id', term_id, input_term_id, value, **log_args)
22
22
  return safe_parse_float(value, default=None)
23
23
 
24
24
 
@@ -1,5 +1,5 @@
1
1
  from hestia_earth.utils.model import find_term_match
2
- from hestia_earth.utils.lookup import download_lookup, get_table_value, column_name, lookup_term_ids
2
+ from hestia_earth.utils.lookup import download_lookup, get_table_value, lookup_term_ids
3
3
  from hestia_earth.utils.tools import non_empty_list, safe_parse_float
4
4
 
5
5
  from hestia_earth.models.log import logShouldRun
@@ -13,14 +13,14 @@ def get_feedipedia_properties():
13
13
  lookup = download_lookup('property.csv')
14
14
  term_ids = [
15
15
  term_id for term_id in lookup_term_ids(lookup)
16
- if get_table_value(lookup, 'termid', term_id, column_name('feedipediaName'))
16
+ if get_table_value(lookup, 'term.id', term_id, 'feedipediaName')
17
17
  ]
18
18
  return term_ids
19
19
 
20
20
 
21
21
  def _should_rescale_by_dm(property_id: str):
22
22
  lookup = download_lookup('property.csv')
23
- value = get_table_value(lookup, 'termid', property_id, column_name('feedipediaConversionEnum'))
23
+ value = get_table_value(lookup, 'term.id', property_id, 'feedipediaConversionEnum')
24
24
  return 'dm' in value
25
25
 
26
26
 
@@ -40,10 +40,10 @@ def _dm_property(term_id: str, property_values: dict, dm_property_values: dict,
40
40
 
41
41
 
42
42
  def _map_properties(lookup, term_id: str, column_prefix: str):
43
- value = get_table_value(lookup, 'termid', term_id, column_name(column_prefix))
44
- sd = get_table_value(lookup, 'termid', term_id, column_name(f"{column_prefix}-sd"))
45
- min = get_table_value(lookup, 'termid', term_id, column_name(f"{column_prefix}-min"))
46
- max = get_table_value(lookup, 'termid', term_id, column_name(f"{column_prefix}-max"))
43
+ value = get_table_value(lookup, 'term.id', term_id, column_prefix)
44
+ sd = get_table_value(lookup, 'term.id', term_id, f"{column_prefix}-sd")
45
+ min = get_table_value(lookup, 'term.id', term_id, f"{column_prefix}-min")
46
+ max = get_table_value(lookup, 'term.id', term_id, f"{column_prefix}-max")
47
47
  return {'value': value, 'sd': sd, 'min': min, 'max': max}
48
48
 
49
49
 
@@ -2,7 +2,7 @@ from typing import Union, Optional, List
2
2
  from hestia_earth.schema import SchemaType, TermTermType
3
3
  from hestia_earth.utils.model import find_term_match, linked_node, filter_list_term_type
4
4
  from hestia_earth.utils.tools import list_sum, non_empty_list, list_average, flatten
5
- from hestia_earth.utils.lookup import download_lookup, get_table_value, column_name
5
+ from hestia_earth.utils.lookup import download_lookup, get_table_value
6
6
  from hestia_earth.utils.term import download_term
7
7
 
8
8
  from hestia_earth.models.log import logger
@@ -106,7 +106,7 @@ def match_lookup_value(input: dict, col_name: str, col_value):
106
106
  term_type = input.get('term', {}).get('termType')
107
107
  lookup = download_lookup(f"{term_type}.csv")
108
108
  term_id = input.get('term', {}).get('@id')
109
- return get_table_value(lookup, 'termid', term_id, column_name(col_name)) == col_value
109
+ return get_table_value(lookup, 'term.id', term_id, col_name) == col_value
110
110
 
111
111
 
112
112
  def get_feed_inputs(cycle: dict):
@@ -1,6 +1,6 @@
1
1
  from statistics import mean
2
2
  from hestia_earth.schema import TermTermType
3
- from hestia_earth.utils.lookup import download_lookup, get_table_value, column_name, extract_grouped_data
3
+ from hestia_earth.utils.lookup import download_lookup, get_table_value, extract_grouped_data
4
4
  from hestia_earth.utils.model import find_primary_product, filter_list_term_type
5
5
  from hestia_earth.utils.tools import safe_parse_float
6
6
 
@@ -30,9 +30,9 @@ def get_default_digestibility(model: str, term_id: str, cycle: dict):
30
30
 
31
31
  for system in systems:
32
32
  system_id = system.get('term', {}).get('@id')
33
- lookup_col = column_name(product_id)
34
- value = get_table_value(lookup, 'termid', system_id, lookup_col)
35
- debugMissingLookup(lookup_name, 'termid', term_id, lookup_col, value, model=model, term=term_id)
33
+ lookup_col = product_id
34
+ value = get_table_value(lookup, 'term.id', system_id, lookup_col)
35
+ debugMissingLookup(lookup_name, 'term.id', term_id, lookup_col, value, model=model, term=term_id)
36
36
  min = safe_parse_float(extract_grouped_data(value, 'min'), default=None)
37
37
  max = safe_parse_float(extract_grouped_data(value, 'max'), default=None)
38
38
  if min and max:
@@ -1,12 +1,6 @@
1
1
  from functools import lru_cache
2
2
  from typing import Optional, List
3
- from hestia_earth.utils.lookup import (
4
- download_lookup,
5
- get_table_value,
6
- column_name,
7
- extract_grouped_data,
8
- _get_single_table_value
9
- )
3
+ from hestia_earth.utils.lookup import download_lookup, get_table_value, extract_grouped_data, is_missing_value
10
4
  from hestia_earth.utils.tools import list_sum, safe_parse_float
11
5
 
12
6
  from ..log import debugValues, log_as_table, debugMissingLookup
@@ -42,9 +36,9 @@ def _factor_value(
42
36
  )
43
37
  # value is either a number or matching between a model and a value (restrict value to specific model only)
44
38
  return safe_parse_float(
45
- extract_grouped_data(coefficient, grouped_data_key),
39
+ extract_grouped_data(coefficient, grouped_data_key) if ':' in str(coefficient) else coefficient,
46
40
  default=None
47
- ) if ':' in str(coefficient) else safe_parse_float(coefficient, default=None)
41
+ )
48
42
 
49
43
  def get_value(blank_node: dict):
50
44
  node_term_id = blank_node.get('term', {}).get('@id')
@@ -111,15 +105,15 @@ def aware_factor_value(
111
105
  default_world_value: Optional[bool] = False
112
106
  ):
113
107
  lookup = download_lookup(lookup_name, False) # avoid saving in memory as there could be many different files used
114
- lookup_col = column_name('awareWaterBasinId')
108
+ lookup_col = 'awareWaterBasinId'
115
109
 
116
110
  @lru_cache()
117
111
  def get_coefficient(node_term_id: str):
118
- coefficient = _get_single_table_value(lookup, lookup_col, int(aware_id), column_name(node_term_id))
112
+ coefficient = get_table_value(lookup, lookup_col, int(aware_id), node_term_id)
119
113
  return safe_parse_float(
120
- extract_grouped_data(coefficient, group_key),
114
+ extract_grouped_data(coefficient, group_key) if group_key else coefficient,
121
115
  default=None
122
- ) if group_key else coefficient
116
+ )
123
117
 
124
118
  def get_value(blank_node: dict):
125
119
  node_term_id = blank_node.get('term', {}).get('@id')
@@ -167,7 +161,7 @@ def all_factor_value(
167
161
  term_id, region_id = missing_value
168
162
  debugMissingLookup(
169
163
  lookup_name=lookup_name,
170
- row='termid',
164
+ row='term.id',
171
165
  row_value=region_id or term_id,
172
166
  col=term_id if region_id else lookup_col,
173
167
  value=None,
@@ -195,18 +189,19 @@ def all_factor_value(
195
189
 
196
190
  def get_region_lookup(lookup_name: str, term_id: str):
197
191
  # for performance, try to load the region specific lookup if exists
198
- return (
199
- download_lookup(lookup_name.replace('region-', f"{term_id}-"), build_index=True)
192
+ lookup = (
193
+ download_lookup(lookup_name.replace('region-', f"{term_id}-"))
200
194
  if lookup_name and lookup_name.startswith('region-') else None
201
- ) or download_lookup(lookup_name, build_index=True)
195
+ )
196
+ return lookup if lookup is not None and not lookup.empty else download_lookup(lookup_name)
202
197
 
203
198
 
204
199
  @lru_cache()
205
200
  def get_region_lookup_value(lookup_name: str, term_id: str, column: str, fallback_world: bool = False, **log_args):
206
201
  # for performance, try to load the region specific lookup if exists
207
202
  lookup = get_region_lookup(lookup_name, term_id)
208
- value = get_table_value(lookup, 'termid', term_id, column_name(column))
209
- if value is None and fallback_world:
203
+ value = get_table_value(lookup, 'term.id', term_id, column)
204
+ if is_missing_value(value) and fallback_world:
210
205
  return get_region_lookup_value(lookup_name, 'region-world', column, **log_args)
211
- debugMissingLookup(lookup_name, 'termid', term_id, column, value, **log_args)
206
+ debugMissingLookup(lookup_name, 'term.id', term_id, column, value, **log_args)
212
207
  return value
@@ -1,6 +1,6 @@
1
1
  from functools import lru_cache
2
2
  from hestia_earth.schema import SchemaType, TermTermType
3
- from hestia_earth.utils.lookup import download_lookup, extract_grouped_data, get_table_value, column_name
3
+ from hestia_earth.utils.lookup import download_lookup, extract_grouped_data, get_table_value
4
4
  from hestia_earth.utils.model import find_term_match, linked_node
5
5
  from hestia_earth.utils.tools import list_sum, safe_parse_float
6
6
  from hestia_earth.utils.term import download_term
@@ -104,11 +104,11 @@ def node_has_property(term_id: str):
104
104
  def node_property_lookup_value(model: str, term_id: str, term_type: str, prop_id: str, default=None, **log_args):
105
105
  try:
106
106
  lookup_name = f"{term_type}-property.csv"
107
- lookup_value = get_table_value(download_lookup(lookup_name), 'termid', term_id, column_name(prop_id))
107
+ lookup_value = get_table_value(download_lookup(lookup_name), 'term.id', term_id, prop_id)
108
108
  value = extract_grouped_data(lookup_value, 'Avg') if (
109
109
  isinstance(lookup_value, str) and 'Avg' in lookup_value
110
110
  ) else lookup_value
111
- debugMissingLookup(lookup_name, 'termid', term_id, prop_id, value, model=model, **log_args)
111
+ debugMissingLookup(lookup_name, 'term.id', term_id, prop_id, value, model=model, **log_args)
112
112
  return safe_parse_float(value, default=None)
113
113
  except Exception:
114
114
  value = get_lookup_value({'@id': term_id, 'termType': term_type}, prop_id, skip_debug=True)
@@ -1,6 +1,6 @@
1
1
  from hestia_earth.schema import SchemaType, TermTermType, SiteSiteType
2
2
  from hestia_earth.utils.api import find_node, search
3
- from hestia_earth.utils.lookup import download_lookup, get_table_value, column_name
3
+ from hestia_earth.utils.lookup import download_lookup, get_table_value
4
4
 
5
5
  from .constant import Units
6
6
  from ..log import debugMissingLookup
@@ -9,15 +9,15 @@ from ..log import debugMissingLookup
9
9
  LIMIT = 9999
10
10
 
11
11
 
12
- def get_lookup_value(lookup_term: dict, column: str, skip_debug: bool = False, **log_args):
12
+ def get_lookup_value(lookup_term: dict, column: str, skip_debug: bool = False, default_value='', **log_args):
13
13
  table_name = f"{lookup_term.get('termType')}.csv" if lookup_term else None
14
14
  value = get_table_value(
15
- download_lookup(table_name), 'termid', lookup_term.get('@id'), column_name(column)
15
+ download_lookup(table_name), 'term.id', lookup_term.get('@id'), column
16
16
  ) if table_name else None
17
17
  debugMissingLookup(
18
- table_name, 'termid', lookup_term.get('@id'), column, value, **log_args
18
+ table_name, 'term.id', lookup_term.get('@id'), column, value, **log_args
19
19
  ) if lookup_term and not skip_debug else None
20
- return value
20
+ return default_value if value is None else value
21
21
 
22
22
 
23
23
  def get_liquid_fuel_terms():
@@ -1 +1 @@
1
- VERSION = '0.74.17'
1
+ VERSION = '0.75.1'
@@ -1,12 +1,9 @@
1
- from pkgutil import extend_path
2
1
  from typing import Union, List
3
2
  from hestia_earth.utils.tools import current_time_ms
4
3
 
5
4
  from .log import logger
6
5
  from .models import run as run_models
7
6
 
8
- __path__ = extend_path(__path__, __name__)
9
-
10
7
 
11
8
  def _required(message): raise Exception(message)
12
9
 
@@ -1,7 +1,7 @@
1
1
  from copy import deepcopy
2
2
  from functools import reduce
3
3
  from hestia_earth.schema import CompletenessJSONLD
4
- from hestia_earth.utils.lookup import download_lookup, get_table_value, column_name
4
+ from hestia_earth.utils.lookup import download_lookup, get_table_value
5
5
  from hestia_earth.models.transformation.input.utils import replace_input_field
6
6
  from hestia_earth.models.utils.transformation import previous_transformation
7
7
  from hestia_earth.models.utils.product import find_by_product
@@ -22,7 +22,7 @@ def _include_practice(practice: dict):
22
22
  term_type = term.get('termType')
23
23
  term_id = term.get('@id')
24
24
  lookup = download_lookup(f"{term_type}.csv")
25
- value = get_table_value(lookup, 'termid', term_id, column_name('includeForTransformation'))
25
+ value = get_table_value(lookup, 'term.id', term_id, 'includeForTransformation')
26
26
  return False if value is None or value == '' or not value else True
27
27
 
28
28
 
@@ -1,23 +1,23 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hestia_earth_models
3
- Version: 0.74.17
3
+ Version: 0.75.1
4
4
  Summary: HESTIA's set of modules for filling gaps in the activity data using external datasets (e.g. populating soil properties with a geospatial dataset using provided coordinates) and internal lookups (e.g. populating machinery use from fuel use). Includes rules for when gaps should be filled versus not (e.g. never gap fill yield, gap fill crop residue if yield provided etc.).
5
5
  Home-page: https://gitlab.com/hestia-earth/hestia-engine-models
6
6
  Author: HESTIA Team
7
7
  Author-email: guillaumeroyer.mail@gmail.com
8
8
  License: MIT
9
- Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
10
- Classifier: Programming Language :: Python :: 3.6
9
+ Classifier: Programming Language :: Python :: 3.12
10
+ Requires-Python: >=3.12
11
11
  Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
- Requires-Dist: hestia-earth-schema<34.0.0,>=33.5.0
14
- Requires-Dist: hestia-earth-utils>=0.15.16
13
+ Requires-Dist: hestia-earth-schema<36.0.0,>=35.0.1
14
+ Requires-Dist: hestia-earth-utils>=0.16.7
15
15
  Requires-Dist: CurrencyConverter==0.16.8
16
16
  Requires-Dist: haversine>=2.7.0
17
17
  Requires-Dist: pydash
18
18
  Requires-Dist: area
19
19
  Provides-Extra: spatial
20
- Requires-Dist: hestia-earth-earth-engine>=0.5.0; extra == "spatial"
20
+ Requires-Dist: hestia-earth-earth-engine>=0.6.0; extra == "spatial"
21
21
  Dynamic: author
22
22
  Dynamic: author-email
23
23
  Dynamic: classifier
@@ -28,6 +28,7 @@ Dynamic: license
28
28
  Dynamic: license-file
29
29
  Dynamic: provides-extra
30
30
  Dynamic: requires-dist
31
+ Dynamic: requires-python
31
32
  Dynamic: summary
32
33
 
33
34
  # HESTIA Engine Models
@@ -39,20 +40,15 @@ HESTIA's set of models for running calculations or retrieving data using externa
39
40
 
40
41
  ## Documentation
41
42
 
42
- Documentation for every model can be found in the [HESTIA API Documentation](https://hestia.earth/docs/#hestia-calculation-models).
43
+ Documentation for every model can be found in the [HESTIA Guide](https://hestia.earth/guide/models).
43
44
 
44
45
  ## Install
45
46
 
46
- 1. Install python `3` (we recommend using python `3.6` minimum)
47
+ 1. Install python `3.12` minimum
47
48
  2. Install the module:
48
49
  ```bash
49
50
  pip install hestia_earth.models
50
51
  ```
51
- 3. Set the following environment variables:
52
- ```
53
- API_URL=https://api.hestia.earth
54
- WEB_URL=https://hestia.earth
55
- ```
56
52
 
57
53
  ### Usage
58
54
 
@@ -95,7 +91,7 @@ This will display the Cycle recalculated with all HESTIA default models running.
95
91
  #### Using Spatial Models
96
92
 
97
93
  We have models that can gap-fill geographical information on a `Site`. If you want to use these models:
98
- 1. Install the library: `pip install hestia_earth.earth_engine`
94
+ 1. Install the library: `pip install hestia-earth-earth-engine`
99
95
  2. Follow the [Getting Started instructions](https://gitlab.com/hestia-earth/hestia-earth-engine#getting-started).
100
96
 
101
97
  #### Using the ecoinventV3 model