hestia-earth-models 0.63.0__py3-none-any.whl → 0.64.0__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 (53) hide show
  1. hestia_earth/models/cycle/unknownPreSeasonWaterRegime.py +51 -0
  2. hestia_earth/models/ecoinventV3/__init__.py +18 -2
  3. hestia_earth/models/faostat2018/landTransformationFromCropland100YearAverage.py +1 -1
  4. hestia_earth/models/faostat2018/landTransformationFromCropland20YearAverage.py +1 -1
  5. hestia_earth/models/faostat2018/utils.py +2 -2
  6. hestia_earth/models/geospatialDatabase/clayContent.py +44 -17
  7. hestia_earth/models/geospatialDatabase/organicCarbonPerKgSoil.py +43 -17
  8. hestia_earth/models/geospatialDatabase/sandContent.py +43 -16
  9. hestia_earth/models/geospatialDatabase/siltContent.py +58 -18
  10. hestia_earth/models/geospatialDatabase/soilPh.py +43 -16
  11. hestia_earth/models/geospatialDatabase/totalNitrogenPerKgSoil.py +45 -15
  12. hestia_earth/models/geospatialDatabase/utils.py +11 -5
  13. hestia_earth/models/hyde32/landTransformationFromCropland100YearAverageDuringCycle.py +2 -1
  14. hestia_earth/models/hyde32/landTransformationFromCropland20YearAverageDuringCycle.py +2 -1
  15. hestia_earth/models/hyde32/landTransformationFromForest100YearAverageDuringCycle.py +2 -1
  16. hestia_earth/models/hyde32/landTransformationFromForest20YearAverageDuringCycle.py +2 -1
  17. hestia_earth/models/hyde32/landTransformationFromOtherNaturalVegetation100YearAverageDuringCycle.py +2 -1
  18. hestia_earth/models/hyde32/landTransformationFromOtherNaturalVegetation20YearAverageDuringCycle.py +2 -1
  19. hestia_earth/models/hyde32/landTransformationFromPermanentPasture100YearAverageDuringCycle.py +2 -1
  20. hestia_earth/models/hyde32/landTransformationFromPermanentPasture20YearAverageDuringCycle.py +2 -1
  21. hestia_earth/models/hyde32/utils.py +7 -4
  22. hestia_earth/models/impact_assessment/allocationMethod.py +39 -0
  23. hestia_earth/models/impact_assessment/emissions.py +3 -1
  24. hestia_earth/models/mocking/search-results.json +60 -18
  25. hestia_earth/models/site/management.py +15 -1
  26. hestia_earth/models/site/pre_checks/cache_geospatialDatabase.py +23 -16
  27. hestia_earth/models/utils/indicator.py +3 -1
  28. hestia_earth/models/utils/term.py +34 -0
  29. hestia_earth/models/version.py +1 -1
  30. {hestia_earth_models-0.63.0.dist-info → hestia_earth_models-0.64.0.dist-info}/METADATA +2 -2
  31. {hestia_earth_models-0.63.0.dist-info → hestia_earth_models-0.64.0.dist-info}/RECORD +53 -49
  32. tests/models/cycle/test_unknownPreSeasonWaterRegime.py +36 -0
  33. tests/models/geospatialDatabase/test_clayContent.py +16 -2
  34. tests/models/geospatialDatabase/test_organicCarbonPerKgSoil.py +16 -2
  35. tests/models/geospatialDatabase/test_sandContent.py +16 -2
  36. tests/models/geospatialDatabase/test_siltContent.py +2 -2
  37. tests/models/geospatialDatabase/test_soilPh.py +16 -2
  38. tests/models/geospatialDatabase/test_totalNitrogenPerKgSoil.py +16 -2
  39. tests/models/hyde32/test_landTransformationFromCropland100YearAverageDuringCycle.py +1 -0
  40. tests/models/hyde32/test_landTransformationFromCropland20YearAverageDuringCycle.py +1 -0
  41. tests/models/hyde32/test_landTransformationFromForest100YearAverageDuringCycle.py +1 -0
  42. tests/models/hyde32/test_landTransformationFromForest20YearAverageDuringCycle.py +1 -0
  43. tests/models/hyde32/test_landTransformationFromOtherNaturalVegetation100YearAverageDuringCycle.py +1 -0
  44. tests/models/hyde32/test_landTransformationFromOtherNaturalVegetation20YearAverageDuringCycle.py +1 -0
  45. tests/models/hyde32/test_landTransformationFromPermanentPasture100YearAverageDuringCycle.py +1 -0
  46. tests/models/hyde32/test_landTransformationFromPermanentPasture20YearAverageDuringCycle.py +1 -0
  47. tests/models/impact_assessment/test_allocationMethod.py +48 -0
  48. tests/models/test_cache_sites.py +10 -4
  49. tests/models/test_ecoinventV3.py +1 -0
  50. tests/models/utils/test_source.py +1 -1
  51. {hestia_earth_models-0.63.0.dist-info → hestia_earth_models-0.64.0.dist-info}/LICENSE +0 -0
  52. {hestia_earth_models-0.63.0.dist-info → hestia_earth_models-0.64.0.dist-info}/WHEEL +0 -0
  53. {hestia_earth_models-0.63.0.dist-info → hestia_earth_models-0.64.0.dist-info}/top_level.txt +0 -0
@@ -4,7 +4,7 @@ hestia_earth/models/cache_sites.py,sha256=KQp9cUKE-aIcYJoMWEtKFYS8gBFfsx5LKQhqoW
4
4
  hestia_earth/models/log.py,sha256=DbfNcGzaC5hzkuMDxQqW6XYoNBI4Uxw4SIoOYoZA6og,3474
5
5
  hestia_earth/models/preload_requests.py,sha256=Ibx-YOhR_1yuyFBxsLUbvJHVK7PLyMLoPu5l9jDN_Qk,1342
6
6
  hestia_earth/models/requirements.py,sha256=eU4yT443fx7BnaokhrLB_PCizJI7Y6m4auyo8vQauNg,17363
7
- hestia_earth/models/version.py,sha256=gA5_Bj5-CBV6LXgvlenTaXCJJNDsCnX2WFR-jHXi9F8,19
7
+ hestia_earth/models/version.py,sha256=IlwP1zg2m0DBprtBStQbPB5MvpS31n9yBC5AOs4qSfo,19
8
8
  hestia_earth/models/agribalyse2016/__init__.py,sha256=WvK0qCQbnYtg9oZxrACd1wGormZyXibPtpCnIQeDqbw,415
9
9
  hestia_earth/models/agribalyse2016/fuelElectricity.py,sha256=tnGxBmJdPfPFfehLUQcefEqy1lHvzsSpx_s7O8nf3Zs,4412
10
10
  hestia_earth/models/agribalyse2016/machineryInfrastructureDepreciatedAmountPerCycle.py,sha256=_Rbngu0DzHKa62JwBl58ZC_ui1zLF2que_nB7ukhOQc,3392
@@ -62,6 +62,7 @@ hestia_earth/models/cycle/siteUnusedDuration.py,sha256=HvVyok1HPt0_WsTPZq2PklsFT
62
62
  hestia_earth/models/cycle/startDate.py,sha256=OnuMf4TkDb0WwCntjXNy3ipLS-b4drMWSkXWeXU142Q,1507
63
63
  hestia_earth/models/cycle/startDateDefinition.py,sha256=nCFeKjZjC3MoYNFH0N66WNW4HJUzKD_UkznvTMl_KfM,2244
64
64
  hestia_earth/models/cycle/transformation.py,sha256=06KTfVubh2I47dfnG9Iv6AbuUBbURM8BAVOkRu7XmHw,1255
65
+ hestia_earth/models/cycle/unknownPreSeasonWaterRegime.py,sha256=9EP8FMXO5fHqmhVNSqR_Dfe38KxwyPOCF6kMewiI_VE,1478
65
66
  hestia_earth/models/cycle/utils.py,sha256=ZcVwvRwVNK48jZfnhrHl2ai4a96YzcmRgO-eQXwQNjo,1408
66
67
  hestia_earth/models/cycle/animal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
67
68
  hestia_earth/models/cycle/animal/milkYield.py,sha256=bx8oNw9tZkqSgcRlbxIL6V2nEHx-p0KJc31v7PaLKxI,2926
@@ -112,7 +113,7 @@ hestia_earth/models/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
112
113
  hestia_earth/models/data/ecoinventV3/__init__.py,sha256=oevyurRuioXy_CsQCtG-S_FXEpiEDeQ-UK5a0jPBXcI,1155
113
114
  hestia_earth/models/deRuijterEtAl2010/__init__.py,sha256=lbH6mB98dmZZlwdZctNYtEmVwAow957l80Dv7JSPDsI,418
