hestia-earth-models 0.65.3__py3-none-any.whl → 0.65.5__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 (59) hide show
  1. hestia_earth/models/agribalyse2016/fuelElectricity.py +41 -35
  2. hestia_earth/models/aware/scarcityWeightedWaterUse.py +1 -1
  3. hestia_earth/models/cache_sites.py +2 -0
  4. hestia_earth/models/chaudharyBrooks2018/damageToTerrestrialEcosystemsLandOccupation.py +1 -1
  5. hestia_earth/models/chaudharyBrooks2018/damageToTerrestrialEcosystemsLandTransformation.py +1 -1
  6. hestia_earth/models/chaudharyBrooks2018/damageToTerrestrialEcosystemsTotalLandUseEffects.py +1 -1
  7. hestia_earth/models/cycle/completeness/__init__.py +1 -1
  8. hestia_earth/models/cycle/completeness/electricityFuel.py +4 -2
  9. hestia_earth/models/emepEea2019/nh3ToAirInorganicFertiliser.py +1 -1
  10. hestia_earth/models/geospatialDatabase/precipitationAnnual.py +2 -2
  11. hestia_earth/models/geospatialDatabase/precipitationLongTermAnnualMean.py +2 -2
  12. hestia_earth/models/geospatialDatabase/precipitationMonthly.py +2 -2
  13. hestia_earth/models/geospatialDatabase/temperatureAnnual.py +2 -2
  14. hestia_earth/models/geospatialDatabase/temperatureLongTermAnnualMean.py +2 -2
  15. hestia_earth/models/geospatialDatabase/temperatureMonthly.py +2 -2
  16. hestia_earth/models/hestia/landCover.py +31 -46
  17. hestia_earth/models/hestia/landTransformation100YearAverageDuringCycle.py +49 -0
  18. hestia_earth/models/hestia/landTransformation20YearAverageDuringCycle.py +49 -0
  19. hestia_earth/models/hestia/resourceUse_utils.py +200 -0
  20. hestia_earth/models/hestia/seed_emissions.py +37 -28
  21. hestia_earth/models/hestia/utils.py +48 -0
  22. hestia_earth/models/impact_assessment/emissions.py +20 -5
  23. hestia_earth/models/ipcc2019/co2ToAirCarbonStockChange_utils.py +66 -28
  24. hestia_earth/models/ipcc2019/croppingDuration.py +5 -0
  25. hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_1_utils.py +26 -142
  26. hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_2_utils.py +3 -3
  27. hestia_earth/models/ipcc2019/organicCarbonPerHa_utils.py +8 -5
  28. hestia_earth/models/linkedImpactAssessment/freshwaterWithdrawalsInputsProduction.py +2 -1
  29. hestia_earth/models/linkedImpactAssessment/landOccupationInputsProduction.py +1 -0
  30. hestia_earth/models/linkedImpactAssessment/landTransformation100YearAverageInputsProduction.py +1 -0
  31. hestia_earth/models/linkedImpactAssessment/landTransformation20YearAverageInputsProduction.py +1 -0
  32. hestia_earth/models/linkedImpactAssessment/utils.py +25 -20
  33. hestia_earth/models/mocking/search-results.json +670 -654
  34. hestia_earth/models/pooreNemecek2018/freshwaterWithdrawalsDuringCycle.py +4 -1
  35. hestia_earth/models/schererPfister2015/nErosionSoilFlux.py +23 -14
  36. hestia_earth/models/schererPfister2015/pErosionSoilFlux.py +23 -15
  37. hestia_earth/models/schererPfister2015/utils.py +3 -5
  38. hestia_earth/models/site/management.py +2 -2
  39. hestia_earth/models/utils/__init__.py +9 -0
  40. hestia_earth/models/utils/blank_node.py +28 -0
  41. hestia_earth/models/utils/ecoClimateZone.py +1 -4
  42. hestia_earth/models/utils/fuel.py +4 -1
  43. hestia_earth/models/utils/impact_assessment.py +7 -5
  44. hestia_earth/models/utils/lookup.py +8 -2
  45. hestia_earth/models/utils/pesticideAI.py +1 -0
  46. hestia_earth/models/version.py +1 -1
  47. {hestia_earth_models-0.65.3.dist-info → hestia_earth_models-0.65.5.dist-info}/METADATA +2 -2
  48. {hestia_earth_models-0.65.3.dist-info → hestia_earth_models-0.65.5.dist-info}/RECORD +59 -53
  49. tests/models/hestia/test_landTransformation100YearAverageDuringCycle.py +30 -0
  50. tests/models/hestia/test_landTransformation20YearAverageDuringCycle.py +31 -0
  51. tests/models/ipcc2019/test_co2ToAirAboveGroundBiomassStockChange.py +3 -1
  52. tests/models/ipcc2019/test_co2ToAirBelowGroundBiomassStockChange.py +3 -1
  53. tests/models/ipcc2019/test_co2ToAirSoilOrganicCarbonStockChange.py +3 -1
  54. tests/models/ipcc2019/test_organicCarbonPerHa.py +3 -2
  55. tests/models/ipcc2019/test_organicCarbonPerHa_tier_1_utils.py +15 -11
  56. tests/models/utils/test_blank_node.py +22 -7
  57. {hestia_earth_models-0.65.3.dist-info → hestia_earth_models-0.65.5.dist-info}/LICENSE +0 -0
  58. {hestia_earth_models-0.65.3.dist-info → hestia_earth_models-0.65.5.dist-info}/WHEEL +0 -0
  59. {hestia_earth_models-0.65.3.dist-info → hestia_earth_models-0.65.5.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,12 @@
1
1
  hestia_earth/__init__.py,sha256=G-d438vPx7m_ks5e9XTtM3u7LDRO5dSSukibukWmyPM,56
2
2
  hestia_earth/models/__init__.py,sha256=qEFeq3yuf3lQKVseALmL8aPM8fpCS54B_5pry00M3hk,76
3
- hestia_earth/models/cache_sites.py,sha256=wcF8gr3gEaHoqCP62imvXVrvSLYPYEHTzxkayy4xyck,5645
3
+ hestia_earth/models/cache_sites.py,sha256=Llo2SH1Lp-R8x1JRxJ2Ta-vw5RbdUj2FHXUP-cpKclw,5758
4
4
  hestia_earth/models/log.py,sha256=_zAfyOkL_VknEnMFvcpvenSMghadlDfZhiSx28545Gk,3558
5
5
  hestia_earth/models/preload_requests.py,sha256=vK_G1UzhNMhYy7ymnCtHUz_vv3cfApCSKqv29VREEBQ,1943
6
6
  hestia_earth/models/requirements.py,sha256=eU4yT443fx7BnaokhrLB_PCizJI7Y6m4auyo8vQauNg,17363
7
- hestia_earth/models/version.py,sha256=6Bg5poOYc7KCXz7iUPuWiXIrWYeR2XrpodeP8JQ0XxI,19
7
+ hestia_earth/models/version.py,sha256=FC1vYE-igSWHH_kAACO4-kmSuUUvTiLpGWVaBEvQW50,19
8
8
  hestia_earth/models/agribalyse2016/__init__.py,sha256=WvK0qCQbnYtg9oZxrACd1wGormZyXibPtpCnIQeDqbw,415
9
- hestia_earth/models/agribalyse2016/fuelElectricity.py,sha256=zcuarKatWLIUVwFy71wE2j--tftKga7tobxhasTlruY,4438
9
+ hestia_earth/models/agribalyse2016/fuelElectricity.py,sha256=rm5ZaRAzJ08m2y4BxkGh-RjudkDWgozmg3XumoRm-fQ,4511
10
10
  hestia_earth/models/agribalyse2016/machineryInfrastructureDepreciatedAmountPerCycle.py,sha256=BPjnWmg73i_OxM2ouCdMTWZtPIqyoUAXrvutntyteE0,3390
11
11
  hestia_earth/models/akagiEtAl2011AndIpcc2006/__init__.py,sha256=WK7xQwUPX48JGqZeb2S2EKdtXuxMjY7HYyUFHItUqUo,425
12
12
  hestia_earth/models/akagiEtAl2011AndIpcc2006/ch4ToAirCropResidueBurning.py,sha256=Mea3L8blwJpRzzJHIMJH71Pn93gz1M2KN2pb43tGBfs,1642
@@ -15,16 +15,16 @@ hestia_earth/models/akagiEtAl2011AndIpcc2006/nh3ToAirCropResidueBurning.py,sha25
15
15
  hestia_earth/models/akagiEtAl2011AndIpcc2006/noxToAirCropResidueBurning.py,sha256=Drsob8QtbGpCddmjB3lXm8SJF9e2xkhIx4woa0wnu4g,1642
16
16
  hestia_earth/models/akagiEtAl2011AndIpcc2006/utils.py,sha256=aHsit7ezqCE-RfRmZX19kdYN9nmAVFqFfjAH9bXA4cA,633
17
17
  hestia_earth/models/aware/__init__.py,sha256=F8XRo9nRiX-fHAqyeMARYtFmJWRPs-hnIaCiHcZhyMw,406
18
- hestia_earth/models/aware/scarcityWeightedWaterUse.py,sha256=iTmjr_r_Zc2u1w6wjC6Ry_TxqkWibIKwGbSrceNUX_E,4551
18
+ hestia_earth/models/aware/scarcityWeightedWaterUse.py,sha256=W_C4uudER4NPUDaXCK2BS3FC-j2xjBr4gwYw3T5g4bE,4570
19
19
  hestia_earth/models/blonkConsultants2016/__init__.py,sha256=jJhYkwblgQZRg3QOERBZfl4Nw9szPn-Mljz7KMWlXXM,421
20
20
  hestia_earth/models/blonkConsultants2016/ch4ToAirNaturalVegetationBurning.py,sha256=i9hPs8w3MTbo-3oio-vIkLeQ9VApKrhfNVihsmL8ZUA,3065
21
21
  hestia_earth/models/blonkConsultants2016/co2ToAirAboveGroundBiomassStockChangeLandUseChange.py,sha256=h3l6l6t950dPYkz-vj4w_MGHLwW4CTwH_l5eXlA1u5A,3006
22
22
  hestia_earth/models/blonkConsultants2016/n2OToAirNaturalVegetationBurningDirect.py,sha256=qU7FRqYJm47olbUY239YHhdn2OkMQ_GTDP5O27VTlmY,3071
23
23
  hestia_earth/models/blonkConsultants2016/utils.py,sha256=hmPnzJLmFgZvdzkk6Au2euglrvCGtCWtjM8w0rYQHr4,1517
24
24
  hestia_earth/models/chaudharyBrooks2018/__init__.py,sha256=LKxQu7-6gyWPpdXaYHDTawzsBNm7CpDrk98I5_TTLhA,420
25
- hestia_earth/models/chaudharyBrooks2018/damageToTerrestrialEcosystemsLandOccupation.py,sha256=8l0CQp_mf37s4TY1U8nUEf8L6vFZbqBFjMFW77oBqLA,3918
26
- hestia_earth/models/chaudharyBrooks2018/damageToTerrestrialEcosystemsLandTransformation.py,sha256=_Xs3FBjOrK-_bSTtNKyYF1FNjoIYEBpwYNfiV3yEQGs,3255
27
- hestia_earth/models/chaudharyBrooks2018/damageToTerrestrialEcosystemsTotalLandUseEffects.py,sha256=YLiwYlh3FM_aoLe26oDTYUHcFhWFHV6KjvlAprQlFo4,2604
25
+ hestia_earth/models/chaudharyBrooks2018/damageToTerrestrialEcosystemsLandOccupation.py,sha256=51SJaslhXtbtpWDO5DJYTDFWCGE5gFCpllZ06-pWg64,3937
26
+ hestia_earth/models/chaudharyBrooks2018/damageToTerrestrialEcosystemsLandTransformation.py,sha256=s2KB3cJrQnwnPOFcS0ZwpWAIHUdZgc21amTITgy8y4o,3274
27
+ hestia_earth/models/chaudharyBrooks2018/damageToTerrestrialEcosystemsTotalLandUseEffects.py,sha256=11H8j9i2h2zChea92CdzPodWZfdegkAnQx6qYC6Ym9A,2623
28
28
  hestia_earth/models/chaudharyBrooks2018/utils.py,sha256=Z0IrvVv-dKsRt09LmT7sc6e1bWnhjZ-WBrO-namIngo,1539
29
29
  hestia_earth/models/cml2001Baseline/__init__.py,sha256=0uGrCKDNUH-MUkpvts9MyPMnZKao-M03gU8uKquUozQ,416
30
30
  hestia_earth/models/cml2001Baseline/abioticResourceDepletionFossilFuels.py,sha256=dpAnytPCO8FfCFbJ9CuplsZqvkZabYdmHDd-L8WMZPs,7919
@@ -77,10 +77,10 @@ hestia_earth/models/cycle/animal/properties.py,sha256=OGjRl79w-h439jTkjA8b4V61fM
77
77
  hestia_earth/models/cycle/animal/input/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
78
78
  hestia_earth/models/cycle/animal/input/hestiaAggregatedData.py,sha256=EpJ6qU0jsoSMEuZYIKCn1f-loJ53_nmpnyDhH5sZTuw,2529
79
79
  hestia_earth/models/cycle/animal/input/properties.py,sha256=8hqVh4AtW4ZBo3z0mz93etfKCEZgZwBeBVRF9yNYsf0,3609
80
- hestia_earth/models/cycle/completeness/__init__.py,sha256=rkwGtxIay_AleJCT7al_ngnix_xRqySVie7qvHXMQI0,1517
80
+ hestia_earth/models/cycle/completeness/__init__.py,sha256=bQ-tpeCbUsIdSPGla06Mg2IZWpGp7TgWXlgZTYeLsKk,1512
81
81
  hestia_earth/models/cycle/completeness/animalFeed.py,sha256=8Fo1TqwSuiPudvd2vJ-LVxSyOdD8mDCOZMvjuj5W2uo,1012
82
82
  hestia_earth/models/cycle/completeness/cropResidue.py,sha256=Jpmm5SAiyUkaFp8EsBIQ55jiCyn3C20a3au_zaPRnEk,2837
83
- hestia_earth/models/cycle/completeness/electricityFuel.py,sha256=FWG8EuOPubTLDc3jMJv6NdFCgG0wOVgxv-5P9wA7Nys,2044
83
+ hestia_earth/models/cycle/completeness/electricityFuel.py,sha256=uEXMyfMCvvZKD3jcQGAIZOv1cZLrhpXZiyCn_56kxig,2125
84
84
  hestia_earth/models/cycle/completeness/excreta.py,sha256=2yVxcuWjAh4hoEukaMJ90VZpkCL7SfpwIgzigbjVaF4,996
85
85
  hestia_earth/models/cycle/completeness/freshForage.py,sha256=MORlqhTZT67TWgH9Zu1aPHxBXIU4JSmjaV6uzSqKnc8,1973
86
86
  hestia_earth/models/cycle/completeness/material.py,sha256=UQH2oRnUY-Q-_MVuOlTAYqQxc7wWDM5mi_iFmp9PlIQ,1362
@@ -131,7 +131,7 @@ hestia_earth/models/emepEea2019/__init__.py,sha256=l90-pWrqIzt1ap1WNk0gF4iZeF5_T
131
131
  hestia_earth/models/emepEea2019/co2ToAirFuelCombustion.py,sha256=ib_xzEbIg-iQwvW2L4BosD9lV6EYOXAiIs8gYhSD9GE,1431
132
132
  hestia_earth/models/emepEea2019/n2OToAirFuelCombustionDirect.py,sha256=H4dgGqDuvYN4S7TRxYsX3hms1xMWr8clR2gkyyO8T18,1438
133
133
  hestia_earth/models/emepEea2019/nh3ToAirExcreta.py,sha256=HNz3w35V0X1Av7if4ZPlDxozrSMurjiy7Hl4iAVEoNg,3590
134
- hestia_earth/models/emepEea2019/nh3ToAirInorganicFertiliser.py,sha256=n_lpGX6pnJdOy1GJoVSLgA9LnnnWOb_ZHBueZAEDCbk,6041
134
+ hestia_earth/models/emepEea2019/nh3ToAirInorganicFertiliser.py,sha256=7G0_S0G6X9slTykxs6CDb68DvtXB7yfq1iSKg0ReXS8,6036
135
135
  hestia_earth/models/emepEea2019/noxToAirFuelCombustion.py,sha256=2--8lI6C6WaYtd9LQe-WZnhvW1eUsjBVAgzT8jclcsc,1431
136
136
  hestia_earth/models/emepEea2019/pm10ToAirAnimalHousing.py,sha256=ZxiyoKpT0JbwgEnK9HlselO5-nIq_CTpcGK5a8X5UkM,1527
137
137
  hestia_earth/models/emepEea2019/pm25ToAirAnimalHousing.py,sha256=MYMRoFrmu3lhqS9aYE-GCWHfE-NFIgk9Q3Uj1osTlKA,1527
@@ -178,18 +178,18 @@ hestia_earth/models/geospatialDatabase/organicCarbonPerKgSoil.py,sha256=O_3GdoyY
178
178
  hestia_earth/models/geospatialDatabase/potentialEvapotranspirationAnnual.py,sha256=UlCBvAD-6H-4sdryfPuX1YDlOsGPOI8T9y0q4O0Tau8,2544
179
179
  hestia_earth/models/geospatialDatabase/potentialEvapotranspirationLongTermAnnualMean.py,sha256=YywD9wCkGFF1q60LocXNvLr-tQ2_9km2PrVnXRgN83E,2125
180
180
  hestia_earth/models/geospatialDatabase/potentialEvapotranspirationMonthly.py,sha256=3VmoobXfTVP77vyBrxkplTToe3RnLeTrNStA2r6sdzY,3357
181
- hestia_earth/models/geospatialDatabase/precipitationAnnual.py,sha256=8_lMKVUPClnp7tetHrsoUY2ZGG2J7c-cXqJD8rznp0Q,2803
182
- hestia_earth/models/geospatialDatabase/precipitationLongTermAnnualMean.py,sha256=fS5knfil5f2QP8-gxFdXuoGTxXpzoJQZ9h4UjWIWjCA,2376
183
- hestia_earth/models/geospatialDatabase/precipitationMonthly.py,sha256=D2HNR7cIP2Dd47uxmXp6p_wPhmxR6i-4trX83WpH3z4,3407
181
+ hestia_earth/models/geospatialDatabase/precipitationAnnual.py,sha256=4u4wipbSZpH_CNQh3eivSjyN2Ll58WsD6KboYZr-twk,2817
182
+ hestia_earth/models/geospatialDatabase/precipitationLongTermAnnualMean.py,sha256=wZ_QprRT9ILSNpiUhPdKtTERUsGofQT1kqUaHuJjDOs,2390
183
+ hestia_earth/models/geospatialDatabase/precipitationMonthly.py,sha256=Ah_WE2UMST9pB_M2BwN2i9nqEEv_bsNKe921cJJv83E,3421
184
184
  hestia_earth/models/geospatialDatabase/region.py,sha256=rdywdsI4OglcO05tih0UQx0qbnm8BAn7mP-x74iV03c,1462
185
185
  hestia_earth/models/geospatialDatabase/sandContent.py,sha256=dzaefKcnMeBRu7b1X11MG_-I6iDuXkHVCrkdbawB3Tw,3386
186
186
  hestia_earth/models/geospatialDatabase/siltContent.py,sha256=rFUlQ3SlwCJFcMYQd5F6t3bnDMjcRilsXk2rShoa5Tk,3786
187
187
  hestia_earth/models/geospatialDatabase/slope.py,sha256=g1SpuYks60injv2w-CMjESNfu8KM1JsiYnRT9XZfSuY,1859
188
188
  hestia_earth/models/geospatialDatabase/slopeLength.py,sha256=6pGr1qR0EiiUKkeflpYut7eI6UsnXAzHDoHhAzXKFJk,1864
189
189
  hestia_earth/models/geospatialDatabase/soilPh.py,sha256=f-jZhIpbsVDe_lGm0rfA7K0vRRTy0M5adKA-_-W11LU,2799
190
- hestia_earth/models/geospatialDatabase/temperatureAnnual.py,sha256=UCTr8zvz9AH13nd-ynqjYZ1gABn8cw5PHXS29SzbhyE,2712
191
- hestia_earth/models/geospatialDatabase/temperatureLongTermAnnualMean.py,sha256=j5vsDYZeEQYqgOzBGepD5oGFtRvjhk__uZ7ux37gapQ,2229
192
- hestia_earth/models/geospatialDatabase/temperatureMonthly.py,sha256=hJjbnTgefBtRwL5IJHaaPFtRvzTDv7l5nDI8vdadMCg,3353
190
+ hestia_earth/models/geospatialDatabase/temperatureAnnual.py,sha256=GwFhZjAdoYnP4X97Wi8AMri2pImhwB6UnMY_3gterDc,2713
191
+ hestia_earth/models/geospatialDatabase/temperatureLongTermAnnualMean.py,sha256=ypQbdbily63m_B7t7_aTaJ8RN9gzzauHeZTFDgFhlds,2230
192
+ hestia_earth/models/geospatialDatabase/temperatureMonthly.py,sha256=BLzWaFw4PXkjAK3MC1kVMT1kai4Cv9tEak_CuANTo5k,3354
193
193
  hestia_earth/models/geospatialDatabase/totalNitrogenPerKgSoil.py,sha256=DrjiPyakM1SJ1XO-arhvjLDj2qb3M-i58gJ1kFFM6kI,2821
194
194
  hestia_earth/models/geospatialDatabase/totalPhosphorusPerKgSoil.py,sha256=5oasLMYgfnPwSse0D8EEe_pV57AMusac853BgVSUh5E,2070
195
195
  hestia_earth/models/geospatialDatabase/utils.py,sha256=RAmdiv2WTKzdiCF1c2KjNoE5v7EjOdO-ZEJdJfi8rB0,6419
@@ -200,11 +200,15 @@ hestia_earth/models/haversineFormula/__init__.py,sha256=o155nR-XI67iCSBVNYIu4sPR
200
200
  hestia_earth/models/haversineFormula/transport/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
201
201
  hestia_earth/models/haversineFormula/transport/distance.py,sha256=163KrmKzlEQuKYT1ZvpPgmKlv_-mmvxp0A1_uKya99w,4203
202
202
  hestia_earth/models/hestia/__init__.py,sha256=o5vAmPzSaK9XPgL8GCne3-lugfCOgZhHELYolNgqyyY,407
203
- hestia_earth/models/hestia/landCover.py,sha256=odmRx30UhT_MyOj5jIVtsmLsTcxqC4l-QkCXae_MQEo,28105
204
- hestia_earth/models/hestia/seed_emissions.py,sha256=omvFmrwngZyonoqxadAy8C0YjUbNV1isqfsOjUF_D5o,11025
203
+ hestia_earth/models/hestia/landCover.py,sha256=qWTZ16E1qntPkzmabtMzezayUqIjIg8TNz-Lovh7UKU,27589
204
+ hestia_earth/models/hestia/landTransformation100YearAverageDuringCycle.py,sha256=-7ToRvCVPD6AAcjxorPS5jSWio7JAglHrdSS9PPyPqQ,1551
205
+ hestia_earth/models/hestia/landTransformation20YearAverageDuringCycle.py,sha256=TCskVLhYXBMxdeZM-gN4Tdixk5ua7eVn-o5dfIT_H7o,1543
206
+ hestia_earth/models/hestia/resourceUse_utils.py,sha256=1ySn4d-qkDeU8Ss_80l-uOypPoWsmDsqnS6IM8wkI34,7113
207
+ hestia_earth/models/hestia/seed_emissions.py,sha256=58hmHAgemOuGVIsij-FWF7EsGmEbCSfzFAEfXkXSyEE,11566
208
+ hestia_earth/models/hestia/utils.py,sha256=meymdvm0KZRLYGWeBLSv7QDn6tJHwM8jN8YB6gnwTqU,1537
205
209
  hestia_earth/models/impact_assessment/__init__.py,sha256=gTR_PhWps593fPhm-V826VLLrZVH8CNQTqxExB7GGNI,418
206
210
  hestia_earth/models/impact_assessment/allocationMethod.py,sha256=Qz41nTtMpDCcPy7PjhVtafE13dfJLX_D3Rg3yNhdY_Q,1279
207
- hestia_earth/models/impact_assessment/emissions.py,sha256=mJsTasM-5AFtZeKzQ9Q38SDLcnl_lQwfjQ52ro2Pjmg,3444
211
+ hestia_earth/models/impact_assessment/emissions.py,sha256=oHWXFZgvxYktH6gAawEjphyLtPCmH0FWt_mDwphc2I8,4394
208
212
  hestia_earth/models/impact_assessment/irrigated.py,sha256=qopAYbD91uu1Q2hJ3aB5Xl3br2Nzh7LoMTRCFOXmOv0,783
209
213
  hestia_earth/models/impact_assessment/organic.py,sha256=vgY-Wwt_gE6t2EQSFDY6XvDjI0TXb7YeMxH7gty-u6Q,759
210
214
  hestia_earth/models/impact_assessment/post_checks/__init__.py,sha256=rkHO4Z3Zz8LCT1OoDgHmUuGURvXsdzh2nQqgU2M4tjU,304
@@ -248,11 +252,11 @@ hestia_earth/models/ipcc2019/ch4ToAirExcreta.py,sha256=WnKmSQSqr1Jv7_95DLgtufPYG
248
252
  hestia_earth/models/ipcc2019/ch4ToAirFloodedRice.py,sha256=TJ4J7VA5n4RPrJYZQeR3lc3ZoCw7T1E5Cb1XJewr834,7331
249
253
  hestia_earth/models/ipcc2019/co2ToAirAboveGroundBiomassStockChange.py,sha256=s0zViR8Ab_b_sMDwMzopN4SAWdm6wpzGs-Hf_TtWaiw,6641
250
254
  hestia_earth/models/ipcc2019/co2ToAirBelowGroundBiomassStockChange.py,sha256=trinj_A8H6H_zMaQMjYXcBePvjDKXhbqmIpeet0lW6g,6691
251
- hestia_earth/models/ipcc2019/co2ToAirCarbonStockChange_utils.py,sha256=PDjwK_mCel5V-zk8Gz_bwxlI8sqmWOy2gqZYEy3FjeQ,55681
255
+ hestia_earth/models/ipcc2019/co2ToAirCarbonStockChange_utils.py,sha256=2-Gf9uz20i4lQ5ALJ9KbHrR3EX0mPED2M11aNTZejBw,57772
252
256
  hestia_earth/models/ipcc2019/co2ToAirLimeHydrolysis.py,sha256=7z0zdqiiWQwkyJCgSNMoK2mft3cJkTRlqwKrMuSKdWI,2454
253
257
  hestia_earth/models/ipcc2019/co2ToAirSoilOrganicCarbonStockChange.py,sha256=UQjmccUsKxsycG_htbD1-T2xw6AklKqIR3u8KIMGBOY,6709
254
258
  hestia_earth/models/ipcc2019/co2ToAirUreaHydrolysis.py,sha256=Ofld5SuRKndcKB3FFFoUdzSgNq-gc4kmiNyyrPKQ3Io,3580
255
- hestia_earth/models/ipcc2019/croppingDuration.py,sha256=-CesZ2cNDOQoU3QyVFnSWYO-6-JXxuhRDQoHoxTawDA,3228
259
+ hestia_earth/models/ipcc2019/croppingDuration.py,sha256=0XeM1_iiNXsZTaJQFXc3yNnNf1E-if4gs2ACbAOa3Wk,3508
256
260
  hestia_earth/models/ipcc2019/ligninContent.py,sha256=Qh-UH4lv1TIf7wWlbAPwIZZHxzbbmQgND3m15pt5Si8,7285
257
261
  hestia_earth/models/ipcc2019/n2OToAirCropResidueDecompositionDirect.py,sha256=Fand7NbT27unwgFTxi_9NxT024s63vQ7U6-tk9yp3d8,3990
258
262
  hestia_earth/models/ipcc2019/n2OToAirCropResidueDecompositionIndirect.py,sha256=_Oj6Jw8F4rce7FmhWkzeqyB7W3ZQWpOiA10p6xrfSwc,3777
@@ -272,9 +276,9 @@ hestia_earth/models/ipcc2019/no3ToGroundwaterOrganicFertiliser.py,sha256=px2SN-u
272
276
  hestia_earth/models/ipcc2019/noxToAirInorganicFertiliser.py,sha256=fmmFgjtvOD2TrrLY03jYly_KvDnCsAXqhL_tmZQQt-A,4480
273
277
  hestia_earth/models/ipcc2019/noxToAirOrganicFertiliser.py,sha256=9dx_MRTwJGxJRq6mj2EJQMdQ2w6j7lw0fQk0If_cIGc,4152
274
278
  hestia_earth/models/ipcc2019/organicCarbonPerHa.py,sha256=C9ef41fd-gYixEV3sTs9VMHHdnSZJ14kbEEmMG116hY,8653
275
- hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_1_utils.py,sha256=OHHfDlvE4zWlNXi54tFz0P40H8YhvZsWcfQUrhl3W-Y,81837
276
- hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_2_utils.py,sha256=RbQ8Zq20i24p4lR3jUeNewBwzOieHx6Jdq24B7MpFRc,63361
277
- hestia_earth/models/ipcc2019/organicCarbonPerHa_utils.py,sha256=12p4jUDggGoGelC9XGaeIIaqu2bbkugswq4aFmCPPq8,9734
279
+ hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_1_utils.py,sha256=hgMh3p7tflTo06LJjAkoz8btrl8Rc6lYYvZp1ooJIaI,76214
280
+ hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_2_utils.py,sha256=e2O4yZ9bCJWMPQ8s-DEwnaDImGGCnpJya6SO0tWy0RY,63367
281
+ hestia_earth/models/ipcc2019/organicCarbonPerHa_utils.py,sha256=FFcjdkYq5NJwAu4bWZJUao4MoDHvgbXmXCnUNKD-a3w,9842
278
282
  hestia_earth/models/ipcc2019/pastureGrass.py,sha256=Hhm9szzsL3otuo-V6fQ_cNyDbG0dlubr4-1L4WefbDE,10304
279
283
  hestia_earth/models/ipcc2019/pastureGrass_utils.py,sha256=nL31uS3c77PH_5nA2E2MvB1NS2mMvhD341taGl5YWNE,13842
280
284
  hestia_earth/models/ipcc2019/utils.py,sha256=MSDMu15D9DnilFUgi4_6jYXC0FaKso3OODauGTMB6hs,6229
@@ -387,22 +391,22 @@ hestia_earth/models/lcImpactCertainEffectsInfinite/damageToTerrestrialEcosystems
387
391
  hestia_earth/models/lcImpactCertainEffectsInfinite/damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py,sha256=dyUfAD74qEzfIGFei1IcI2RfQXgkjns7AhJ0iYzgCBk,963
388
392
  hestia_earth/models/linkedImpactAssessment/__init__.py,sha256=SPP09DMS4zUThyQfcgLpivFwsey4WSt77CDMYHJPKWE,423
389
393
  hestia_earth/models/linkedImpactAssessment/emissions.py,sha256=ZU68ljsidyqIKIdFqtR9mze5Am0fK_PE1x4GBTwBTr0,6395
390
- hestia_earth/models/linkedImpactAssessment/freshwaterWithdrawalsInputsProduction.py,sha256=bWTUaqff4u0Q2fVJBl-S2mXIougZwOBbeGyWoFznJd4,1115
391
- hestia_earth/models/linkedImpactAssessment/landOccupationInputsProduction.py,sha256=yLC9SiZx9Es9ADVAoW1Db1zs-QQTTjQUmcFOQGAdz28,1119
392
- hestia_earth/models/linkedImpactAssessment/landTransformation100YearAverageInputsProduction.py,sha256=5ypKZWmMsZhA7f6fEqJ8pMxiiOrlDgdnx6PKLJr5aLE,1206
393
- hestia_earth/models/linkedImpactAssessment/landTransformation20YearAverageInputsProduction.py,sha256=wjQhCIrdsP99dCaudGx0o2pfLgLV1I-F53zxVi3UQDA,1203
394
- hestia_earth/models/linkedImpactAssessment/utils.py,sha256=QSf-DPrsPfermpd4vKYAvx2k_vkv8ozpDGhb4LUc-5o,4305
394
+ hestia_earth/models/linkedImpactAssessment/freshwaterWithdrawalsInputsProduction.py,sha256=OTWVjPikOsZTbzgTzCJBkL6fH4Zbprq5SrV5LSLc4C0,1137
395
+ hestia_earth/models/linkedImpactAssessment/landOccupationInputsProduction.py,sha256=M1_QXTxCdWccXPaO7YjOtBa6WkmiQj3Xs89lYIUrM7w,1141
396
+ hestia_earth/models/linkedImpactAssessment/landTransformation100YearAverageInputsProduction.py,sha256=IqQ76I05IC79g2GXY91iWFqEeXk8Fhw-hcrifCaAbiI,1228
397
+ hestia_earth/models/linkedImpactAssessment/landTransformation20YearAverageInputsProduction.py,sha256=yHGyhabzKdBIPSGciJ_LJPKvHbTECXDx8dGOgmT1eqM,1225
398
+ hestia_earth/models/linkedImpactAssessment/utils.py,sha256=S1zlux02gU2Lajrtoq-zQpICv7hagZb3s-bnCHEdMCM,4500
395
399
  hestia_earth/models/mocking/__init__.py,sha256=9VX50c-grz-snfd-7MBS0KfF7AadtbKuj7kK6PqtsgE,687
396
400
  hestia_earth/models/mocking/build_mock_search.py,sha256=p15ccEUmkmLp1RiGNznxMz3OFHbI8P1-29ExuohiQN8,1355
397
401
  hestia_earth/models/mocking/mock_search.py,sha256=ccFe_WrI73JElFmxp4hPNLCX7eeU--lBC1JFR901KJY,1069
398
- hestia_earth/models/mocking/search-results.json,sha256=Cv4Kn4zqwM7v3qwa2C6yIcsYpaDISx05iwJig6IlVMs,101691
402
+ hestia_earth/models/mocking/search-results.json,sha256=OY_InmRuCXqEN3EUQTW60UiT0rnkshvCeyiJtrLAHqU,101989
399
403
  hestia_earth/models/pooreNemecek2018/__init__.py,sha256=nPboL7ULJzL5nJD5q7q9VOZt_fxbKVm8fmn1Az5YkVY,417
400
404
  hestia_earth/models/pooreNemecek2018/aboveGroundCropResidueTotal.py,sha256=Qt-mel4dkhK6N5uUOutNOinCTFjbjtGzITaaI0LvYc4,2396
401
405
  hestia_earth/models/pooreNemecek2018/belowGroundCropResidue.py,sha256=JT0RybbvWVlo01FO8K0Yj41HrEaJT3Kj1xfayr2X-xw,2315
402
406
  hestia_earth/models/pooreNemecek2018/ch4ToAirAquacultureSystems.py,sha256=CxjhFinScTebBGNVheEdbdw36DdHwoPszAnbxtd6_9s,6590
403
407
  hestia_earth/models/pooreNemecek2018/excretaKgN.py,sha256=WI0SJJR8uJFfG1hTHDSOeiuTMhAW1fKcm0MX1QEvxcg,6340
404
408
  hestia_earth/models/pooreNemecek2018/excretaKgVs.py,sha256=TW0lF752Ljlx7zj1v3TkAYLYASsYsYpEy8KH9y2yTQ8,9446
405
- hestia_earth/models/pooreNemecek2018/freshwaterWithdrawalsDuringCycle.py,sha256=HB_9q5eE6al2Te3v29hC5wqxsYe4P46ZAPwdWNzx3v0,3939
409
+ hestia_earth/models/pooreNemecek2018/freshwaterWithdrawalsDuringCycle.py,sha256=XP3SAVvvrKCInjkM5GlW8MeW9Q-Ib7vXmJk0PAgR-lc,3982
406
410
  hestia_earth/models/pooreNemecek2018/landOccupationDuringCycle.py,sha256=78N513lNtjol0KKddxmG3Pb9vAmledlrWbfURVdLHBA,3139
407
411
  hestia_earth/models/pooreNemecek2018/longFallowDuration.py,sha256=Wdm6QyOttCFP9Y3OjbaYrvdMmivOmMIT-m5Eg9SM9rY,1511
408
412
  hestia_earth/models/pooreNemecek2018/n2OToAirAquacultureSystemsDirect.py,sha256=HJ7IstImGyasIKosK2lQZ-v6Lqt3_aEfZhoiC4CY0rM,2586
@@ -480,12 +484,12 @@ hestia_earth/models/recipe2016Individualist/ozoneDepletionPotential.py,sha256=cR
480
484
  hestia_earth/models/recipe2016Individualist/terrestrialAcidificationPotential.py,sha256=YvFqXh8SdYy1Na71mYGO9Dpi928fzzXESRA3x-JKG7Y,1069
481
485
  hestia_earth/models/recipe2016Individualist/terrestrialEcotoxicityPotential14Dcbeq.py,sha256=Sf6_kPt1hHRwe_Cg6Fz7nnxBZgIhpUzi8xMLJSxoRN8,928
482
486
  hestia_earth/models/schererPfister2015/__init__.py,sha256=_6FJKfWeAbbS3jFzQ8gEVzoX1LZdPWUTLrow6Hz90U0,419
483
- hestia_earth/models/schererPfister2015/nErosionSoilFlux.py,sha256=y4pS4ixDPILUodPL1igHptESrURcr7v5jpc4d5JoLx0,5015
484
- hestia_earth/models/schererPfister2015/pErosionSoilFlux.py,sha256=5pyyJiYsKtNSzzbngq1wvYufGYxnj_Vge735wlrfetA,5120
487
+ hestia_earth/models/schererPfister2015/nErosionSoilFlux.py,sha256=PotKe8iA8tmEUU1fF7CwcOoZSxTSv1QQPBHOQRAunRY,5370
488
+ hestia_earth/models/schererPfister2015/pErosionSoilFlux.py,sha256=5RDeAi3UzflrqlV5ynGvTCKR3zLZE5Vffk_lAh5x_Ig,5382
485
489
  hestia_earth/models/schererPfister2015/pToDrainageWaterSoilFlux.py,sha256=iQs5lLLgGr1thOQ0ZnTLJDJjX7RBwPdu--8p81BZ988,2310
486
490
  hestia_earth/models/schererPfister2015/pToGroundwaterSoilFlux.py,sha256=tH-jyd8PFGvEVCO9u4coyVhghYcZyPgbPWQXQsTmDMg,1972
487
491
  hestia_earth/models/schererPfister2015/pToSurfaceWaterSoilFlux.py,sha256=evd2jmFZ9lq-uwXiBTgP5wJ-KTjNBVztjSp8eW9-8qg,2947
488
- hestia_earth/models/schererPfister2015/utils.py,sha256=Xi59KRGbdbtqvQ9pfh7OWTkGnobDA4188h_oMyT8oa0,3330
492
+ hestia_earth/models/schererPfister2015/utils.py,sha256=prdPZKnxJAIqBmHN6FCmfvRU4rLSTx2bvVGSMzoM5NY,3235
489
493
  hestia_earth/models/schmidt2007/__init__.py,sha256=xheSN6LOGXpWx7Hnv83onhe60Xk1_jk1PJg1nH_aZOQ,412
490
494
  hestia_earth/models/schmidt2007/ch4ToAirWasteTreatment.py,sha256=-N5uLvVHlA2djOs_lwR_8RmbeCfkPw5p3vmbqG2kzkI,1474
491
495
  hestia_earth/models/schmidt2007/h2SToAirWasteTreatment.py,sha256=f8a5ZRuCltpO8GWwQ0l1laWrw2yPGqOPaq8j6ZOJFTE,1474
@@ -497,7 +501,7 @@ hestia_earth/models/site/brackishWater.py,sha256=vLEhIZv5PUKwzwvIuYrWi7K---fq7ZX
497
501
  hestia_earth/models/site/cationExchangeCapacityPerKgSoil.py,sha256=0eH4A-tXJ0hvIkiYXWxlx8TfrdbIKUGYUDk97-yQJgg,3653
498
502
  hestia_earth/models/site/flowingWater.py,sha256=v3g5722GIA4zQAUQI9yGFiZvFvI1QAVZqlQrY-6_B3A,1731
499
503
  hestia_earth/models/site/freshWater.py,sha256=FXs3Vt8V4e-wn325_dwSTOKlZtn5ksNUpvYGDeLJShY,1255
500
- hestia_earth/models/site/management.py,sha256=LXPHWwQ_3HVs651aZx3-CrczhEhYGIiga-WlEmw8A3c,11717
504
+ hestia_earth/models/site/management.py,sha256=ffrXelDxwBuCVy7cZbhYQA0SKymMhCogPQES13ySSYE,11679
501
505
  hestia_earth/models/site/netPrimaryProduction.py,sha256=UIIQkYd911qVzrWjxBLrC37e-RARIVgDwLdARY9BuLw,1849
502
506
  hestia_earth/models/site/organicCarbonPerHa.py,sha256=F2ShinHf0m9qKa1nCYBspsDkRY6jzOl0wM8mSDre22I,14916
503
507
  hestia_earth/models/site/organicCarbonPerKgSoil.py,sha256=t--wAshiAKS-JvEKhLFRadGvgSBv5NFZ68jdyms_wh4,1945
@@ -555,12 +559,12 @@ hestia_earth/models/transformation/product/__init__.py,sha256=47DEQpj8HBSa-_TImW
555
559
  hestia_earth/models/transformation/product/excreta.py,sha256=Yj9wMF5if-zivb6qbN3vy1X51ZNYxvoyG9f4KPp3Y18,5700
556
560
  hestia_earth/models/usetoxV2/__init__.py,sha256=pK37V3H-KvYcvRKw4Mv8CWrB2N0LFLzmv0jKLdhGGqs,409
557
561
  hestia_earth/models/usetoxV2/freshwaterEcotoxicityPotentialCtue.py,sha256=pPX8u-Aq6Pg5Y9xw0CS0S2WkAHQpOMl0lL2tLQwwOuU,918
558
- hestia_earth/models/utils/__init__.py,sha256=ncZ_1Yb2oZhV8KtdHDK7FkNIZT_kX09D-ik1oA3rzHE,6980
562
+ hestia_earth/models/utils/__init__.py,sha256=ADtNs74scoLRPsBF8J9K-QE6WcNB2qFhBmR8abJAYh8,7302
559
563
  hestia_earth/models/utils/aggregated.py,sha256=01V5RDvO9EZAEiApY7M2dUoR4GcGxvAH5lvtIK_qjyI,4946
560
564
  hestia_earth/models/utils/animalProduct.py,sha256=M5IunAKGY6oZv3j1Ascl34ywyeLWApqOIlBzbtlA2FE,721
561
565
  hestia_earth/models/utils/aquacultureManagement.py,sha256=dxrbC1Xf140cohxTbSw6TxLAnAASWTdNZwBBam4yQnw,171
562
566
  hestia_earth/models/utils/array_builders.py,sha256=QEkM7e75Y9aq5yEPEk3R8md36IuvCDkpekdGm3uA0uk,19397
563
- hestia_earth/models/utils/blank_node.py,sha256=xBHJ_qwSpH-lGqeexuP8twJJwdSDmcccrtCR0ga0Qto,50874
567
+ hestia_earth/models/utils/blank_node.py,sha256=-IURt-nrVCJUk2Q51Ar46iEYv4Cn3aSdlVl1gik5Vvw,51992
564
568
  hestia_earth/models/utils/cache_sources.py,sha256=MBkrPpjwNiC4ApDjeYVHZjWBbpvAerXRDrMHpjasAZ0,377
565
569
  hestia_earth/models/utils/completeness.py,sha256=2-GusD9UycobDZq8y5jar0ZcOjyqnSbzPRT_5XMc4YA,1259
566
570
  hestia_earth/models/utils/constant.py,sha256=6wLx8xb2R8HtpEpVy5e-PbioOo7QCu2n-W72fs6OvgE,3411
@@ -570,23 +574,23 @@ hestia_earth/models/utils/cropResidueManagement.py,sha256=nIDFjf39rDD10UHSVudfDy
570
574
  hestia_earth/models/utils/currency.py,sha256=f_ArJANb--pZq4LL49SXQ1AMX_oKroqwBXKRRQqZwsM,578
571
575
  hestia_earth/models/utils/cycle.py,sha256=uZgqTy4IaCqcSEEHWOcZ0bFBjwGl7gBoedk6HJ5Nryw,16233
572
576
  hestia_earth/models/utils/descriptive_stats.py,sha256=EMVwFvg2OnZgKRAfireAoWY2EbrSvqR0V0bK9B53p28,1583
573
- hestia_earth/models/utils/ecoClimateZone.py,sha256=A3ZtF_B2wr6v7clbVi0zWQ-bOXRoOKq4vGq8mhNf9Ec,4316
577
+ hestia_earth/models/utils/ecoClimateZone.py,sha256=kD5DGActHAfMCJykKQGkwEEicWt7PQlEIX9_PkqXfP0,4265
574
578
  hestia_earth/models/utils/emission.py,sha256=H_apu-Og9SJTLVU2lU56IsvSU22-9J7OrqXk1b2qnSE,3638
575
579
  hestia_earth/models/utils/excretaManagement.py,sha256=NuWPQjFZxMVt9sYgBjcqhGWCFk_OKb3sA9Ovcff3fRQ,428
576
580
  hestia_earth/models/utils/feedipedia.py,sha256=wzzrMbYlda1XCpWiObLz4bFLXbAZejHcxsXJFr4U_AM,3953
577
581
  hestia_earth/models/utils/fertiliser.py,sha256=DBO4OBNgnQJ0fCQMDkIk_ZGZX-uKGaTFZCEXfAnJciY,690
578
- hestia_earth/models/utils/fuel.py,sha256=VR-nwJ9OA35vCfQ8Iwm0QBKulMFDBKCsnLp5VmNPmCM,1386
579
- hestia_earth/models/utils/impact_assessment.py,sha256=3nKhTzk5KTvoiOBWrNvClfBDHtep0KOrttkzl0vst94,8071
582
+ hestia_earth/models/utils/fuel.py,sha256=XzOELV3dn506PkMKjFQ_ZKVZInd2lL2x6PKdsa6Po4M,1429
583
+ hestia_earth/models/utils/impact_assessment.py,sha256=WRG_VaEWrI3cLkbjupdFb_mOJ-77qdNRKRpJ9Lt-tbk,8070
580
584
  hestia_earth/models/utils/indicator.py,sha256=UuuraMUdKLqjcm_zEoF8BaMb76qW23djIA_2DeaoiEw,700
581
585
  hestia_earth/models/utils/inorganicFertiliser.py,sha256=_dLBY-otGkLr8PobR5dQ89bF2uwc2PB4JPrHFSksMEQ,1900
582
586
  hestia_earth/models/utils/input.py,sha256=gsVFKTC9WF8dO6YAg_-H_GAOQTnvAr49Ox5-eTH8zf8,5145
583
587
  hestia_earth/models/utils/landCover.py,sha256=8-nfynzCx9gf9YfhpuoH6Cn4kQwWFpYA5RmoGW-0ETE,300
584
588
  hestia_earth/models/utils/liveAnimal.py,sha256=GnajBPZw5d94raf80KtLloaOqlfqGAPwUtP9bRlGWeE,1754
585
- hestia_earth/models/utils/lookup.py,sha256=uEP5v4atNkY5FLMopsuBncALOmsyhFe4lNtZvUhcQRM,8517
589
+ hestia_earth/models/utils/lookup.py,sha256=hSqIDZ7aw3YdLtUjCw-wlsUdh3dA6p1jl9Nuvcru3go,8673
586
590
  hestia_earth/models/utils/management.py,sha256=W5M9k0arraVUGh4ZccVqgb8rSSLxHM6rkmi4MSzV6Dw,413
587
591
  hestia_earth/models/utils/measurement.py,sha256=izEiPszUcPA22zaIc0OuF7Yk82JWu5cxi0Sbz_9YgBo,11142
588
592
  hestia_earth/models/utils/organicFertiliser.py,sha256=2HY-a0EBzUw4DkEAXClLMXVCEZTKYf0BwFHBo7lQ5Tg,363
589
- hestia_earth/models/utils/pesticideAI.py,sha256=xGNCHVaKq2KAyNgR2GBRvkxiufB5LVbeJUbMCdZ2FRU,2002
593
+ hestia_earth/models/utils/pesticideAI.py,sha256=_mlhKnA1TxF-x39CPNnOGXk6754SoSQqrkHVH2y6rv8,2038
590
594
  hestia_earth/models/utils/practice.py,sha256=tNadOzsrNlCEt801B815XaruJXzZ5yPASam7B3sWpXE,1091
591
595
  hestia_earth/models/utils/product.py,sha256=DhDgiReR8k9n9aaRM2xk3PIY3nfoE1ISKg9pKsBVzVQ,10143
592
596
  hestia_earth/models/utils/productivity.py,sha256=rTJX_nemxHpOcPN7jiM2hFHknoLUIW8y-hFxVxIkg70,593
@@ -788,6 +792,8 @@ tests/models/haversineFormula/transport/__init__.py,sha256=47DEQpj8HBSa-_TImW-5J
788
792
  tests/models/haversineFormula/transport/test_distance.py,sha256=hqzIOA1nGao8uiBE16J0ou52McwV4w30ZLpEAqtfi9k,970
789
793
  tests/models/hestia/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
790
794
  tests/models/hestia/test_landCover.py,sha256=pEy8AgHsOH7K6kUdwzDFt6-estJU7xcCFDbKL8x48SI,6051
795
+ tests/models/hestia/test_landTransformation100YearAverageDuringCycle.py,sha256=3qa4rWUFqP1VM5-vm_182rhiBYJDxPqJwWtBqJ5K028,956
796
+ tests/models/hestia/test_landTransformation20YearAverageDuringCycle.py,sha256=257nCGseM8IEc7i3c2lvx0AsJOpk5Cy633PlZZQYRGo,956
791
797
  tests/models/hestia/test_seed_emissions.py,sha256=dCUuJBkhwNFBhhcypQN7eMqrWZ9iGCnypoidO5DfQYw,921
792
798
  tests/models/impact_assessment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
793
799
  tests/models/impact_assessment/test_allocationMethod.py,sha256=HkUt6oWdEyFSdxMpx8y_Oxk0nO2Fi9B_kUZcVte9tzg,1223
@@ -834,11 +840,11 @@ tests/models/ipcc2019/test_ch4ToAirAquacultureSystems.py,sha256=o7bHOS4JkwexRrDh
834
840
  tests/models/ipcc2019/test_ch4ToAirEntericFermentation.py,sha256=3Hv86L4X_Va2mZL4KI-36AV00z-KBbKo0cb2ABg6Rv8,7928
835
841
  tests/models/ipcc2019/test_ch4ToAirExcreta.py,sha256=e58NXmBW2SNVLUqQO9A66Xq6jiGTyhdFZDZk51JApF8,2902
836
842
  tests/models/ipcc2019/test_ch4ToAirFloodedRice.py,sha256=FAp5b45WdX5Ih4yGUOZ4CmVD8smW1Lw1tnulx9AKVBI,1980
837
- tests/models/ipcc2019/test_co2ToAirAboveGroundBiomassStockChange.py,sha256=Xkoe5UJy7f0UDcFQTacAI3rpiIPOZhg7zgQA6CnPPqc,4328
838
- tests/models/ipcc2019/test_co2ToAirBelowGroundBiomassStockChange.py,sha256=j_Quuhv3p0B5qiFCiQz-2oHBSZjC4fatnOPAMxiMy2M,4257
843
+ tests/models/ipcc2019/test_co2ToAirAboveGroundBiomassStockChange.py,sha256=WFqufrVclKH5fBx9u-a6yGCqr9rX1FGLCM7RCULdB6w,4470
844
+ tests/models/ipcc2019/test_co2ToAirBelowGroundBiomassStockChange.py,sha256=AiVIuop4RBKUbeRET5WZLFaD3JAUzNpSFOW_HRyCHmY,4399
839
845
  tests/models/ipcc2019/test_co2ToAirCarbonStockChange_utils.py,sha256=wCEtrbMl6zef8V-n_Ci_rtlQAlfuKm3khUVltr8eAcc,2173
840
846
  tests/models/ipcc2019/test_co2ToAirLimeHydrolysis.py,sha256=e5iuZ-kQNEVih0ZRgRPWqaUtXcLpfkoU7sQypbqA9_Y,1345
841
- tests/models/ipcc2019/test_co2ToAirSoilOrganicCarbonStockChange.py,sha256=iCDvwg_jGv6Hg5m054p85U4sKYnHkZLXOq1CGJ3asBM,5413
847
+ tests/models/ipcc2019/test_co2ToAirSoilOrganicCarbonStockChange.py,sha256=ionV3k9stR69TTS84qLxuSI0SZX_if7lUNcOuTJs3Lk,5555
842
848
  tests/models/ipcc2019/test_co2ToAirUreaHydrolysis.py,sha256=MmtEME0xjsa3KojFk_fxOLK6RZM_6p5HIpY2DOFHVu4,1530
843
849
  tests/models/ipcc2019/test_croppingDuration.py,sha256=gLRXeR6Tqa7ciD9KTRfsIflSeIIWT2iOpZMdcxAQla4,1871
844
850
  tests/models/ipcc2019/test_ligninContent.py,sha256=eIKEN__ab-0R52EhlhPSBiHnmTl6xOf1XbI33O-W9A4,4146
@@ -859,8 +865,8 @@ tests/models/ipcc2019/test_no3ToGroundwaterInorganicFertiliser.py,sha256=e7REnQ9
859
865
  tests/models/ipcc2019/test_no3ToGroundwaterOrganicFertiliser.py,sha256=e1ZViD12qB3bLdH3TJw3GbBP8iqMen-UJbcFkytb3VQ,1609
860
866
  tests/models/ipcc2019/test_noxToAirInorganicFertiliser.py,sha256=NZBSBJLM_j2PEpHRON2ysgKNF8x5sHfQVoAKQdGsfzk,1537
861
867
  tests/models/ipcc2019/test_noxToAirOrganicFertiliser.py,sha256=LR5pjV5vRbgSSQAw8kYRp_ij4CHInzgaDS6EggQuBiw,1104
862
- tests/models/ipcc2019/test_organicCarbonPerHa.py,sha256=9HctxbWtYwZdhRDkb-cClyMCpX9suCooW69OuTlKw-Y,13040
863
- tests/models/ipcc2019/test_organicCarbonPerHa_tier_1_utils.py,sha256=F8L_DiRDbhHiP-TiF9QDzwZau_LxVLiaqJNFqyEEBjs,20044
868
+ tests/models/ipcc2019/test_organicCarbonPerHa.py,sha256=fxI6iomFBiojL7nBGyP7AP5BM39Hvd2G12PLuhq66Eg,13129
869
+ tests/models/ipcc2019/test_organicCarbonPerHa_tier_1_utils.py,sha256=DPaMMyoa959bww0z54i6ci6jccB452oCNJ-GnO6ayHI,20444
864
870
  tests/models/ipcc2019/test_organicCarbonPerHa_tier_2_utils.py,sha256=wxRoE3qeIIiVWQzqo2ChnXsSrPfvIOxEDGHS2ZfI7vA,5514
865
871
  tests/models/ipcc2019/test_organicCarbonPerHa_utils.py,sha256=Zd2QlN_Q3k9djuByOH62A00tryVzlvNtsd46N79TTeU,1778
866
872
  tests/models/ipcc2019/test_pastureGrass.py,sha256=mKx8NnTtMT9TrXxRNLv73wD1TWBaiRZzA1xh2ukb-HI,2667
@@ -1128,7 +1134,7 @@ tests/models/usetoxV2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
1128
1134
  tests/models/usetoxV2/test_freshwaterEcotoxicityPotentialCtue.py,sha256=eq7Gcmfya9g0eOKKkuBhz8vq7xi_CmZ_LTSxueBwZt4,835
1129
1135
  tests/models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1130
1136
  tests/models/utils/test_array_builders.py,sha256=uHxO4beJhdJD-1lI5aPEAsYziQP8SN7AJ9PEY67DpaI,8417
1131
- tests/models/utils/test_blank_node.py,sha256=LqUsxE7_XCdwjuGp_m-Ckm1qdT72gCsEmK6Q-Yh2C4Q,38994
1137
+ tests/models/utils/test_blank_node.py,sha256=G_hH-Gk3__1ZtHQcsdYMbUMwVNSTmYcVBs5jcReIYGM,39945
1132
1138
  tests/models/utils/test_cache_sources.py,sha256=xcGMVbYoV23YC4HLBTL_4qZP1ME2cp3DFebgJMxI2TE,721
1133
1139
  tests/models/utils/test_crop.py,sha256=ve_BqT2XuLTWAH-8YOnVY4nzMUSXYYXPB8S-5RtGlf4,463
1134
1140
  tests/models/utils/test_cropResidueManagement.py,sha256=RQt8lexeJzCyxZceIutgDpw7BpcqmjsUB0C0yZC2QpY,930
@@ -1154,8 +1160,8 @@ tests/models/utils/test_term.py,sha256=M5Sa26v2gzQYbZ4H_fo7DspnaCx__-WtL-MULGapC
1154
1160
  tests/models/utils/test_time_series.py,sha256=LMhRPf8rp3nAriKAC-2K3FDkrMWntRTUUCERw7Lt68g,2686
1155
1161
  tests/models/webbEtAl2012AndSintermannEtAl2012/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1156
1162
  tests/models/webbEtAl2012AndSintermannEtAl2012/test_nh3ToAirOrganicFertiliser.py,sha256=qi2FNXS5Af2WDtm7nq_FsprH3BfCF0XxnE0XHmC4aIY,2244
1157
- hestia_earth_models-0.65.3.dist-info/LICENSE,sha256=TD25LoiRJsA5CPUNrcyt1PXlGcbUGFMAeZoBcfCrCNE,1154
1158
- hestia_earth_models-0.65.3.dist-info/METADATA,sha256=3r_3MI0MYCbpxs6hFffT4ca3EhT9P54IXUYIkfuXZmI,3344
1159
- hestia_earth_models-0.65.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1160
- hestia_earth_models-0.65.3.dist-info/top_level.txt,sha256=1dqA9TqpOLTEgpqa-YBsmbCmmNU1y56AtfFGEceZ2A0,19
1161
- hestia_earth_models-0.65.3.dist-info/RECORD,,
1163
+ hestia_earth_models-0.65.5.dist-info/LICENSE,sha256=TD25LoiRJsA5CPUNrcyt1PXlGcbUGFMAeZoBcfCrCNE,1154
1164
+ hestia_earth_models-0.65.5.dist-info/METADATA,sha256=-IzI9Vpy_Cx1mhf771Yldw8ryByRbTygSrCA78-a_ik,3344
1165
+ hestia_earth_models-0.65.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1166
+ hestia_earth_models-0.65.5.dist-info/top_level.txt,sha256=1dqA9TqpOLTEgpqa-YBsmbCmmNU1y56AtfFGEceZ2A0,19
1167
+ hestia_earth_models-0.65.5.dist-info/RECORD,,
@@ -0,0 +1,30 @@
1
+ import json
2
+ from unittest.mock import patch, Mock
3
+ import pytest
4
+
5
+ from tests.utils import fixtures_path, fake_new_indicator
6
+ from hestia_earth.models.hestia import MODEL
7
+ from hestia_earth.models.hestia.landTransformation100YearAverageDuringCycle import TERM_ID, run
8
+
9
+
10
+ class_path = f"hestia_earth.models.{MODEL}.{TERM_ID}"
11
+ fixtures_folder = f"{fixtures_path}/{MODEL}/{TERM_ID}"
12
+
13
+
14
+ @pytest.mark.parametrize(
15
+ "subfolder",
16
+ [
17
+ "maize_brazil"
18
+ ]
19
+ )
20
+ @patch("hestia_earth.models.hestia.resourceUse_utils._new_indicator", side_effect=fake_new_indicator)
21
+ def test_run(mock_new_indicator: Mock, subfolder):
22
+ folder = f"{fixtures_folder}/{subfolder}"
23
+ with open(f"{folder}/impact-assessment.jsonld", encoding='utf-8') as f:
24
+ impact_assessment = json.load(f)
25
+
26
+ with open(f"{folder}/result.jsonld", encoding='utf-8') as f:
27
+ expected = json.load(f)
28
+
29
+ result = run(impact_assessment=impact_assessment)
30
+ assert result == expected
@@ -0,0 +1,31 @@
1
+ import json
2
+ from unittest.mock import patch, Mock
3
+ import pytest
4
+
5
+ from tests.utils import fixtures_path, fake_new_indicator
6
+ from hestia_earth.models.hestia import MODEL
7
+ from hestia_earth.models.hestia.landTransformation20YearAverageDuringCycle import TERM_ID, run
8
+
9
+
10
+ class_path = f"hestia_earth.models.{MODEL}.{TERM_ID}"
11
+ fixtures_folder = f"{fixtures_path}/{MODEL}/{TERM_ID}"
12
+
13
+
14
+ @pytest.mark.parametrize(
15
+ "subfolder",
16
+ [
17
+ "maize_brazil"
18
+ ]
19
+ )
20
+ @patch("hestia_earth.models.hestia.resourceUse_utils._new_indicator", side_effect=fake_new_indicator)
21
+ def test_run(mock_new_indicator: Mock, subfolder):
22
+ folder = f"{fixtures_folder}/{subfolder}"
23
+
24
+ with open(f"{folder}/impact-assessment.jsonld", encoding='utf-8') as f:
25
+ impact_assessment = json.load(f)
26
+
27
+ with open(f"{folder}/result.jsonld", encoding='utf-8') as f:
28
+ expected = json.load(f)
29
+
30
+ result = run(impact_assessment=impact_assessment)
31
+ assert result == expected
@@ -41,7 +41,9 @@ RUN_SCENARIOS = [
41
41
  ("non-soil-based-gohac-system", 3), # Closes issue #848
42
42
  ("soil-based-gohac-system", 3), # Closes issue #848
43
43
  ("with-gapfilled-start-date-end-date", 1), # Closes issue #972
44
- ("forest-to-orchard-with-ground-cover", 3) # Closes issue #989
44
+ ("forest-to-orchard-with-ground-cover", 3), # Closes issue #989
45
+ ("orchard-data-complete", 3), # Closes issue #1011
46
+ ("orchard-data-partially-complete", 3) # Closes issue #1011
45
47
  ]
46
48
  """List of (subfolder: str, num_cycles: int)."""
47
49
 
@@ -40,7 +40,9 @@ RUN_SCENARIOS = [
40
40
  ("multiple-method-classifications", 5), # Closes issue #764
41
41
  ("non-soil-based-gohac-system", 3), # Closes issue #848
42
42
  ("with-gapfilled-start-date-end-date", 1), # Closes issue #972
43
- ("forest-to-orchard-with-ground-cover", 3) # Closes issue #989
43
+ ("forest-to-orchard-with-ground-cover", 3), # Closes issue #989
44
+ ("orchard-data-complete", 3), # Closes issue #1011
45
+ ("orchard-data-partially-complete", 3) # Closes issue #1011
44
46
  ]
45
47
  """List of (subfolder: str, num_cycles: int)."""
46
48
 
@@ -64,7 +64,9 @@ RUN_SCENARIOS = [
64
64
  ("multiple-method-classifications", 5), # Closes issue #764
65
65
  ("non-soil-based-gohac-system", 3), # Closes issue #848
66
66
  ("with-gapfilled-start-date-end-date", 1), # Closes issue #972
67
- ("forest-to-orchard-with-ground-cover", 3) # Closes issue #989
67
+ ("forest-to-orchard-with-ground-cover", 3), # Closes issue #989
68
+ ("orchard-data-complete", 3), # Closes issue #1011
69
+ ("orchard-data-partially-complete", 3) # Closes issue #1011
68
70
  ]
69
71
  """List of (subfolder: str, num_cycles: int)."""
70
72
 
@@ -105,7 +105,7 @@ PARAMS_SHOULD_RUN = [
105
105
  ("tier-1/should-not-run", False),
106
106
  ("tier-1/without-management-with-measured-soc", False),
107
107
  ("tier-1/land-use-change", True), # Closes issue 755
108
- ("tier-1/run-with-site-type", True), # Closes issue 755
108
+ ("tier-1/run-with-site-type", False), # Closes issue 755
109
109
  ("tier-1/cropland-polar", False), # Closes issue 794
110
110
  ("tier-1/cropland-with-system-increasing-c-input", True), # Closes issue 851
111
111
  ("tier-1/with-gapfilled-start-date-end-date", False), # Closes issue 972
@@ -122,7 +122,8 @@ PARAMS_SHOULD_RUN = [
122
122
  ("tier-2/with-irrigation-dates", True), # Closes issue 716
123
123
  ("tier-2/with-paddy-rice", False), # Closes issue 718
124
124
  ("tier-2/with-sand-without-date", True), # Closes issue 739
125
- ("tier-2/with-irrigated-upland-rice", False) # Closes issue 718
125
+ ("tier-2/with-irrigated-upland-rice", False), # Closes issue 718
126
+ ("tier-1/land-use-change-with-unknown-management", True) # Closes issue 1007
126
127
  ]
127
128
  IDS_SHOULD_RUN = [p[0] for p in PARAMS_SHOULD_RUN]
128
129
 
@@ -154,6 +154,7 @@ LAND_USE_CATEGORY_PARAMS = [
154
154
  ("set-aside", IpccSoilCategory.LOW_ACTIVITY_CLAY_SOILS, IpccLandUseCategory.SET_ASIDE),
155
155
  ("set-aside-override", IpccSoilCategory.LOW_ACTIVITY_CLAY_SOILS, IpccLandUseCategory.SET_ASIDE),
156
156
  ("upland-rice", IpccSoilCategory.LOW_ACTIVITY_CLAY_SOILS, IpccLandUseCategory.ANNUAL_CROPS),
157
+ ("unknown", IpccSoilCategory.LOW_ACTIVITY_CLAY_SOILS, IpccLandUseCategory.UNKNOWN)
157
158
  ]
158
159
 
159
160
 
@@ -194,14 +195,14 @@ MANAGEMENT_CATEGORY_PARAMS = [
194
195
  ("full-tillage", IpccLandUseCategory.ANNUAL_CROPS, IpccManagementCategory.FULL_TILLAGE),
195
196
  ("high-intensity-grazing", IpccLandUseCategory.GRASSLAND, IpccManagementCategory.HIGH_INTENSITY_GRAZING),
196
197
  ("improved-grassland", IpccLandUseCategory.GRASSLAND, IpccManagementCategory.IMPROVED_GRASSLAND),
197
- ("no-management/annual-crops", IpccLandUseCategory.ANNUAL_CROPS, IpccManagementCategory.FULL_TILLAGE),
198
- ("no-management/annual-crops-wet", IpccLandUseCategory.ANNUAL_CROPS_WET, IpccManagementCategory.FULL_TILLAGE),
199
- ("no-management/grassland", IpccLandUseCategory.GRASSLAND, IpccManagementCategory.NOMINALLY_MANAGED),
200
198
  ("no-tillage", IpccLandUseCategory.ANNUAL_CROPS, IpccManagementCategory.NO_TILLAGE),
201
199
  ("nominally-managed", IpccLandUseCategory.GRASSLAND, IpccManagementCategory.NOMINALLY_MANAGED),
202
- ("other", IpccLandUseCategory.OTHER, IpccManagementCategory.OTHER),
200
+ ("not-relevant", IpccLandUseCategory.OTHER, IpccManagementCategory.NOT_RELEVANT),
203
201
  ("reduced-tillage", IpccLandUseCategory.ANNUAL_CROPS, IpccManagementCategory.REDUCED_TILLAGE),
204
202
  ("severely-degraded", IpccLandUseCategory.GRASSLAND, IpccManagementCategory.SEVERELY_DEGRADED),
203
+ ("unknown/annual-crops", IpccLandUseCategory.ANNUAL_CROPS, IpccManagementCategory.UNKNOWN),
204
+ ("unknown/annual-crops-wet", IpccLandUseCategory.ANNUAL_CROPS_WET, IpccManagementCategory.UNKNOWN),
205
+ ("unknown/grassland", IpccLandUseCategory.GRASSLAND, IpccManagementCategory.UNKNOWN)
205
206
  ]
206
207
 
207
208
 
@@ -310,7 +311,10 @@ CARBON_INPUT_CATEGORY_PARAMS = [
310
311
  "grassland-medium/1-improvements",
311
312
  IpccManagementCategory.IMPROVED_GRASSLAND,
312
313
  IpccCarbonInputCategory.GRASSLAND_MEDIUM
313
- )
314
+ ),
315
+ ("not-relevant", IpccManagementCategory.NOT_RELEVANT, IpccCarbonInputCategory.NOT_RELEVANT),
316
+ ("unknown/cropland", IpccManagementCategory.FULL_TILLAGE, IpccCarbonInputCategory.UNKNOWN),
317
+ ("unknown/grassland", IpccManagementCategory.IMPROVED_GRASSLAND, IpccCarbonInputCategory.UNKNOWN)
314
318
  ]
