hestia-earth-models 0.72.0__py3-none-any.whl → 0.72.2__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.
- hestia_earth/models/cml2001Baseline/resourceUseEnergyDepletionInputsProduction.py +2 -1
- hestia_earth/models/cml2001Baseline/resourceUseMineralsAndMetalsInputsProduction.py +2 -1
- hestia_earth/models/config/ImpactAssessment.json +1964 -1918
- hestia_earth/models/ecoalimV9/cycle.py +1 -0
- hestia_earth/models/ecoalimV9/impact_assessment.py +1 -0
- hestia_earth/models/ecoinventV3/__init__.py +1 -0
- hestia_earth/models/ecoinventV3AndEmberClimate/__init__.py +1 -0
- hestia_earth/models/environmentalFootprintV3_1/environmentalFootprintSingleOverallScore.py +19 -3
- hestia_earth/models/hestia/landCover.py +10 -2
- hestia_earth/models/ipcc2019/co2ToAirUreaHydrolysis.py +27 -27
- hestia_earth/models/linkedImpactAssessment/emissions.py +1 -0
- hestia_earth/models/linkedImpactAssessment/utils.py +16 -16
- hestia_earth/models/mocking/search-results.json +660 -660
- hestia_earth/models/version.py +1 -1
- {hestia_earth_models-0.72.0.dist-info → hestia_earth_models-0.72.2.dist-info}/METADATA +1 -1
- {hestia_earth_models-0.72.0.dist-info → hestia_earth_models-0.72.2.dist-info}/RECORD +21 -21
- tests/models/environmentalFootprintV3_1/test_environmentalFootprintSingleOverallScore.py +22 -2
- tests/models/ipcc2019/test_co2ToAirUreaHydrolysis.py +10 -34
- {hestia_earth_models-0.72.0.dist-info → hestia_earth_models-0.72.2.dist-info}/LICENSE +0 -0
- {hestia_earth_models-0.72.0.dist-info → hestia_earth_models-0.72.2.dist-info}/WHEEL +0 -0
- {hestia_earth_models-0.72.0.dist-info → hestia_earth_models-0.72.2.dist-info}/top_level.txt +0 -0
hestia_earth/models/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
VERSION = '0.72.
|
1
|
+
VERSION = '0.72.2'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: hestia-earth-models
|
3
|
-
Version: 0.72.
|
3
|
+
Version: 0.72.2
|
4
4
|
Summary: HESTIA's set of modules for filling gaps in the activity data using external datasets (e.g. populating soil properties with a geospatial dataset using provided coordinates) and internal lookups (e.g. populating machinery use from fuel use). Includes rules for when gaps should be filled versus not (e.g. never gap fill yield, gap fill crop residue if yield provided etc.).
|
5
5
|
Home-page: https://gitlab.com/hestia-earth/hestia-engine-models
|
6
6
|
Author: HESTIA Team
|
@@ -5,7 +5,7 @@ hestia_earth/models/cache_sites.py,sha256=VwUNMhmCXZIEnligS0jtcWDdn13GIknpzxBMWz
|
|
5
5
|
hestia_earth/models/log.py,sha256=eRuH86v7Thuw-QXdKqaqVmA_MkwnOCo0UBEwtuDq4Oc,3554
|
6
6
|
hestia_earth/models/preload_requests.py,sha256=vK_G1UzhNMhYy7ymnCtHUz_vv3cfApCSKqv29VREEBQ,1943
|
7
7
|
hestia_earth/models/requirements.py,sha256=eU4yT443fx7BnaokhrLB_PCizJI7Y6m4auyo8vQauNg,17363
|
8
|
-
hestia_earth/models/version.py,sha256=
|
8
|
+
hestia_earth/models/version.py,sha256=YGwM_K3EaN6uHxziOn4v47PVw7oPysLyK9ROmWjqFOE,19
|
9
9
|
hestia_earth/models/agribalyse2016/__init__.py,sha256=WvK0qCQbnYtg9oZxrACd1wGormZyXibPtpCnIQeDqbw,415
|
10
10
|
hestia_earth/models/agribalyse2016/fuelElectricity.py,sha256=1ngl8pdxeNhlVV8keAeWRwGorr_1uFXM9EoPUWx-uSc,4382
|
11
11
|
hestia_earth/models/agribalyse2016/machineryInfrastructureDepreciatedAmountPerCycle.py,sha256=queToXuzq0tQ9_XuUJ2pJgSywXmbt9uX3ZoIKgqkROM,2660
|
@@ -27,15 +27,15 @@ hestia_earth/models/cml2001Baseline/abioticResourceDepletionFossilFuels.py,sha25
|
|
27
27
|
hestia_earth/models/cml2001Baseline/abioticResourceDepletionMineralsAndMetals.py,sha256=RT69ZgQjwtY72Qxrxq7Kw7L6WLTfPttYANYVs9OMRnA,5151
|
28
28
|
hestia_earth/models/cml2001Baseline/eutrophicationPotentialExcludingFate.py,sha256=nUWKsn3COqAOrYNmiBKnA2rUs88pj4o3k4fHKA0TVbU,1068
|
29
29
|
hestia_earth/models/cml2001Baseline/resourceUseEnergyDepletionDuringCycle.py,sha256=C9pXq8Al971s4Xn50S85mXmtw7OYHzKRnPH6kcqZTCY,5237
|
30
|
-
hestia_earth/models/cml2001Baseline/resourceUseEnergyDepletionInputsProduction.py,sha256=
|
30
|
+
hestia_earth/models/cml2001Baseline/resourceUseEnergyDepletionInputsProduction.py,sha256=azNsUDaeZ5WLS8F24sVWyBAzZKFQtim1pkGqUJN4OLU,1232
|
31
31
|
hestia_earth/models/cml2001Baseline/resourceUseMineralsAndMetalsDuringCycle.py,sha256=pLNdi92A68yG_4f05AWzEi61MCdYvY2KtM4kH0E0s0Q,2605
|
32
|
-
hestia_earth/models/cml2001Baseline/resourceUseMineralsAndMetalsInputsProduction.py,sha256=
|
32
|
+
hestia_earth/models/cml2001Baseline/resourceUseMineralsAndMetalsInputsProduction.py,sha256=HhWtm7LoAhiyV-ty0atdM936yntQKjG-EB0h2-kidn0,1227
|
33
33
|
hestia_earth/models/cml2001Baseline/terrestrialAcidificationPotentialIncludingFateAverageEurope.py,sha256=N8neIISqeTAS7VGTNWbbbozOtfCb816qwwHCnv7Nnpw,1113
|
34
34
|
hestia_earth/models/cml2001NonBaseline/__init__.py,sha256=vI8wp8Og_e8DiJqYYvp33YoI3t4ffAC31LWlnV20JTg,419
|
35
35
|
hestia_earth/models/cml2001NonBaseline/eutrophicationPotentialIncludingFateAverageEurope.py,sha256=lcgyRHY08KCBFPERJNqV4DYGEJCvyHBDnJXD0kEkVqM,1097
|
36
36
|
hestia_earth/models/cml2001NonBaseline/terrestrialAcidificationPotentialExcludingFate.py,sha256=xcrxfs9UoV_EWvV-XzMt35oPWCUsTzqg2SGA3j2MFIw,1091
|
37
37
|
hestia_earth/models/config/Cycle.json,sha256=3akuXAYWwsTc9v4g8y0yGQooDXc_D4y8J5Q7RFLTAmg,58113
|
38
|
-
hestia_earth/models/config/ImpactAssessment.json,sha256=
|
38
|
+
hestia_earth/models/config/ImpactAssessment.json,sha256=xlxwRMZRb-znnRFeQYeMvrJfiUOh7XkxUsrv1eW57Jg,60447
|
39
39
|
hestia_earth/models/config/Site.json,sha256=dp5tQ37lU_xakeWg4UAgqQR3YoCS7BkasYo1TtNHabo,14074
|
40
40
|
hestia_earth/models/config/__init__.py,sha256=l1WqL7ezlank86ABP4zUia_hIvM9ba-sOE3z6wNrea8,2333
|
41
41
|
hestia_earth/models/config/run-calculations.json,sha256=e3nJ4M6CP1iFzfv8ou_ZUFbFxYkDxJgwuNDXTm4PBDc,615
|
@@ -98,12 +98,12 @@ hestia_earth/models/data/ecoinventV3/__init__.py,sha256=DK1avgh58KlsUJY4nOTAaRlK
|
|
98
98
|
hestia_earth/models/deRuijterEtAl2010/__init__.py,sha256=lbH6mB98dmZZlwdZctNYtEmVwAow957l80Dv7JSPDsI,418
|
99
99
|
hestia_earth/models/deRuijterEtAl2010/nh3ToAirCropResidueDecomposition.py,sha256=2z10WqMsGUDDO8xJ3lmXvSUHgzz2t6PPRDha5NHoT5s,3291
|
100
100
|
hestia_earth/models/ecoalimV9/__init__.py,sha256=_evwL-DZejYohms9PUi4TNqLic44-UbOzw178wak7Pk,410
|
101
|
-
hestia_earth/models/ecoalimV9/cycle.py,sha256=
|
102
|
-
hestia_earth/models/ecoalimV9/impact_assessment.py,sha256=
|
101
|
+
hestia_earth/models/ecoalimV9/cycle.py,sha256=szYlf0ri_QURkBsMHmLiiwuh1w1Lea6RFYp-FzImV0o,4832
|
102
|
+
hestia_earth/models/ecoalimV9/impact_assessment.py,sha256=1TmGamdh_Omfasv7ZYctNPwOUEJ8dn7MyjXNUpupyGw,4614
|
103
103
|
hestia_earth/models/ecoalimV9/utils.py,sha256=AWmWQhjvze3J6s35bH-EQIGc58xCeMA8_56hQD7CX8A,1170
|
104
|
-
hestia_earth/models/ecoinventV3/__init__.py,sha256=
|
104
|
+
hestia_earth/models/ecoinventV3/__init__.py,sha256=utnccwktzZMd8POngMA5Ho-9NVJqHC62WlmcCVuBMzw,5446
|
105
105
|
hestia_earth/models/ecoinventV3/utils.py,sha256=RxqaHB9hr0RdTKSjfvDN0pC8DIOyxMCr4I_xjas1POw,460
|
106
|
-
hestia_earth/models/ecoinventV3AndEmberClimate/__init__.py,sha256=
|
106
|
+
hestia_earth/models/ecoinventV3AndEmberClimate/__init__.py,sha256=fSFKMzDDRJi8OvKdhRMFRrGcD07hWDNMTjDa-_Yp-C0,5951
|
107
107
|
hestia_earth/models/ecoinventV3AndEmberClimate/utils.py,sha256=AzslK6YB0jxVMLfkLVmhHpkM7mx639N0mIWbErD6GMw,1133
|
108
108
|
hestia_earth/models/edip2003/__init__.py,sha256=nyB0CI2gNmRAXj-203aJHQMmETYhcY-dHbMABOhJ7YI,409
|
109
109
|
hestia_earth/models/edip2003/ozoneDepletionPotential.py,sha256=YkBct4eDUidGukaVdd2iaEouq_FckuG8l_7pgBQgCBw,1033
|
@@ -120,7 +120,7 @@ hestia_earth/models/emepEea2019/tspToAirAnimalHousing.py,sha256=TaT5GyYK6MyJQHKA
|
|
120
120
|
hestia_earth/models/emepEea2019/utils.py,sha256=YIHxVu4GwCbxBI5FzsmJ91itWNGx0vnBTCePSwlCnz8,5629
|
121
121
|
hestia_earth/models/emissionNotRelevant/__init__.py,sha256=yAunIZI_4nGV0khRiGhbZAmXmMiuICzEH-pvzWX1lpM,3000
|
122
122
|
hestia_earth/models/environmentalFootprintV3_1/__init__.py,sha256=tF2WrWiV1Wzi2vnRiNXdfPWfmVxgVu9w9-7eA6PA7-s,473
|
123
|
-
hestia_earth/models/environmentalFootprintV3_1/environmentalFootprintSingleOverallScore.py,sha256=
|
123
|
+
hestia_earth/models/environmentalFootprintV3_1/environmentalFootprintSingleOverallScore.py,sha256=XjukJ0ecX62mK7Nhp3JZ7xYg9cKNAWbdhvy5M7VbXH0,5810
|
124
124
|
hestia_earth/models/environmentalFootprintV3_1/freshwaterEcotoxicityPotentialCtue.py,sha256=N_gw2aNoCMW5Z1XM-uAyCF1kfpZUI07giv_bo3Lmr5Q,918
|
125
125
|
hestia_earth/models/environmentalFootprintV3_1/marineEutrophicationPotential.py,sha256=UM9pezQeETfk9i0FtOBRdreaaJ9OqL6G4gYljrKOz-0,1063
|
126
126
|
hestia_earth/models/environmentalFootprintV3_1/photochemicalOzoneCreationPotentialHumanHealthNmvocEq.py,sha256=47raZTA3aUbBpgClTzKnzUI8Vfy9qUwYNdFDUKM3hJ0,1101
|
@@ -202,7 +202,7 @@ hestia_earth/models/hestia/freshWater.py,sha256=EHUWNFmgIqr9y7DTcn1_HcpJdI7WP1cv
|
|
202
202
|
hestia_earth/models/hestia/histosol.py,sha256=IexiWTSlSJYGjrdpYmRooW6v8LjhYATPQ8smMz1UZBA,1612
|
203
203
|
hestia_earth/models/hestia/inorganicFertiliser.py,sha256=SQv5X4vkgmvUIUV79dJ71Y9u2EW3T5Scu2GoTr3K0Yw,8930
|
204
204
|
hestia_earth/models/hestia/irrigatedTypeUnspecified.py,sha256=VdYzfYxcRzWv21qxRkDn9HBid7-Bt_CgIv4iyXJH03g,1929
|
205
|
-
hestia_earth/models/hestia/landCover.py,sha256=
|
205
|
+
hestia_earth/models/hestia/landCover.py,sha256=WrmtrhkHhT9ZQOwVCiUtdJIc1VXB_yizig5CtfHwc0k,32840
|
206
206
|
hestia_earth/models/hestia/landTransformation100YearAverageDuringCycle.py,sha256=7KWgpAo2gILzsxdgnO8gI3tAf3tF0IhyGkneYI6PEDc,1018
|
207
207
|
hestia_earth/models/hestia/landTransformation20YearAverageDuringCycle.py,sha256=1StzrYhMsX-hdwBTeLnLMZWl5EEnCoEYpGPRkqy8a-A,1016
|
208
208
|
hestia_earth/models/hestia/liveAnimal.py,sha256=95HfqgFA_qRhdIeR2X5MJ9zzIm4nMHDvJ0BCnuTYe5Q,3860
|
@@ -297,7 +297,7 @@ hestia_earth/models/ipcc2019/co2ToAirCarbonStockChange_utils.py,sha256=pJCdb8hys
|
|
297
297
|
hestia_earth/models/ipcc2019/co2ToAirLimeHydrolysis.py,sha256=X3-M4Mn3fdGsUR7ZGjBXXWrPFBGD1ipV8_4O94lB7Z8,2487
|
298
298
|
hestia_earth/models/ipcc2019/co2ToAirOrganicSoilCultivation.py,sha256=e-hUmPMv_UxUM5otGkwToa8GheHzNbmYOlG9A8Lbw7M,7633
|
299
299
|
hestia_earth/models/ipcc2019/co2ToAirSoilOrganicCarbonStockChange.py,sha256=4aRBzNpDNSw20IKNzz7zOq28sorrJUB5gxmHemgOZT0,6576
|
300
|
-
hestia_earth/models/ipcc2019/co2ToAirUreaHydrolysis.py,sha256=
|
300
|
+
hestia_earth/models/ipcc2019/co2ToAirUreaHydrolysis.py,sha256=TH9B0VLChh5NmB2uh0PiPVM6xiqgQK1czBMbuuccoRg,3871
|
301
301
|
hestia_earth/models/ipcc2019/croppingDuration.py,sha256=wgXzEHsl2demqzKnZK6Ak7UKUu_CVU41ZsmwxG2uiOg,3055
|
302
302
|
hestia_earth/models/ipcc2019/ligninContent.py,sha256=Qh-UH4lv1TIf7wWlbAPwIZZHxzbbmQgND3m15pt5Si8,7285
|
303
303
|
hestia_earth/models/ipcc2019/n2OToAirCropResidueDecompositionDirect.py,sha256=Fand7NbT27unwgFTxi_9NxT024s63vQ7U6-tk9yp3d8,3990
|
@@ -435,16 +435,16 @@ hestia_earth/models/lcImpactCertainEffectsInfinite/damageToTerrestrialEcosystems
|
|
435
435
|
hestia_earth/models/lcImpactCertainEffectsInfinite/damageToTerrestrialEcosystemsTerrestrialAcidification.py,sha256=mILJfHIobDE9EkW72Go731EFrfb6umF9Fa3Sy7sAqw0,1222
|
436
436
|
hestia_earth/models/lcImpactCertainEffectsInfinite/damageToTerrestrialEcosystemsTerrestrialEcotoxicity.py,sha256=dyUfAD74qEzfIGFei1IcI2RfQXgkjns7AhJ0iYzgCBk,963
|
437
437
|
hestia_earth/models/linkedImpactAssessment/__init__.py,sha256=SPP09DMS4zUThyQfcgLpivFwsey4WSt77CDMYHJPKWE,423
|
438
|
-
hestia_earth/models/linkedImpactAssessment/emissions.py,sha256=
|
438
|
+
hestia_earth/models/linkedImpactAssessment/emissions.py,sha256=j_vVxAoptfu1NyiTTsU8_vOJXFKbPI0DclAEqOQqsac,6384
|
439
439
|
hestia_earth/models/linkedImpactAssessment/freshwaterWithdrawalsInputsProduction.py,sha256=OTWVjPikOsZTbzgTzCJBkL6fH4Zbprq5SrV5LSLc4C0,1137
|
440
440
|
hestia_earth/models/linkedImpactAssessment/landOccupationInputsProduction.py,sha256=M1_QXTxCdWccXPaO7YjOtBa6WkmiQj3Xs89lYIUrM7w,1141
|
441
441
|
hestia_earth/models/linkedImpactAssessment/landTransformation100YearAverageInputsProduction.py,sha256=IqQ76I05IC79g2GXY91iWFqEeXk8Fhw-hcrifCaAbiI,1228
|
442
442
|
hestia_earth/models/linkedImpactAssessment/landTransformation20YearAverageInputsProduction.py,sha256=yHGyhabzKdBIPSGciJ_LJPKvHbTECXDx8dGOgmT1eqM,1225
|
443
|
-
hestia_earth/models/linkedImpactAssessment/utils.py,sha256=
|
443
|
+
hestia_earth/models/linkedImpactAssessment/utils.py,sha256=7M-E7u35fIF0uMoA1hwcr6ty39pJ_Jshgw41ndEZr0Q,4596
|
444
444
|
hestia_earth/models/mocking/__init__.py,sha256=9VX50c-grz-snfd-7MBS0KfF7AadtbKuj7kK6PqtsgE,687
|
445
445
|
hestia_earth/models/mocking/build_mock_search.py,sha256=p15ccEUmkmLp1RiGNznxMz3OFHbI8P1-29ExuohiQN8,1355
|
446
446
|
hestia_earth/models/mocking/mock_search.py,sha256=ccFe_WrI73JElFmxp4hPNLCX7eeU--lBC1JFR901KJY,1069
|
447
|
-
hestia_earth/models/mocking/search-results.json,sha256=
|
447
|
+
hestia_earth/models/mocking/search-results.json,sha256=LkJbrokIm6GlpOOMjWTNRcUOdYPL5Onx75en1b37LxE,162532
|
448
448
|
hestia_earth/models/pooreNemecek2018/__init__.py,sha256=nPboL7ULJzL5nJD5q7q9VOZt_fxbKVm8fmn1Az5YkVY,417
|
449
449
|
hestia_earth/models/pooreNemecek2018/aboveGroundCropResidueTotal.py,sha256=Qt-mel4dkhK6N5uUOutNOinCTFjbjtGzITaaI0LvYc4,2396
|
450
450
|
hestia_earth/models/pooreNemecek2018/belowGroundCropResidue.py,sha256=JT0RybbvWVlo01FO8K0Yj41HrEaJT3Kj1xfayr2X-xw,2315
|
@@ -755,7 +755,7 @@ tests/models/emepEea2019/test_so2ToAirFuelCombustion.py,sha256=RkC_ux5bxo6bIdcXI
|
|
755
755
|
tests/models/emepEea2019/test_tspToAirAnimalHousing.py,sha256=4MNDsxIeUk5_3IvZwEZslxgoPNyQN9OQFDNY3uGNX6E,714
|
756
756
|
tests/models/emepEea2019/test_utils.py,sha256=MUIeHgcCHLhbYWgleKIiKqO2Q4RX321J53YpOt9cogA,7060
|
757
757
|
tests/models/environmentalFootprintV3_1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
758
|
-
tests/models/environmentalFootprintV3_1/test_environmentalFootprintSingleOverallScore.py,sha256=
|
758
|
+
tests/models/environmentalFootprintV3_1/test_environmentalFootprintSingleOverallScore.py,sha256=yJXnquW4sUfBz_1uX5Qzhyqheoqthh47uQ2tBhgyReg,5863
|
759
759
|
tests/models/environmentalFootprintV3_1/test_freshwaterEcotoxicityPotentialCtue.py,sha256=WE-DcerljCjXMYE4f3Sv5ZCVHP0oTjbWkOGuvaa4p10,926
|
760
760
|
tests/models/environmentalFootprintV3_1/test_marineEutrophicationPotential.py,sha256=kY_pu_7SjSZl_l41mttMn4BpKl13TTV9jQYSHFMNXhI,968
|
761
761
|
tests/models/environmentalFootprintV3_1/test_photochemicalOzoneCreationPotentialHumanHealthNmvocEq.py,sha256=Z4KGhYmnao0J1rC_jY9P_8Lu9UKe-_RyrdO5k56EIsg,1022
|
@@ -926,7 +926,7 @@ tests/models/ipcc2019/test_co2ToAirCarbonStockChange_utils.py,sha256=wCEtrbMl6ze
|
|
926
926
|
tests/models/ipcc2019/test_co2ToAirLimeHydrolysis.py,sha256=r7QmCH0YURS41JZxH2mFAC0J29WqmdkKG9EoEgv27AA,1350
|
927
927
|
tests/models/ipcc2019/test_co2ToAirOrganicSoilCultivation.py,sha256=w4MBn2bYwyiv001xEU2RI9Q8L2Eu9lFC0CoxBcOzkWU,1761
|
928
928
|
tests/models/ipcc2019/test_co2ToAirSoilOrganicCarbonStockChange.py,sha256=gPT_yyQBRoISSizW-7qE32VEeFXxsc55K3-3eZMJlOU,5688
|
929
|
-
tests/models/ipcc2019/test_co2ToAirUreaHydrolysis.py,sha256=
|
929
|
+
tests/models/ipcc2019/test_co2ToAirUreaHydrolysis.py,sha256=2u4_jtekmVzLTwKpNr1fVcAzgegm17Fh9h59JRXFpOM,1030
|
930
930
|
tests/models/ipcc2019/test_croppingDuration.py,sha256=1oRW1QaEwQvBadyVhaDi-jlkjuNqodyAinl88TdPmiY,1879
|
931
931
|
tests/models/ipcc2019/test_ligninContent.py,sha256=eIKEN__ab-0R52EhlhPSBiHnmTl6xOf1XbI33O-W9A4,4146
|
932
932
|
tests/models/ipcc2019/test_n2OToAirCropResidueDecompositionDirect.py,sha256=vKbWQNZAGPtsqonM-Cc3n3hNitft0hcjn2TNrTFC1iY,2729
|
@@ -1243,8 +1243,8 @@ tests/orchestrator/strategies/run/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
|
|
1243
1243
|
tests/orchestrator/strategies/run/test_add_blank_node_if_missing.py,sha256=K4xg4UAXfNhSaLyknKVPO7MGBF44Z_gD7CuZ_pe28gU,3512
|
1244
1244
|
tests/orchestrator/strategies/run/test_add_key_if_missing.py,sha256=hKwvk1ohcBVnQUCTiDhRW99J0xEa29BpwFi1KC0yWLE,329
|
1245
1245
|
tests/orchestrator/strategies/run/test_always.py,sha256=w5-Dhp6yLzgZGAeMRz3OrqZbbAed9gZ1O266a3z9k7w,134
|
1246
|
-
hestia_earth_models-0.72.
|
1247
|
-
hestia_earth_models-0.72.
|
1248
|
-
hestia_earth_models-0.72.
|
1249
|
-
hestia_earth_models-0.72.
|
1250
|
-
hestia_earth_models-0.72.
|
1246
|
+
hestia_earth_models-0.72.2.dist-info/LICENSE,sha256=TD25LoiRJsA5CPUNrcyt1PXlGcbUGFMAeZoBcfCrCNE,1154
|
1247
|
+
hestia_earth_models-0.72.2.dist-info/METADATA,sha256=q364RDPcHbLSGe6V7W4XVoLXCNPKe3HvGwISTBgWfIg,4045
|
1248
|
+
hestia_earth_models-0.72.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
1249
|
+
hestia_earth_models-0.72.2.dist-info/top_level.txt,sha256=1dqA9TqpOLTEgpqa-YBsmbCmmNU1y56AtfFGEceZ2A0,19
|
1250
|
+
hestia_earth_models-0.72.2.dist-info/RECORD,,
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import json
|
2
|
-
from unittest.mock import patch, Mock
|
3
|
-
|
4
2
|
from pytest import mark
|
3
|
+
from unittest.mock import patch, Mock
|
5
4
|
|
6
5
|
from hestia_earth.models.environmentalFootprintV3_1 import MODEL_FOLDER
|
7
6
|
from hestia_earth.models.environmentalFootprintV3_1.environmentalFootprintSingleOverallScore import MODEL, TERM_ID, \
|
@@ -20,6 +19,7 @@ def fake_rounded_indicator(value: float):
|
|
20
19
|
|
21
20
|
methodModelEFV31 = {"@type": "Term", "@id": "environmentalFootprintV3-1"}
|
22
21
|
methodModelFantkeEtAl2016 = {"@type": "Term", "@id": "fantkeEtAl2016"}
|
22
|
+
methodModelfrischknechtEtAl2000 = {"@type": "Term", "@id": "frischknechtEtAl2000"}
|
23
23
|
|
24
24
|
ozone_indicator = {"@type": "Indicator",
|
25
25
|
"term": {"@id": "ozoneDepletionPotential", "termType": "characterisedIndicator"},
|
@@ -68,6 +68,22 @@ bad_indicator_no_method_model = {
|
|
68
68
|
"value": 0.000420443840380047
|
69
69
|
}
|
70
70
|
|
71
|
+
ionising_radiation_indicator_radon = {
|
72
|
+
"@type": "Indicator",
|
73
|
+
"term": {"@id": "ionisingRadiationKbqU235Eq", "termType": "characterisedIndicator"},
|
74
|
+
"value": 0.11156637927360424,
|
75
|
+
"inputs": [{"@id": "radon222"}],
|
76
|
+
"methodModel": methodModelfrischknechtEtAl2000
|
77
|
+
}
|
78
|
+
|
79
|
+
ionising_radiation_indicator_plutonium238 = {
|
80
|
+
"@type": "Indicator",
|
81
|
+
"term": {"@id": "ionisingRadiationKbqU235Eq", "termType": "characterisedIndicator"},
|
82
|
+
"value": 8.567909489437642e-13,
|
83
|
+
"inputs": [{"@id": "plutonium238"}],
|
84
|
+
"methodModel": methodModelfrischknechtEtAl2000
|
85
|
+
}
|
86
|
+
|
71
87
|
|
72
88
|
@mark.parametrize(
|
73
89
|
"impacts, expected, num_inputs",
|
@@ -84,6 +100,8 @@ bad_indicator_no_method_model = {
|
|
84
100
|
([ozone_indicator, acid_indicator], True, 2),
|
85
101
|
([ozone_indicator, other_valid_ozone_indicator], True, 1),
|
86
102
|
([bad_indicator_no_val, acid_indicator], False, 1),
|
103
|
+
([ionising_radiation_indicator_radon, ionising_radiation_indicator_plutonium238], True, 2),
|
104
|
+
([ionising_radiation_indicator_radon, ionising_radiation_indicator_radon], False, 2),
|
87
105
|
],
|
88
106
|
ids=[
|
89
107
|
"No indicators => no run",
|
@@ -98,6 +116,8 @@ bad_indicator_no_method_model = {
|
|
98
116
|
"2 good indicators => run",
|
99
117
|
"2 ozone_indicator different methodModel => run with 1",
|
100
118
|
"one bad one good indicator => no run",
|
119
|
+
"multiple radiation indicators => run with 2",
|
120
|
+
"duplicate radiation indicators => no run",
|
101
121
|
]
|
102
122
|
)
|
103
123
|
def test_should_run(impacts, expected, num_inputs):
|
@@ -1,11 +1,14 @@
|
|
1
|
-
|
1
|
+
import os
|
2
2
|
import json
|
3
|
+
import pytest
|
4
|
+
from unittest.mock import patch
|
3
5
|
from tests.utils import fixtures_path, fake_new_emission
|
4
6
|
|
5
|
-
from hestia_earth.models.ipcc2019.co2ToAirUreaHydrolysis import MODEL, TERM_ID, run
|
7
|
+
from hestia_earth.models.ipcc2019.co2ToAirUreaHydrolysis import MODEL, TERM_ID, run
|
6
8
|
|
7
9
|
class_path = f"hestia_earth.models.{MODEL}.{TERM_ID}"
|
8
10
|
fixtures_folder = f"{fixtures_path}/{MODEL}/{TERM_ID}"
|
11
|
+
_folders = [d for d in os.listdir(fixtures_folder) if os.path.isdir(os.path.join(fixtures_folder, d))]
|
9
12
|
TERMS = [
|
10
13
|
'ureaKgN',
|
11
14
|
'ureaAmmoniumNitrateKgN',
|
@@ -13,42 +16,15 @@ TERMS = [
|
|
13
16
|
]
|
14
17
|
|
15
18
|
|
16
|
-
@
|
17
|
-
def test_should_run(*args):
|
18
|
-
# no inputs => no run
|
19
|
-
cycle = {'inputs': []}
|
20
|
-
should_run, *args = _should_run(cycle)
|
21
|
-
assert not should_run
|
22
|
-
|
23
|
-
# with urea input => run
|
24
|
-
cycle['inputs'].append({
|
25
|
-
'term': {
|
26
|
-
'@id': TERMS[0]
|
27
|
-
},
|
28
|
-
'value': [100]
|
29
|
-
})
|
30
|
-
should_run, *args = _should_run(cycle)
|
31
|
-
assert should_run is True
|
32
|
-
|
33
|
-
# with inorganicNitrogenFertiliserUnspecifiedKgN input => run
|
34
|
-
cycle['inputs'].append({
|
35
|
-
'term': {
|
36
|
-
'@id': 'inorganicNitrogenFertiliserUnspecifiedKgN'
|
37
|
-
},
|
38
|
-
'value': [100]
|
39
|
-
})
|
40
|
-
should_run, *args = _should_run(cycle)
|
41
|
-
assert should_run is True
|
42
|
-
|
43
|
-
|
19
|
+
@pytest.mark.parametrize('folder', _folders)
|
44
20
|
@patch(f"{class_path}.get_urea_terms", return_value=TERMS)
|
45
21
|
@patch(f"{class_path}._new_emission", side_effect=fake_new_emission)
|
46
|
-
def test_run(
|
47
|
-
with open(f"{fixtures_folder}/cycle.jsonld", encoding='utf-8') as f:
|
22
|
+
def test_run(mock_new_emission, mock_get_terms, folder):
|
23
|
+
with open(f"{fixtures_folder}/{folder}/cycle.jsonld", encoding='utf-8') as f:
|
48
24
|
cycle = json.load(f)
|
49
25
|
|
50
|
-
with open(f"{fixtures_folder}/result.jsonld", encoding='utf-8') as f:
|
26
|
+
with open(f"{fixtures_folder}/{folder}/result.jsonld", encoding='utf-8') as f:
|
51
27
|
expected = json.load(f)
|
52
28
|
|
53
29
|
value = run(cycle)
|
54
|
-
assert value == expected
|
30
|
+
assert value == expected, folder
|
File without changes
|
File without changes
|
File without changes
|