114
115
  hestia_earth/models/deRuijterEtAl2010/nh3ToAirCropResidueDecomposition.py,sha256=2z10WqMsGUDDO8xJ3lmXvSUHgzz2t6PPRDha5NHoT5s,3291
115
- hestia_earth/models/ecoinventV3/__init__.py,sha256=QrWtudsuO5MuVn_gENz6KsHuq21j3Jy94gE7eyvm2ug,5214
116
+ hestia_earth/models/ecoinventV3/__init__.py,sha256=FctfsXFgEz23KbKNig1bY-fhoTN2QJz_eVy6AFwxG7g,6062
116
117
  hestia_earth/models/ecoinventV3/utils.py,sha256=HqtD8MzK9C_RCJ-ME-5G4J1KoCn5FqmAx4l0kjsCDbM,1577
117
118
  hestia_earth/models/ecoinventV3AndEmberClimate/__init__.py,sha256=XYFDUNpQpzbjPgLus0YlM3UdiXX7LLwn-XJqjrH9ywM,5801
118
119
  hestia_earth/models/ecoinventV3AndEmberClimate/utils.py,sha256=INWB7gyhzk49GQ0KAcBS-Kzwdoyd5MQJcsCtuT6XxZA,1352
@@ -135,17 +136,17 @@ hestia_earth/models/epa2014/no3ToGroundwaterExcreta.py,sha256=fN4fOOcjBg3tl0lzNe
135
136
  hestia_earth/models/faostat2018/__init__.py,sha256=ecN-pKF1pkFnzmooBrg1VAxJkG76q9v4piiaKGP_vbo,412
136
137
  hestia_earth/models/faostat2018/coldCarcassWeightPerHead.py,sha256=y1ouj5FBrnGWxd4dIC7luG6iQwiMrm1CGgYbXCcKS8E,3139
137
138
  hestia_earth/models/faostat2018/coldDressedCarcassWeightPerHead.py,sha256=Aphq7r06Q5-RDer4i1CneOLifVQCKTiVPTIWE3AxLfE,3230
138
- hestia_earth/models/faostat2018/landTransformationFromCropland100YearAverage.py,sha256=2qVeSGMoJ15pD6-p0Fsq1yN-3mpL8SyOKkVuIiYoJMg,2655
139
- hestia_earth/models/faostat2018/landTransformationFromCropland20YearAverage.py,sha256=0vJHRIb4F2G_8MG9Qgz2n-7dYerG5q6r7pG-j84LKjk,2648
139
+ hestia_earth/models/faostat2018/landTransformationFromCropland100YearAverage.py,sha256=yFQdfHnMifPtwnBUbedXq1FY7qlzv1EieU-UA83MFcE,2647
140
+ hestia_earth/models/faostat2018/landTransformationFromCropland20YearAverage.py,sha256=MmMer9DJkDFO_VsWBwHywwUdqvBaKNkfuix--PeL1kU,2640
140
141
  hestia_earth/models/faostat2018/liveweightPerHead.py,sha256=flI3_TyG-7xoWp6cU6pZAFiXyHyFkfRz7Lmb7cQAffI,5140
141
142
  hestia_earth/models/faostat2018/readyToCookWeightPerHead.py,sha256=b1_GZQ3oFl88w6TY5DqLSqXNaYX6TcRBK4R9M2cWSjM,3165
142
143
  hestia_earth/models/faostat2018/seed.py,sha256=ts9PKs9UnZnJ9nPFlL7etL1Qb9uIWIES8Mz8W7FWbOw,2917
143
- hestia_earth/models/faostat2018/utils.py,sha256=r69UWDdMOLTYkI8_oQeEnUCOAZCnmwj_NwyrypAOb_A,3734
144
+ hestia_earth/models/faostat2018/utils.py,sha256=Ud2vu_8ze5VFfeBFBzUKdJTWRfxVJO4VUTdgwaLJU-w,3715
144
145
  hestia_earth/models/faostat2018/product/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
145
146
  hestia_earth/models/faostat2018/product/price.py,sha256=X7Zxa-rXthzYdgw2lzybbHc-oKGE5nyXpBn-BfZC_7w,7753
146
147
  hestia_earth/models/geospatialDatabase/__init__.py,sha256=TH-FW3aoL7r1GquRChr7rde7uQonKQRDR00udG8tDrQ,957
147
148
  hestia_earth/models/geospatialDatabase/aware.py,sha256=cbxFnShXW8QUCIjU4uuO1DdK9KhYiLf41ZVjS9hSppI,1358
148
- hestia_earth/models/geospatialDatabase/clayContent.py,sha256=HWaswqkf1FZXcRHw8DrMvvpH2Uo3nbjX4C0D1tqyTBw,2710
149
+ hestia_earth/models/geospatialDatabase/clayContent.py,sha256=u8SQKx-zu3vhMQ-XOJgqyUn-tlCCIy-VG7zpl5AyjtY,3386
149
150
  hestia_earth/models/geospatialDatabase/croppingIntensity.py,sha256=4HVrl7Hayg6IpdCrz19Xq_clKdcS_0Sw9uiA4kjKJ40,2509
150
151
  hestia_earth/models/geospatialDatabase/drainageClass.py,sha256=CVagB2wxLnHgQQauDyYCJCfJw21OPB7Ry8BVyt2uPak,1883
151
152
  hestia_earth/models/geospatialDatabase/ecoClimateZone.py,sha256=hzK9Je_4NvbLtgAM48G7yf-6jrcMpsDzqSlLkVP3oYg,3625
@@ -155,7 +156,7 @@ hestia_earth/models/geospatialDatabase/heavyWinterPrecipitation.py,sha256=54pvHO
155
156
  hestia_earth/models/geospatialDatabase/histosol.py,sha256=5zwKdF1t9aOjTzBoear62T0Kzpjco-IJXu4oRYrUFQ8,2387
156
157
  hestia_earth/models/geospatialDatabase/longFallowRatio.py,sha256=OXInoU4uYlgLwpAF3PetIDQ2ck4rOdf9_EyjXEtzD4Q,2505
157
158
  hestia_earth/models/geospatialDatabase/nutrientLossToAquaticEnvironment.py,sha256=uEsoYJ1mzgUo6fQhUrcJ-ATcFw1j9oEgqMXKbQuFRxQ,1973
158
- hestia_earth/models/geospatialDatabase/organicCarbonPerKgSoil.py,sha256=gt3-crrUN0HPtIKY7Hf9dUteCXkegSICVjO-jufDqas,2196
159
+ hestia_earth/models/geospatialDatabase/organicCarbonPerKgSoil.py,sha256=O_3GdoyY3FrwAq37MHleb0kiXZhsqpuAcik9TYpAvU4,2830
159
160
  hestia_earth/models/geospatialDatabase/potentialEvapotranspirationAnnual.py,sha256=UlCBvAD-6H-4sdryfPuX1YDlOsGPOI8T9y0q4O0Tau8,2544
160
161
  hestia_earth/models/geospatialDatabase/potentialEvapotranspirationLongTermAnnualMean.py,sha256=YywD9wCkGFF1q60LocXNvLr-tQ2_9km2PrVnXRgN83E,2125
161
162
  hestia_earth/models/geospatialDatabase/potentialEvapotranspirationMonthly.py,sha256=3VmoobXfTVP77vyBrxkplTToe3RnLeTrNStA2r6sdzY,3357
@@ -163,17 +164,17 @@ hestia_earth/models/geospatialDatabase/precipitationAnnual.py,sha256=8_lMKVUPCln
163
164
  hestia_earth/models/geospatialDatabase/precipitationLongTermAnnualMean.py,sha256=fS5knfil5f2QP8-gxFdXuoGTxXpzoJQZ9h4UjWIWjCA,2376
164
165
  hestia_earth/models/geospatialDatabase/precipitationMonthly.py,sha256=D2HNR7cIP2Dd47uxmXp6p_wPhmxR6i-4trX83WpH3z4,3407
165
166
  hestia_earth/models/geospatialDatabase/region.py,sha256=rdywdsI4OglcO05tih0UQx0qbnm8BAn7mP-x74iV03c,1462
166
- hestia_earth/models/geospatialDatabase/sandContent.py,sha256=BZUn2z4BN1HgCGZ2Xsifca2CRTaZ4gdcaZ8A1_UoPQM,2704
167
- hestia_earth/models/geospatialDatabase/siltContent.py,sha256=0GnBZHjqS_Py4730s4LqzQ_GikBSxFyUGYG4dEiXiGs,2162
167
+ hestia_earth/models/geospatialDatabase/sandContent.py,sha256=dzaefKcnMeBRu7b1X11MG_-I6iDuXkHVCrkdbawB3Tw,3386
168
+ hestia_earth/models/geospatialDatabase/siltContent.py,sha256=rFUlQ3SlwCJFcMYQd5F6t3bnDMjcRilsXk2rShoa5Tk,3786
168
169
  hestia_earth/models/geospatialDatabase/slope.py,sha256=g1SpuYks60injv2w-CMjESNfu8KM1JsiYnRT9XZfSuY,1859