315
319
 
316
320
 
@@ -395,18 +399,18 @@ def test_calc_soc_stocks(regime_start_years, soc_equilibriums, expected):
395
399
  TEST_INVENTORY = {
396
400
  1960: {
397
401
  _InventoryKey.LU_CATEGORY: IpccLandUseCategory.FOREST,
398
- _InventoryKey.MG_CATEGORY: IpccManagementCategory.OTHER,
399
- _InventoryKey.CI_CATEGORY: IpccCarbonInputCategory.OTHER
402
+ _InventoryKey.MG_CATEGORY: IpccManagementCategory.NOT_RELEVANT,
403
+ _InventoryKey.CI_CATEGORY: IpccCarbonInputCategory.NOT_RELEVANT
400
404
  },
401
405
  1965: {
402
406
  _InventoryKey.LU_CATEGORY: IpccLandUseCategory.FOREST,
403
- _InventoryKey.MG_CATEGORY: IpccManagementCategory.OTHER,
404
- _InventoryKey.CI_CATEGORY: IpccCarbonInputCategory.OTHER
407
+ _InventoryKey.MG_CATEGORY: IpccManagementCategory.NOT_RELEVANT,
408
+ _InventoryKey.CI_CATEGORY: IpccCarbonInputCategory.NOT_RELEVANT
405
409
  },
406
410
  1970: {
407
411
  _InventoryKey.LU_CATEGORY: IpccLandUseCategory.GRASSLAND,
408
412
  _InventoryKey.MG_CATEGORY: IpccManagementCategory.NOMINALLY_MANAGED,
409
- _InventoryKey.CI_CATEGORY: IpccCarbonInputCategory.OTHER
413
+ _InventoryKey.CI_CATEGORY: IpccCarbonInputCategory.NOT_RELEVANT
410
414
  },
411
415
  1995: {
412
416
  _InventoryKey.LU_CATEGORY: IpccLandUseCategory.ANNUAL_CROPS,
@@ -434,7 +438,7 @@ EXPECTED_MISSING_YEARS = {
434
438
  1990: {
435
439
  _InventoryKey.LU_CATEGORY: IpccLandUseCategory.GRASSLAND,
436
440
  _InventoryKey.MG_CATEGORY: IpccManagementCategory.NOMINALLY_MANAGED,
437
- _InventoryKey.CI_CATEGORY: IpccCarbonInputCategory.OTHER
441
+ _InventoryKey.CI_CATEGORY: IpccCarbonInputCategory.NOT_RELEVANT
438
442
  },
439
443
  2023: {
440
444
  _InventoryKey.LU_CATEGORY: IpccLandUseCategory.ANNUAL_CROPS,
@@ -25,7 +25,7 @@ from hestia_earth.models.utils.blank_node import (
25
25
  split_node_by_dates,
26
26
  _most_recent_nodes,
27
27
  _shallowest_node,
28
- validate_start_date_end_date
28
+ validate_start_date_end_date, _str_dates_match
29
29
  )
30
30
 
31
31
 
@@ -338,7 +338,7 @@ def test_get_date_month():
338
338
 
339
339
  Should only be found in blank node `dates` field. (Format not permitted in `startDate` or `endDate` fields.)
340
340
  """
341
- assert _get_datestr_format(DATESTR_MONTH), DatestrFormat.MONTH
341
+ assert _get_datestr_format(DATESTR_MONTH) == DatestrFormat.MONTH
342
342
 
343
343
 
344
344
  def test_get_date_month_day():
@@ -347,7 +347,7 @@ def test_get_date_month_day():
347
347
 
348
348
  Should only be found in blank node `dates` field. (Format not permitted in `startDate` or `endDate` fields.)
349
349
  """
350
- assert _get_datestr_format(DATESTR_MONTH_DAY), DatestrFormat.MONTH_DAY
350
+ assert _get_datestr_format(DATESTR_MONTH_DAY) == DatestrFormat.MONTH_DAY
351
351
 
352
352
 
353
353
  def test_get_datestr_format_no_zero_padding():
@@ -355,21 +355,34 @@ def test_get_datestr_format_no_zero_padding():
355
355
  assert _get_datestr_format(DATE_STR) is None
356
356
 
357
357
 
358
+ def test_str_dates_match():
359
+ assert _str_dates_match("2010", "2010-12-31") is True
360
+ assert _str_dates_match("2010", "2010-01-01") is False
361
+ assert _str_dates_match("2010", "2010-12-31") is True
362
+ assert _str_dates_match("2010", "2010-01") is False
363
+
364
+ assert _str_dates_match("2010", "2010-12-31", mode=DatestrGapfillMode.START) is False
365
+ assert _str_dates_match("2010", "2010-01-01", mode=DatestrGapfillMode.START) is True
366
+
367
+
358
368
  # --- test _gapfill_datestr ---
359
369
 
360
370
 
361
371
  def test_complete_datestr_year():
362
- assert _gapfill_datestr(DATESTR_YEAR), "2000-01-01T00:00:00"
363
- assert _gapfill_datestr(DATESTR_YEAR, DatestrGapfillMode.END), "2000-12-31T23:59:59"
372
+ assert _gapfill_datestr(DATESTR_YEAR) == "2000-01-01T00:00:00"
373
+ assert _gapfill_datestr(DATESTR_YEAR, DatestrGapfillMode.MIDDLE) == "2000-07-01T23:59:59"
374
+ assert _gapfill_datestr(DATESTR_YEAR, DatestrGapfillMode.END) == "2000-12-31T23:59:59"
364
375
 
365
376
 
366
377
  def test_complete_datestr_year_month():
367
- assert _gapfill_datestr(DATESTR_YEAR_MONTH), "2000-01-01T00:00:00"
378
+ assert _gapfill_datestr(DATESTR_YEAR_MONTH) == "2000-01-01T00:00:00"
379
+ assert _gapfill_datestr(DATESTR_YEAR_MONTH, DatestrGapfillMode.MIDDLE) == "2000-01-16T11:59:59"
368
380
  assert _gapfill_datestr(DATESTR_YEAR_MONTH, DatestrGapfillMode.END) == "2000-01-31T23:59:59"
369
381
 
370
382
 
371
383
  def test_complete_datestr_year_month_day():
372
- assert _gapfill_datestr(DATESTR_YEAR_MONTH_DAY), "2000-01-01T00:00:00"
384
+ assert _gapfill_datestr(DATESTR_YEAR_MONTH_DAY) == "2000-01-01T00:00:00"
385
+ assert _gapfill_datestr(DATESTR_YEAR_MONTH_DAY, DatestrGapfillMode.MIDDLE) == "2000-01-01T11:59:59"
373
386
  assert _gapfill_datestr(DATESTR_YEAR_MONTH_DAY, DatestrGapfillMode.END) == "2000-01-01T23:59:59"
374
387
 
375
388
 
@@ -379,9 +392,11 @@ def test_gapfill_datestr_feburary():
379
392
  """
380
393
  # Non-leap year
381
394
  assert _gapfill_datestr("1981-02") == "1981-02-01T00:00:00"
395
+ assert _gapfill_datestr("1981-02", DatestrGapfillMode.MIDDLE) == "1981-02-14T23:59:59"
382
396
  assert _gapfill_datestr("1981-02", DatestrGapfillMode.END) == "1981-02-28T23:59:59"
383
397
 
384
398
  # Leap year
399
+ assert _gapfill_datestr("2024-02", DatestrGapfillMode.MIDDLE) == "2024-02-15T11:59:59"
385
400
  assert _gapfill_datestr("2024-02", DatestrGapfillMode.END) == "2024-02-29T23:59:59"
386
401
 
387
402