169
170
  hestia_earth/models/geospatialDatabase/slopeLength.py,sha256=6pGr1qR0EiiUKkeflpYut7eI6UsnXAzHDoHhAzXKFJk,1864
170
- hestia_earth/models/geospatialDatabase/soilPh.py,sha256=egvtnVPCL0El2J9oVLAFxl6HoZQsK-RrNobA0LMAtOY,2109
171
+ hestia_earth/models/geospatialDatabase/soilPh.py,sha256=f-jZhIpbsVDe_lGm0rfA7K0vRRTy0M5adKA-_-W11LU,2799
171
172
  hestia_earth/models/geospatialDatabase/temperatureAnnual.py,sha256=UCTr8zvz9AH13nd-ynqjYZ1gABn8cw5PHXS29SzbhyE,2712
172
173
  hestia_earth/models/geospatialDatabase/temperatureLongTermAnnualMean.py,sha256=j5vsDYZeEQYqgOzBGepD5oGFtRvjhk__uZ7ux37gapQ,2229
173
174
  hestia_earth/models/geospatialDatabase/temperatureMonthly.py,sha256=hJjbnTgefBtRwL5IJHaaPFtRvzTDv7l5nDI8vdadMCg,3353
174
- hestia_earth/models/geospatialDatabase/totalNitrogenPerKgSoil.py,sha256=kjP3ue-tlzMQNx2hBM56_CBBRa8Pcosmd2BPgyiNVW4,2081
175
+ hestia_earth/models/geospatialDatabase/totalNitrogenPerKgSoil.py,sha256=DrjiPyakM1SJ1XO-arhvjLDj2qb3M-i58gJ1kFFM6kI,2821
175
176
  hestia_earth/models/geospatialDatabase/totalPhosphorusPerKgSoil.py,sha256=5oasLMYgfnPwSse0D8EEe_pV57AMusac853BgVSUh5E,2070
176
- hestia_earth/models/geospatialDatabase/utils.py,sha256=5Vs4Y8lttH2-pUUcQRMbxnvmhfndVuOeNDY8OWPR1ns,6208
177
+ hestia_earth/models/geospatialDatabase/utils.py,sha256=RAmdiv2WTKzdiCF1c2KjNoE5v7EjOdO-ZEJdJfi8rB0,6419
177
178
  hestia_earth/models/geospatialDatabase/waterDepth.py,sha256=Xy2UxwAJrgdOkcw59NetEHMt5vgRYE6qg4fgXb1ptlU,1643
178
179
  hestia_earth/models/globalCropWaterModel2008/__init__.py,sha256=vQxexzFCl2Uv2RiIJfcppkRi9RgzBsJ68yhVDK4GvAU,425
179
180
  hestia_earth/models/globalCropWaterModel2008/rootingDepth.py,sha256=pajS-6UWxqIqnzW0IjkgNm-2Vl3bMor2UZOQtQQERuc,4096
@@ -181,17 +182,18 @@ hestia_earth/models/haversineFormula/__init__.py,sha256=o155nR-XI67iCSBVNYIu4sPR
181
182
  hestia_earth/models/haversineFormula/transport/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
182
183
  hestia_earth/models/haversineFormula/transport/distance.py,sha256=163KrmKzlEQuKYT1ZvpPgmKlv_-mmvxp0A1_uKya99w,4203
183
184
  hestia_earth/models/hyde32/__init__.py,sha256=hSOwDiK0M0NfmQbW_J7O_SZa8IsJMgITSHSVMsDS4KI,407
184
- hestia_earth/models/hyde32/landTransformationFromCropland100YearAverageDuringCycle.py,sha256=NzXqt_7UnU8LYpgadOfeIn5mMiPViVfmNu66jWB8jXk,2367
185
- hestia_earth/models/hyde32/landTransformationFromCropland20YearAverageDuringCycle.py,sha256=-UuJ_ctgy4kL_grYfqp9TZ6Kh23k91qsM0fpHqBrg1A,2363
186
- hestia_earth/models/hyde32/landTransformationFromForest100YearAverageDuringCycle.py,sha256=ZPQhEkIB2El6ZWYeZqdDsnBwiTJ1hmXejmlK0hxSkiE,2364
187
- hestia_earth/models/hyde32/landTransformationFromForest20YearAverageDuringCycle.py,sha256=KBb4Ht-qdpSqqNujL4sg0CGSKgD9h_Nym-pDOJGOXd0,2355
188
- hestia_earth/models/hyde32/landTransformationFromOtherNaturalVegetation100YearAverageDuringCycle.py,sha256=S2KsgZ9Xx0WRe3Bk7NRDueamT0JBPfNnBwe_21l6yX8,2444
189
- hestia_earth/models/hyde32/landTransformationFromOtherNaturalVegetation20YearAverageDuringCycle.py,sha256=jYxZqbAojKSARMXv-oLkIhXBTUT0QK6UNFgW1cWo9E8,2435
190
- hestia_earth/models/hyde32/landTransformationFromPermanentPasture100YearAverageDuringCycle.py,sha256=0E6UtW0DpyB6nCFioekbCBvZu10F7LtvyOxbWRPL5oY,2417
191
- hestia_earth/models/hyde32/landTransformationFromPermanentPasture20YearAverageDuringCycle.py,sha256=khH8zdALTeaCaIDK6L-3OexD03I7MB8vA_mBOSkwe1M,2408
192
- hestia_earth/models/hyde32/utils.py,sha256=j9QavyBZIQ-ZCNjdPLWjOjg2LrxcNlanQ1wPnT0IKX8,3098
185
+ hestia_earth/models/hyde32/landTransformationFromCropland100YearAverageDuringCycle.py,sha256=7ZqhExZORiYIzvkQhLhPdTPzyY2NnSKrat76poGn5tc,2392
186
+ hestia_earth/models/hyde32/landTransformationFromCropland20YearAverageDuringCycle.py,sha256=RDMzmxz236nMSd5IYASXFMk8wL4HyeMi2zNdhhjkTs0,2388
187
+ hestia_earth/models/hyde32/landTransformationFromForest100YearAverageDuringCycle.py,sha256=HRl901VmW9YkbY5FjfNFTJCCP99BAtnnR8fUvDEkkeY,2389
188
+ hestia_earth/models/hyde32/landTransformationFromForest20YearAverageDuringCycle.py,sha256=rxpMfnqe1mzDZnJvTuLDq2wkNwo8pr7HP3iSa6sLrkI,2380
189
+ hestia_earth/models/hyde32/landTransformationFromOtherNaturalVegetation100YearAverageDuringCycle.py,sha256=hDBgoUxWkTn3xzmjGWwDIhltNwXdLcnwCTq3MQ-o1dk,2469
190
+ hestia_earth/models/hyde32/landTransformationFromOtherNaturalVegetation20YearAverageDuringCycle.py,sha256=Yi6Jnh4G4hILUoV2fgkDBNzT9Q7BY5wCUHEB-OUejys,2460
191
+ hestia_earth/models/hyde32/landTransformationFromPermanentPasture100YearAverageDuringCycle.py,sha256=ZkRn4toDe3flLtJG6iptE6cCFEkexVQ4lg2nr779Do8,2442
192
+ hestia_earth/models/hyde32/landTransformationFromPermanentPasture20YearAverageDuringCycle.py,sha256=wz2YMJ_qG1_2BosqsI6TDKAPqvVE6a3Ejuikz-cv-Z0,2433
193
+ hestia_earth/models/hyde32/utils.py,sha256=9HoTiNi52iSopIh0Q_6l7kObr4MPxrBkAvQf6T-zm1U,3383
193
194
  hestia_earth/models/impact_assessment/__init__.py,sha256=gTR_PhWps593fPhm-V826VLLrZVH8CNQTqxExB7GGNI,418
194
- hestia_earth/models/impact_assessment/emissions.py,sha256=6eq88G_U-JxXvysOnGDSXOB2dhJOjlqmJCq-CHQ7ZIM,3357
195
+ hestia_earth/models/impact_assessment/allocationMethod.py,sha256=Qz41nTtMpDCcPy7PjhVtafE13dfJLX_D3Rg3yNhdY_Q,1279
196
+ hestia_earth/models/impact_assessment/emissions.py,sha256=mJsTasM-5AFtZeKzQ9Q38SDLcnl_lQwfjQ52ro2Pjmg,3444
195
197
  hestia_earth/models/impact_assessment/irrigated.py,sha256=qopAYbD91uu1Q2hJ3aB5Xl3br2Nzh7LoMTRCFOXmOv0,783
196
198
  hestia_earth/models/impact_assessment/organic.py,sha256=vgY-Wwt_gE6t2EQSFDY6XvDjI0TXb7YeMxH7gty-u6Q,759
197
199
  hestia_earth/models/impact_assessment/post_checks/__init__.py,sha256=rkHO4Z3Zz8LCT1OoDgHmUuGURvXsdzh2nQqgU2M4tjU,304
@@ -373,7 +375,7 @@ hestia_earth/models/linkedImpactAssessment/landTransformationFromPermanentPastur
373
375
  hestia_earth/models/linkedImpactAssessment/utils.py,sha256=dGwGc2d-8_WQElTpfyPmz5vQtL-LHQRmiZnCTuPXMDs,1876
374
376
  hestia_earth/models/mocking/__init__.py,sha256=n3Fkkrvh8zHNWiJZmnfQ7WZ91JRzAO9P6pSG1JpwtXo,687
375
377
  hestia_earth/models/mocking/mock_search.py,sha256=qgABw-sZK37XtsALKt8AHF2VJPUrZSnHv5Qj1Dn93oA,2405
376
- hestia_earth/models/mocking/search-results.json,sha256=-BZt5OSwu_1B2DMyPuhUdQTWmv1iymSRUQsCKCh6-oQ,46412
378
+ hestia_earth/models/mocking/search-results.json,sha256=lyNM5NhYqniHhPP31dnp8G3rQlXIq-pLhSmhe_4txlU,47245
377
379
  hestia_earth/models/pooreNemecek2018/__init__.py,sha256=nPboL7ULJzL5nJD5q7q9VOZt_fxbKVm8fmn1Az5YkVY,417
378
380
  hestia_earth/models/pooreNemecek2018/aboveGroundCropResidueTotal.py,sha256=Qt-mel4dkhK6N5uUOutNOinCTFjbjtGzITaaI0LvYc4,2396
379
381
  hestia_earth/models/pooreNemecek2018/belowGroundCropResidue.py,sha256=JT0RybbvWVlo01FO8K0Yj41HrEaJT3Kj1xfayr2X-xw,2315
@@ -472,7 +474,7 @@ hestia_earth/models/site/brackishWater.py,sha256=vLEhIZv5PUKwzwvIuYrWi7K---fq7ZX
472
474
  hestia_earth/models/site/cationExchangeCapacityPerKgSoil.py,sha256=0eH4A-tXJ0hvIkiYXWxlx8TfrdbIKUGYUDk97-yQJgg,3653
473
475
  hestia_earth/models/site/flowingWater.py,sha256=v3g5722GIA4zQAUQI9yGFiZvFvI1QAVZqlQrY-6_B3A,1731
474
476
  hestia_earth/models/site/freshWater.py,sha256=FXs3Vt8V4e-wn325_dwSTOKlZtn5ksNUpvYGDeLJShY,1255
475
- hestia_earth/models/site/management.py,sha256=LlvXibkqJyHCQQarn1uGUp8HJRmA8PW208pp1wCuSWk,10772
477
+ hestia_earth/models/site/management.py,sha256=ik1fUHUIqVeSHdUMohig_5w8I9E0EPsiYQOtUeKDrKY,11296
476
478
  hestia_earth/models/site/netPrimaryProduction.py,sha256=UIIQkYd911qVzrWjxBLrC37e-RARIVgDwLdARY9BuLw,1849
477
479
  hestia_earth/models/site/organicCarbonPerHa.py,sha256=F2ShinHf0m9qKa1nCYBspsDkRY6jzOl0wM8mSDre22I,14916
478
480
  hestia_earth/models/site/organicCarbonPerKgSoil.py,sha256=t--wAshiAKS-JvEKhLFRadGvgSBv5NFZ68jdyms_wh4,1945
@@ -497,7 +499,7 @@ hestia_earth/models/site/measurement/value.py,sha256=7IhUbIj7n5vB7yXoNxXsWbliEJj
497
499
  hestia_earth/models/site/post_checks/__init__.py,sha256=CkExxesk1GuG8NjrbKfix1iDuVUgU-9i1ccM_X7MZn4,284
498
500
  hestia_earth/models/site/post_checks/cache.py,sha256=_MZsNsclecUdHDT2MsYx4cEsVUXydIasddgZNA6SU4k,284
499
501
  hestia_earth/models/site/pre_checks/__init__.py,sha256=fjv6nU5fiL-CLyaa-cBpiLB-xujgPzeK7i7ZJuTOjCI,394
500
- hestia_earth/models/site/pre_checks/cache_geospatialDatabase.py,sha256=MoQ76e0S63uvoFhqBbhG0GuoJ9bZgX_vrXz2_Id44Jw,5290
502
+ hestia_earth/models/site/pre_checks/cache_geospatialDatabase.py,sha256=gEceynsvPAB6lN36t73yRAAaIn0wLvvK3NK0vXKM7mY,5654
501
503
  hestia_earth/models/site/pre_checks/cache_sources.py,sha256=13kbIzCGox3IEsnCwpRi_ioHFcc1NhMm8yeW_8MOSGw,794
502
504
  hestia_earth/models/site/pre_checks/cache_years.py,sha256=qGwTaHlWxnVT7iVxXVcpJ-oG6M-VH4ZpCDTdTixUHR4,883
503
505
  hestia_earth/models/stehfestBouwman2006/__init__.py,sha256=EhvD4NK6oEPevusLb1WdYV3GT_fCtQx4gvdMhK_dEIQ,420
@@ -551,7 +553,7 @@ hestia_earth/models/utils/feedipedia.py,sha256=ImUAURcwJDtSvu1s4MDeM1VpbU8mVTp9j
551
553
  hestia_earth/models/utils/fertiliser.py,sha256=DBO4OBNgnQJ0fCQMDkIk_ZGZX-uKGaTFZCEXfAnJciY,690
552
554
  hestia_earth/models/utils/fuel.py,sha256=r1MKMMxg-PYiVlRutP83RuvY2rsdCQ1iN6ekSGGQGpA,1379
553
555
  hestia_earth/models/utils/impact_assessment.py,sha256=H1_cvLwC8nb3A5ckS9uvWrLqUDU_9i9BdQiPpn52xIg,6890
554
- hestia_earth/models/utils/indicator.py,sha256=fPq38ifd53xWbuOfoiVwiA0Nwa7jVPJLSAPpOMMil8Q,423
556
+ hestia_earth/models/utils/indicator.py,sha256=IFrVIUYpmdVLOR1SKkrTReDbG1Tzq2b6daVvLMYpCs4,537
555
557
  hestia_earth/models/utils/inorganicFertiliser.py,sha256=_dLBY-otGkLr8PobR5dQ89bF2uwc2PB4JPrHFSksMEQ,1900
556
558
  hestia_earth/models/utils/input.py,sha256=YycsAbSBfVDMu6PftDsisMFGnEp87wOj-3rrnHnOgzo,4927
557
559
  hestia_earth/models/utils/liveAnimal.py,sha256=GnajBPZw5d94raf80KtLloaOqlfqGAPwUtP9bRlGWeE,1754
@@ -566,13 +568,13 @@ hestia_earth/models/utils/property.py,sha256=_9Wy0oZIBLsa-jOiGLokKehYLNdz-_7LfLa
566
568
  hestia_earth/models/utils/site.py,sha256=zEj2PtIghk-L_vVJidlXM6_ed7HTc2-ogP0sQSh49vw,3874
567
569
  hestia_earth/models/utils/source.py,sha256=Y-CcO5Y3q5Hz4A4RdX35C1EUjL9w1NKnOrzVfOWQ7nU,1748
568
570
  hestia_earth/models/utils/temperature.py,sha256=ljlG4-yCgFFb6LRZweb18cZKLrr7K2mqd4E4Hz_D1f8,476
569
- hestia_earth/models/utils/term.py,sha256=lStzguJ0x13bPWzzNYD3cjZZVNDZ9xhl2jlAsMJHrxw,18327
571
+ hestia_earth/models/utils/term.py,sha256=YslK2utjWOO3ovQjkUnQol1KNPg5EvsaS7VX_RKzTTk,19241
570
572
  hestia_earth/models/utils/transformation.py,sha256=nyT5Mz4_VgFwhkL8JoNX9kxxow0zuxzsYl3W8xOu2p0,370
571
573
  hestia_earth/models/webbEtAl2012AndSintermannEtAl2012/__init__.py,sha256=Niv7ZFMBCwThlbCKGOwA17QdkpOUDFrqrFItGNqnZAA,434
572
574
  hestia_earth/models/webbEtAl2012AndSintermannEtAl2012/nh3ToAirOrganicFertiliser.py,sha256=TGXyusrRd9shT842iqbrI6MkQhICgw7uYdrl4jsDrg8,4193
573
575
  tests/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
574
- tests/models/test_cache_sites.py,sha256=AsZSGb4ruFqag74wRaQxpoZxbMxexPY8q8sMb2ergzg,1986
575
- tests/models/test_ecoinventV3.py,sha256=ojL19T8kFNCiM5i-EgvXniLWBxU4RCsBOgIQ-sbGaMM,1894
576
+ tests/models/test_cache_sites.py,sha256=R35GdQtQ7gObX3BbH1Y2SDq3lBriXP1SC-1fNNkjN-U,2140
577
+ tests/models/test_ecoinventV3.py,sha256=_BqfWiYFaw-Y7A-EeabHEnja3d7yb4Ed7gGGvu3Srpw,1936
576
578
  tests/models/test_ecoinventV3AndEmberClimate.py,sha256=_EOxdrdavXP6L5_LtvaVbXb_-56UJXSaiPhpGntmwVc,801
577
579
  tests/models/test_emissionNotRelevant.py,sha256=YXTdRfcdR_JepHuj2P3Y3r0aFMKNOmsXQHY48tmLTQo,1316
578
580
  tests/models/agribalyse2016/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -635,6 +637,7 @@ tests/models/cycle/test_siteUnusedDuration.py,sha256=5h9R3guw6ErU_sE5omoiK9Fpke7
635
637
  tests/models/cycle/test_startDate.py,sha256=cGhqeZWkJdp6PNxmT0rJ5ZVsTAKm_8CyZKivAzRwSeI,592
636
638
  tests/models/cycle/test_startDateDefinition.py,sha256=42BmsT1I7Jq_YMVN-VNU7a0fIZ2w3i5jgwy4H_r4dNM,920
637
639
  tests/models/cycle/test_transformations.py,sha256=Ws_8KhNqeHogGFXTQ4qZXQ5Ph2I3ZUaY0yO1itFUHLk,464
640
+ tests/models/cycle/test_unknownPreSeasonWaterRegime.py,sha256=4JSSpDvBQEQrDoytNVzuIcm9UVio4TzZpZm52iMWBVA,1220
638
641
  tests/models/cycle/animal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
639
642
  tests/models/cycle/animal/test_milkYield.py,sha256=e3FX8ikrS7nNeOuy8K7rNLs577odN5xrFohUWQw-tag,1323
640
643
  tests/models/cycle/animal/test_properties.py,sha256=ND9ltZQie1xXtQvAzoDUkBYGV_N3rw5D5W-irARvO0s,715
@@ -702,7 +705,7 @@ tests/models/faostat2018/product/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
702
705
  tests/models/faostat2018/product/test_price.py,sha256=vUTT-FZVbXnDrwQVOgq8PWTDuFK_gAT6aqJ9ZK6Qcsc,3493
703
706
  tests/models/geospatialDatabase/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
704
707
  tests/models/geospatialDatabase/test_aware.py,sha256=tbBBvXrOqdO0cMPJTa02UfhlwfosH8iNoJLzZNFs1NU,857
705
- tests/models/geospatialDatabase/test_clayContent.py,sha256=KdkmsJMB1FsJXZCggcGWh3LlDKDDlwvcmSLEhZpdM_g,1177
708
+ tests/models/geospatialDatabase/test_clayContent.py,sha256=GqFAPIOkXfDpJFkI-vK6l3hK0Ap36lLCWGhXCly-DME,1797
706
709
  tests/models/geospatialDatabase/test_croppingIntensity.py,sha256=p7OQZOKuxcEhokFqIE4jj6GU3YwR9GtQqNwlhOGy7uI,1006
707
710
  tests/models/geospatialDatabase/test_drainageClass.py,sha256=X75v6f8N5i40grULUNMvNOu_UC27VoahuW6BaQb19LY,1015
708
711
  tests/models/geospatialDatabase/test_ecoClimateZone.py,sha256=ad0BBOhjl6uMUP_-QhAHEG3kTo7x3EaXuEahbbnx10E,1119
@@ -712,7 +715,7 @@ tests/models/geospatialDatabase/test_heavyWinterPrecipitation.py,sha256=1xv7L_b3
712
715
  tests/models/geospatialDatabase/test_histosol.py,sha256=Jc4N7Qt2zx09L8lj9Kjmr1q36T96MBNlasxGB0jD4EQ,1102
713
716
  tests/models/geospatialDatabase/test_longFallowRatio.py,sha256=VoYURFuOnlC8ozxcMLTzv99MGlymlVXd596T5MKVvOU,1004
714
717
  tests/models/geospatialDatabase/test_nutrientLossToAquaticEnvironment.py,sha256=ZtoNdI_dB3Nk79Ts9JJrlda7z6HRE2cwCQHC2DiWCsY,1034
715
- tests/models/geospatialDatabase/test_organicCarbonPerKgSoil.py,sha256=WomlRdVl4f6ooJz2YctPf0YGiNs-9To6XFwTdtpm0SQ,1024
718
+ tests/models/geospatialDatabase/test_organicCarbonPerKgSoil.py,sha256=sx9raq5YGuyVjZ5GfNeo36LXNT5zfvn3W-kDWeoaJWI,1636
716
719
  tests/models/geospatialDatabase/test_potentialEvapotranspirationAnnual.py,sha256=6s4XDmKi__njKE_3tFMIAHr0a1w7X4t8uFRtihN_cm4,706
717
720
  tests/models/geospatialDatabase/test_potentialEvapotranspirationLongTermAnnualMean.py,sha256=KzIXuYeO5IZ8l4tKsIEaWcFeV_vSPDSpR6xiuvt_x4o,1003
718
721
  tests/models/geospatialDatabase/test_potentialEvapotranspirationMonthly.py,sha256=iu8HWAwl52fWDQJ_Nz5AZIAzbuMAjQfiQwxCHlciI-o,762
@@ -720,15 +723,15 @@ tests/models/geospatialDatabase/test_precipitationAnnual.py,sha256=OhN7dbLZUG8of
720
723
  tests/models/geospatialDatabase/test_precipitationLongTermAnnualMean.py,sha256=wGGKXGemg3OEgDRRXy52oFf5p8jU57iraTgQMWDzusQ,1033
721
724
  tests/models/geospatialDatabase/test_precipitationMonthly.py,sha256=FTmnMXqwxuV_FwNzx8ZJsF5DCdaOdXPNV9UQ5gFKALs,748
722
725
  tests/models/geospatialDatabase/test_region.py,sha256=5q3q5TK7yzvoZI2gknf-TPNcmDqVkMo0D3-KY401J2k,882
723
- tests/models/geospatialDatabase/test_sandContent.py,sha256=hvV0Z51hKPLoSBNsjLJ18upGSt3FUHYbp2ofx7fBUvU,1177
724
- tests/models/geospatialDatabase/test_siltContent.py,sha256=udJDh2gidlkQVkotxWjCCsXRkbvAQxfpFAjEj5dtNJE,1124
726
+ tests/models/geospatialDatabase/test_sandContent.py,sha256=7H-GNxyn4EGQJd3J3r_SdtSfpPMqR-IlmLo188KAWSU,1797
727
+ tests/models/geospatialDatabase/test_siltContent.py,sha256=DNXa7Ih4TWe3zmBJIAgzZpdyjSRo77hwErkoBluIGaw,1194
725
728
  tests/models/geospatialDatabase/test_slope.py,sha256=OQBjH1K1VDgbZ5B9hSy-oPzPnaqYU8Bkb2Cvd-KMqa0,1007
726
729
  tests/models/geospatialDatabase/test_slopeLength.py,sha256=56iCm-qn41NpeVHU9dKtAUIrbuEYGbQMOa3sg5dJ5X0,1013
727
- tests/models/geospatialDatabase/test_soilPh.py,sha256=Xi-SQ9HesSbvpaUd97n7KbDhxLVZLh07mQ-YtOR0FZU,1008
730
+ tests/models/geospatialDatabase/test_soilPh.py,sha256=sTKmdZajx-wnyvDLbemJor_fXmqGtcUybfshl-pfO40,1636
728
731
  tests/models/geospatialDatabase/test_temperatureAnnual.py,sha256=1hW0fHUlFOAWiPqYZm4ZbTGqjpOAmLb1mkucnAaTrIQ,742
729
732
  tests/models/geospatialDatabase/test_temperatureLongTermAnnualMean.py,sha256=Wrz9dbDvXM0OgBA3mXpzY0WZk-yqIp980JRKenxFqno,1031
730
733
  tests/models/geospatialDatabase/test_temperatureMonthly.py,sha256=eUaI1TZ-9sXFxWR2UoKBbca8dzW21zp5jGcfbooTt3M,746
731
- tests/models/geospatialDatabase/test_totalNitrogenPerKgSoil.py,sha256=_U3j5hqwYezG7e9v2WyO9ik2QJ9MqjM1QWPGkDChP7M,1024
734
+ tests/models/geospatialDatabase/test_totalNitrogenPerKgSoil.py,sha256=fZuFjIJ_-bF8HqoNfzA0odmABiSgnttlGQw2Rphqu70,1632
732
735
  tests/models/geospatialDatabase/test_totalPhosphorusPerKgSoil.py,sha256=N5Vqf3YKlxHxWRe1PP3Kpbd30bhPOsB8eYr2IGS7quk,1026
733
736
  tests/models/geospatialDatabase/test_utils.py,sha256=2AOTtxs7KjPUVQXyErHsm7578523a5WNODVbbuxafAY,758
734
737
  tests/models/geospatialDatabase/test_waterDepth.py,sha256=v1y6OcEdSOKu5wlIOYD9UctAx2k7ODP3eLf0WHZZz5w,954
@@ -738,15 +741,16 @@ tests/models/haversineFormula/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
738
741
  tests/models/haversineFormula/transport/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
739
742
  tests/models/haversineFormula/transport/test_distance.py,sha256=hqzIOA1nGao8uiBE16J0ou52McwV4w30ZLpEAqtfi9k,970
740
743
  tests/models/hyde32/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
741
- tests/models/hyde32/test_landTransformationFromCropland100YearAverageDuringCycle.py,sha256=RKxRIxBg7MazL62Hf56ls-8uiyS1M-lk5mdvodgqqVE,706
742
- tests/models/hyde32/test_landTransformationFromCropland20YearAverageDuringCycle.py,sha256=XoNrnnyqk7WpIT8S_-GPy8Hxbz6Ve1FH25XZ-JB4PEs,705
743
- tests/models/hyde32/test_landTransformationFromForest100YearAverageDuringCycle.py,sha256=5yL4Aum5QpVZkeKTOZx2FuZRSCA0Lm7md90eNJnuFgU,704
744
- tests/models/hyde32/test_landTransformationFromForest20YearAverageDuringCycle.py,sha256=pl1FXLFDvrbNumtt7gkoQIFnoVAao1P9ryjrAu7qM84,703
745
- tests/models/hyde32/test_landTransformationFromOtherNaturalVegetation100YearAverageDuringCycle.py,sha256=uTm3pgfY4HaP_hdsfaLhFrufJ-sWXOkFtiTqWwufQac,728
746
- tests/models/hyde32/test_landTransformationFromOtherNaturalVegetation20YearAverageDuringCycle.py,sha256=Ehqgzw9igizDD-J9_Gqwe8ywQ2JlKhmMy1MeUjED57Y,719
747
- tests/models/hyde32/test_landTransformationFromPermanentPasture100YearAverageDuringCycle.py,sha256=0I6O7wr_EXqFKj_Gcv5nEaj6HtNXALsyP5ak4cLWFPc,714
748
- tests/models/hyde32/test_landTransformationFromPermanentPasture20YearAverageDuringCycle.py,sha256=Bnoy946OwVhgn_jtZBiYXMebyJMT0LX7ATOVa0ivXrs,713
744
+ tests/models/hyde32/test_landTransformationFromCropland100YearAverageDuringCycle.py,sha256=tOwcToAZLgIvVEx0i3S67EDaTBi_gXKy-XZCnw1Akl8,797
745
+ tests/models/hyde32/test_landTransformationFromCropland20YearAverageDuringCycle.py,sha256=Fw1goOLe6xPUA7J65MojAyvuEBWnsypHzfjopER9wWo,796
746
+ tests/models/hyde32/test_landTransformationFromForest100YearAverageDuringCycle.py,sha256=A5ZYNmu7vThE51g6BXZkL8-xsv5EEgFn5a9zxN6T1bw,795
747
+ tests/models/hyde32/test_landTransformationFromForest20YearAverageDuringCycle.py,sha256=mx90anMpzRLVjdOoU6aCghSl7mQNGCO4C-rRnMyVzAQ,794
748
+ tests/models/hyde32/test_landTransformationFromOtherNaturalVegetation100YearAverageDuringCycle.py,sha256=D4EcjiN0-O38VumO7EnnohH6c7adThXWfwiwat2jKT4,819
749
+ tests/models/hyde32/test_landTransformationFromOtherNaturalVegetation20YearAverageDuringCycle.py,sha256=C9caq_xP8NZgtA-WWVArWZ0dzT8k4OmXocCYYrGHxGE,810
750
+ tests/models/hyde32/test_landTransformationFromPermanentPasture100YearAverageDuringCycle.py,sha256=uGrwTFGkOK-s19gFxOC3BGoCTlUkqVxVN18GgbFhDLE,805
751
+ tests/models/hyde32/test_landTransformationFromPermanentPasture20YearAverageDuringCycle.py,sha256=iPSrq8lwEZK4Vzwvr06TRJ_rcLuxTUznRoSw1Xxn--g,804
749
752
  tests/models/impact_assessment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
753
+ tests/models/impact_assessment/test_allocationMethod.py,sha256=HkUt6oWdEyFSdxMpx8y_Oxk0nO2Fi9B_kUZcVte9tzg,1223
750
754
  tests/models/impact_assessment/test_emissions.py,sha256=nygoe5JeuQ1rbMQSqAr8oBSm6jC4ygZb2XNHyEx85lo,990
751
755
  tests/models/impact_assessment/test_irrigated.py,sha256=3elSWEN1NE05JO1OMfJ7uf0JmU-fqLpazCvS6FVxMQE,377
752
756
  tests/models/impact_assessment/test_oganic.py,sha256=Ei73bkB2MzKlr3jZmg8Cimxw_ImJSBdB3xKBn6ZCRx8,375
@@ -1096,12 +1100,12 @@ tests/models/utils/test_practice.py,sha256=ILaxkb3qICor9AquAGYiOtA-YKnq0hppmJQzN
1096
1100
  tests/models/utils/test_product.py,sha256=kwvgAeeEoRgkeStX0zQcFd-4DJhoUhX6Apaks0MU2L0,2305
1097
1101
  tests/models/utils/test_property.py,sha256=t2npw86IK7C6G4ypiPtanFi0db4PB7G5VBR1GjRGl34,618
1098
1102
  tests/models/utils/test_site.py,sha256=9MXbP5JXl0mYaH-yVHJINnZu_MYwj-ogsJWZ3XTHxas,1196
1099
- tests/models/utils/test_source.py,sha256=mv3vHZV5cjpoLA2I1109-YUkuzAiuhbRSnv_76_f0CA,631
1103
+ tests/models/utils/test_source.py,sha256=_Ol-OrJs2Tt9iZAZ_RY2qRuSbnE4yz5OuEGkDSbZPyI,631
1100
1104
  tests/models/utils/test_term.py,sha256=M5Sa26v2gzQYbZ4H_fo7DspnaCx__-WtL-MULGapCWk,3509
1101
1105
  tests/models/webbEtAl2012AndSintermannEtAl2012/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1102
1106
  tests/models/webbEtAl2012AndSintermannEtAl2012/test_nh3ToAirOrganicFertiliser.py,sha256=qi2FNXS5Af2WDtm7nq_FsprH3BfCF0XxnE0XHmC4aIY,2244
1103
- hestia_earth_models-0.63.0.dist-info/LICENSE,sha256=AC7h7GAgCZGJK_Tzh6LUCrML9gQEfowWwecEw2w54QM,1154
1104
- hestia_earth_models-0.63.0.dist-info/METADATA,sha256=MK-JrrKU5oV4srRZkm6T31CFsmoyaAr1NpMWMJ6zb3M,3343
1105
- hestia_earth_models-0.63.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
1106
- hestia_earth_models-0.63.0.dist-info/top_level.txt,sha256=1dqA9TqpOLTEgpqa-YBsmbCmmNU1y56AtfFGEceZ2A0,19
1107
- hestia_earth_models-0.63.0.dist-info/RECORD,,
1107
+ hestia_earth_models-0.64.0.dist-info/LICENSE,sha256=AC7h7GAgCZGJK_Tzh6LUCrML9gQEfowWwecEw2w54QM,1154
1108
+ hestia_earth_models-0.64.0.dist-info/METADATA,sha256=tyTyf2TquQ4gi_WG81o9Up-3us02Yz1Nc5ILz_UwI-g,3343
1109
+ hestia_earth_models-0.64.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
1110
+ hestia_earth_models-0.64.0.dist-info/top_level.txt,sha256=1dqA9TqpOLTEgpqa-YBsmbCmmNU1y56AtfFGEceZ2A0,19
1111
+ hestia_earth_models-0.64.0.dist-info/RECORD,,
@@ -0,0 +1,36 @@
1
+ from unittest.mock import patch
2
+ import json
3
+ from tests.utils import fake_new_practice, fixtures_path
4
+
5
+ from hestia_earth.models.cycle.unknownPreSeasonWaterRegime import MODEL, TERM_ID, _should_run, run
6
+
7
+ class_path = f"hestia_earth.models.{MODEL}.{TERM_ID}"
8
+ fixtures_folder = f"{fixtures_path}/{MODEL}/{TERM_ID}"
9
+
10
+ _PRACTICE_TERM_ID = 'nonFloodedPreSeasonLessThan180Days'
11
+
12
+
13
+ @patch(f"{class_path}.get_flooded_pre_season_terms", return_value=[_PRACTICE_TERM_ID])
14
+ def test_should_run(*args):
15
+ # with the practice => no run
16
+ cycle = {'practices': [{'term': {'@id': _PRACTICE_TERM_ID}}]}
17
+ should_run = _should_run(cycle)
18
+ assert not should_run
19
+
20
+ # without the practice => run
21
+ cycle = {'practices': []}
22
+ should_run = _should_run(cycle)
23
+ assert should_run is True
24
+
25
+
26
+ @patch(f"{class_path}.get_flooded_pre_season_terms", return_value=[_PRACTICE_TERM_ID])
27
+ @patch(f"{class_path}._new_practice", side_effect=fake_new_practice)
28
+ def test_run(*args):
29
+ with open(f"{fixtures_folder}/cycle.jsonld", encoding='utf-8') as f:
30
+ data = json.load(f)
31
+
32
+ with open(f"{fixtures_folder}/result.jsonld", encoding='utf-8') as f:
33
+ expected = json.load(f)
34
+
35
+ result = run(data)
36
+ assert result == expected
@@ -1,4 +1,4 @@
1
- from unittest.mock import patch
1
+ from unittest.mock import patch, call
2
2
  import json
3
3
  from tests.utils import fixtures_path, fake_new_measurement
4
4
 
@@ -32,4 +32,18 @@ def test_run(mock_download, *args):
32
32
  site = json.load(f)
33
33
 
34
34
  run(site)
35
- mock_download.assert_called_once()
35
+ base_params = {'ee_type': 'raster', 'reducer': 'mean'}
36
+ mock_download.assert_has_calls([
37
+ call(TERM_ID, site, base_params | {
38
+ 'collection': 'T_CLAY_v2_depth_1', 'depthUpper': 0, 'depthLower': 20
39
+ }),
40
+ call(TERM_ID, site, base_params | {
41
+ 'collection': 'T_CLAY_v2_depth_2', 'depthUpper': 20, 'depthLower': 40
42
+ }),
43
+ call(TERM_ID, site, base_params | {
44
+ 'collection': 'T_CLAY_v2_depth_3', 'depthUpper': 40, 'depthLower': 60
45
+ }),
46
+ call(TERM_ID, site, base_params | {
47
+ 'collection': 'T_CLAY_v2_depth_4', 'depthUpper': 60, 'depthLower': 80
48
+ })
49
+ ])
@@ -1,4 +1,4 @@
1
- from unittest.mock import patch
1
+ from unittest.mock import patch, call
2
2
  import json
3
3
  from tests.utils import fixtures_path, fake_new_measurement
4
4
 
@@ -26,4 +26,18 @@ def test_run(mock_download, *args):
26
26
  site = json.load(f)
27
27
 
28
28
  run(site)
29
- mock_download.assert_called_once()
29
+ base_params = {'ee_type': 'raster', 'reducer': 'mean'}
30
+ mock_download.assert_has_calls([
31
+ call(TERM_ID, site, base_params | {
32
+ 'collection': 'T_OC_v2_depth_1', 'depthUpper': 0, 'depthLower': 20
33
+ }),
34
+ call(TERM_ID, site, base_params | {
35
+ 'collection': 'T_OC_v2_depth_2', 'depthUpper': 20, 'depthLower': 40
36
+ }),
37
+ call(TERM_ID, site, base_params | {
38
+ 'collection': 'T_OC_v2_depth_3', 'depthUpper': 40, 'depthLower': 60
39
+ }),
40
+ call(TERM_ID, site, base_params | {
41
+ 'collection': 'T_OC_v2_depth_4', 'depthUpper': 60, 'depthLower': 80
42
+ })
43
+ ])
@@ -1,4 +1,4 @@
1
- from unittest.mock import patch
1
+ from unittest.mock import patch, call
2
2
  import json
3
3
  from tests.utils import fixtures_path, fake_new_measurement
4
4
 
@@ -32,4 +32,18 @@ def test_run(mock_download, *args):
32
32
  site = json.load(f)
33
33
 
34
34
  run(site)
35
- mock_download.assert_called_once()
35
+ base_params = {'ee_type': 'raster', 'reducer': 'mean'}
36
+ mock_download.assert_has_calls([
37
+ call(TERM_ID, site, base_params | {
38
+ 'collection': 'T_SAND_v2_depth_1', 'depthUpper': 0, 'depthLower': 20
39
+ }),
40
+ call(TERM_ID, site, base_params | {
41
+ 'collection': 'T_SAND_v2_depth_2', 'depthUpper': 20, 'depthLower': 40
42
+ }),
43
+ call(TERM_ID, site, base_params | {
44
+ 'collection': 'T_SAND_v2_depth_3', 'depthUpper': 40, 'depthLower': 60
45
+ }),
46
+ call(TERM_ID, site, base_params | {
47
+ 'collection': 'T_SAND_v2_depth_4', 'depthUpper': 60, 'depthLower': 80
48
+ })
49
+ ])
@@ -17,8 +17,8 @@ def test_should_run():
17
17
 
18
18
  # with measumrents => run
19
19
  site['measurements'] = [
20
- {'term': {'@id': 'clayContent'}, 'value': [10]},
21
- {'term': {'@id': 'sandContent'}, 'value': [20]}
20
+ {'term': {'@id': 'clayContent'}, 'value': [10], 'depthUpper': 0, 'depthLower': 20},
21
+ {'term': {'@id': 'sandContent'}, 'value': [20], 'depthUpper': 0, 'depthLower': 20}
22
22
  ]
23
23
  should_run, *_ = _should_run(site)
24
24
  assert should_run is True
@@ -1,4 +1,4 @@
1
- from unittest.mock import patch
1
+ from unittest.mock import patch, call
2
2
  import json
3
3
  from tests.utils import fixtures_path, fake_new_measurement
4
4
 
@@ -26,4 +26,18 @@ def test_run(mock_download, *args):
26
26
  site = json.load(f)
27
27
 
28
28
  run(site)
29
- mock_download.assert_called_once()
29
+ base_params = {'ee_type': 'raster', 'reducer': 'mean'}
30
+ mock_download.assert_has_calls([
31
+ call(TERM_ID, site, base_params | {
32
+ 'collection': 'T_PH_H2O_v2_depth_1', 'depthUpper': 0, 'depthLower': 20
33
+ }),
34
+ call(TERM_ID, site, base_params | {
35
+ 'collection': 'T_PH_H2O_v2_depth_2', 'depthUpper': 20, 'depthLower': 40
36
+ }),
37
+ call(TERM_ID, site, base_params | {
38
+ 'collection': 'T_PH_H2O_v2_depth_3', 'depthUpper': 40, 'depthLower': 60
39
+ }),
40
+ call(TERM_ID, site, base_params | {
41
+ 'collection': 'T_PH_H2O_v2_depth_4', 'depthUpper': 60, 'depthLower': 80
42
+ })
43
+ ])
@@ -1,4 +1,4 @@
1
- from unittest.mock import patch
1
+ from unittest.mock import patch, call
2
2
  import json
3
3
  from tests.utils import fixtures_path, fake_new_measurement
4
4
 
@@ -26,4 +26,18 @@ def test_run(mock_download, *args):
26
26
  site = json.load(f)
27
27
 
28
28
  run(site)
29
- mock_download.assert_called_once()
29
+ base_params = {'ee_type': 'raster', 'reducer': 'mean'}
30
+ mock_download.assert_has_calls([
31
+ call(TERM_ID, site, base_params | {
32
+ 'collection': 'T_N_v2_depth_1', 'depthUpper': 0, 'depthLower': 20
33
+ }),
34
+ call(TERM_ID, site, base_params | {
35
+ 'collection': 'T_N_v2_depth_2', 'depthUpper': 20, 'depthLower': 40
36
+ }),
37
+ call(TERM_ID, site, base_params | {
38
+ 'collection': 'T_N_v2_depth_3', 'depthUpper': 40, 'depthLower': 60
39
+ }),
40
+ call(TERM_ID, site, base_params | {
41
+ 'collection': 'T_N_v2_depth_4', 'depthUpper': 60, 'depthLower': 80
42
+ })
43
+ ])
@@ -8,6 +8,7 @@ class_path = f"hestia_earth.models.hyde32.{TERM_ID}"
8
8
  fixtures_folder = f"{fixtures_path}/hyde32/{TERM_ID}"
9
9
 
10
10
 
11
+ @patch('hestia_earth.models.hyde32.utils.get_land_cover_term_id', return_value='cropland')
11
12
  @patch('hestia_earth.models.hyde32.utils._new_indicator', side_effect=fake_new_indicator)
12
13
  def test_run(*args):
13
14
  with open(f"{fixtures_folder}/impact-assessment.jsonld", encoding='utf-8') as f:
@@ -8,6 +8,7 @@ class_path = f"hestia_earth.models.hyde32.{TERM_ID}"
8
8
  fixtures_folder = f"{fixtures_path}/hyde32/{TERM_ID}"
9
9
 
10
10
 
11
+ @patch('hestia_earth.models.hyde32.utils.get_land_cover_term_id', return_value='cropland')
11
12
  @patch('hestia_earth.models.hyde32.utils._new_indicator', side_effect=fake_new_indicator)
12
13
  def test_run(*args):
13
14
  with open(f"{fixtures_folder}/impact-assessment.jsonld", encoding='utf-8') as f:
@@ -8,6 +8,7 @@ class_path = f"hestia_earth.models.hyde32.{TERM_ID}"
8
8
  fixtures_folder = f"{fixtures_path}/hyde32/{TERM_ID}"
9
9
 
10
10
 
11
+ @patch('hestia_earth.models.hyde32.utils.get_land_cover_term_id', return_value='cropland')
11
12
  @patch('hestia_earth.models.hyde32.utils._new_indicator', side_effect=fake_new_indicator)
12
13
  def test_run(*args):
13
14
  with open(f"{fixtures_folder}/impact-assessment.jsonld", encoding='utf-8') as f:
@@ -8,6 +8,7 @@ class_path = f"hestia_earth.models.hyde32.{TERM_ID}"
8
8
  fixtures_folder = f"{fixtures_path}/hyde32/{TERM_ID}"
9
9
 
10
10
 
11
+ @patch('hestia_earth.models.hyde32.utils.get_land_cover_term_id', return_value='cropland')
11
12
  @patch('hestia_earth.models.hyde32.utils._new_indicator', side_effect=fake_new_indicator)
12
13
  def test_run(*args):
13
14
  with open(f"{fixtures_folder}/impact-assessment.jsonld", encoding='utf-8') as f:
@@ -10,6 +10,7 @@ class_path = f"hestia_earth.models.hyde32.{TERM_ID}"
10
10
  fixtures_folder = f"{fixtures_path}/hyde32/{TERM_ID}"
11
11
 
12
12
 
13
+ @patch('hestia_earth.models.hyde32.utils.get_land_cover_term_id', return_value='cropland')
13
14
  @patch('hestia_earth.models.hyde32.utils._new_indicator', side_effect=fake_new_indicator)
14
15
  def test_run(*args):
15
16
  with open(f"{fixtures_folder}/impact-assessment.jsonld", encoding='utf-8') as f:
@@ -8,6 +8,7 @@ class_path = f"hestia_earth.models.hyde32.{TERM_ID}"
8
8
  fixtures_folder = f"{fixtures_path}/hyde32/{TERM_ID}"
9
9
 
10
10
 
11
+ @patch('hestia_earth.models.hyde32.utils.get_land_cover_term_id', return_value='cropland')
11
12
  @patch('hestia_earth.models.hyde32.utils._new_indicator', side_effect=fake_new_indicator)
12
13
  def test_run(*args):
13
14
  with open(f"{fixtures_folder}/impact-assessment.jsonld", encoding='utf-8') as f:
@@ -8,6 +8,7 @@ class_path = f"hestia_earth.models.hyde32.{TERM_ID}"
8
8
  fixtures_folder = f"{fixtures_path}/hyde32/{TERM_ID}"
9
9
 
10
10
 
11
+ @patch('hestia_earth.models.hyde32.utils.get_land_cover_term_id', return_value='cropland')
11
12
  @patch('hestia_earth.models.hyde32.utils._new_indicator', side_effect=fake_new_indicator)
12
13
  def test_run(*args):
13
14
  with open(f"{fixtures_folder}/impact-assessment.jsonld", encoding='utf-8') as f:
@@ -8,6 +8,7 @@ class_path = f"hestia_earth.models.hyde32.{TERM_ID}"
8
8
  fixtures_folder = f"{fixtures_path}/hyde32/{TERM_ID}"
9
9
 
10
10
 
11
+ @patch('hestia_earth.models.hyde32.utils.get_land_cover_term_id', return_value='cropland')
11
12
  @patch('hestia_earth.models.hyde32.utils._new_indicator', side_effect=fake_new_indicator)
12
13
  def test_run(*args):
13
14
  with open(f"{fixtures_folder}/impact-assessment.jsonld", encoding='utf-8') as f:
@@ -0,0 +1,48 @@
1
+ import json
2
+ import pytest
3
+ from tests.utils import fixtures_path
4
+
5
+ from hestia_earth.models.impact_assessment.allocationMethod import MODEL_KEY, run, _should_run
6
+
7
+ fixtures_folder = f"{fixtures_path}/impact_assessment/{MODEL_KEY}"
8
+
9
+
10
+ @pytest.mark.parametrize(
11
+ 'test_name,impact,expected_should_run',
12
+ [
13
+ (
14
+ 'no updated/modified => no run',
15
+ {},
16
+ False
17
+ ),
18
+ (
19
+ 'updated organic => no run',
20
+ {'updated': ['organic']},
21
+ False
22
+ ),
23
+ (
24
+ 'updated impacts => run',
25
+ {'updated': ['impacts']},
26
+ True
27
+ ),
28
+ (
29
+ 'added emissions => run',
30
+ {'updated': ['emissionsResourceUse']},
31
+ True
32
+ )
33
+ ]
34
+ )
35
+ def test_should_run(test_name, impact, expected_should_run):
36
+ should_run = _should_run(impact)
37
+ assert should_run == expected_should_run, test_name
38
+
39
+
40
+ def test_run():
41
+ with open(f"{fixtures_folder}/impact-assessment.jsonld", encoding='utf-8') as f:
42
+ impact = json.load(f)
43
+
44
+ with open(f"{fixtures_folder}/result.txt", encoding='utf-8') as f:
45
+ expected = f.read().strip()
46
+
47
+ result = run(impact)
48
+ assert result == expected
@@ -10,7 +10,7 @@ fixtures_folder = os.path.join(fixtures_path, 'cache_sites')
10
10
  coordinates = [{"latitude": 46.47, "longitude": 2.94}]
11
11
 
12
12
 
13
- @patch(f"{class_path}._run_query", return_value=[10] * 100)
13
+ @patch(f"{class_path}._run_query")
14
14
  def test_run(mock_run_query, *args):
15
15
  with open(f"{fixtures_folder}/data.json", encoding='utf-8') as f:
16
16
  data = json.load(f)
@@ -19,9 +19,9 @@ def test_run(mock_run_query, *args):
19
19
  with open(f"{fixtures_folder}/params.json", encoding='utf-8') as f:
20
20
  params = json.load(f)
21
21
 
22
+ mock_run_query.return_value = [10] * len(params.get('rasters', []) + params.get('vectors', []))
23
+
22
24
  sites = run(data.get('nodes', []), [2019, 2020], include_region=False)
23
- expected = [site | {'_cache': cache} for site in data.get('nodes', [])]
24
- assert sites == expected
25
25
 
26
26
  mock_run_query.assert_has_calls([
27
27
  call({
@@ -36,15 +36,21 @@ def test_run(mock_run_query, *args):
36
36
  })
37
37
  ])
38
38
 
39
+ expected = [site | {'_cache': cache} for site in data.get('nodes', [])]
40
+ assert sites == expected
41
+
39
42
 
40
- @patch(f"{class_path}._run_query", return_value=[10] * 100)
43
+ @patch(f"{class_path}._run_query")
41
44
  def test_run_include_region(mock_run_query, *args):
42
45
  with open(f"{fixtures_folder}/data.json", encoding='utf-8') as f:
43
46
  data = json.load(f)
44
47
  with open(f"{fixtures_folder}/params.json", encoding='utf-8') as f:
45
48
  params = json.load(f)
46
49
 
50
+ mock_run_query.return_value = [10] * len(params.get('rasters', []) + params.get('vectors', []))
51
+
47
52
  run(data.get('nodes', []), [2019, 2020], include_region=True)
53
+
48
54
  mock_run_query.assert_has_calls([
49
55
  call({
50
56
  "ee_type": "raster",
@@ -50,6 +50,7 @@ def test_run(*args):
50
50
  expected = json.load(f)
51
51
 
52
52
  result = run('all', cycle)
53
+ # print(json.dumps(result, indent=2))
53
54
  assert result == expected
54
55
 
55
56