hestia-earth-models 0.50.0__py3-none-any.whl → 0.51.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of hestia-earth-models might be problematic. Click here for more details.
- hestia_earth/models/agribalyse2016/fuelElectricity.py +7 -4
- hestia_earth/models/agribalyse2016/machineryInfrastructureDepreciatedAmountPerCycle.py +14 -5
- hestia_earth/models/cycle/input/ecoinventV3.py +10 -2
- hestia_earth/models/cycle/input/hestiaAggregatedData.py +5 -2
- hestia_earth/models/emepEea2019/co2ToAirFuelCombustion.py +5 -2
- hestia_earth/models/emepEea2019/n2OToAirFuelCombustionDirect.py +5 -2
- hestia_earth/models/emepEea2019/nh3ToAirExcreta.py +10 -4
- hestia_earth/models/emepEea2019/noxToAirFuelCombustion.py +5 -2
- hestia_earth/models/emepEea2019/so2ToAirFuelCombustion.py +5 -2
- hestia_earth/models/emepEea2019/utils.py +22 -3
- hestia_earth/models/environmentalFootprintV3/{freshwaterEcotoxicityPotentialPaf.py → freshwaterEcotoxicityPotentialCtue.py} +2 -2
- hestia_earth/models/geospatialDatabase/aware.py +5 -4
- hestia_earth/models/geospatialDatabase/ecoregion.py +5 -4
- hestia_earth/models/geospatialDatabase/region.py +7 -11
- hestia_earth/models/geospatialDatabase/utils.py +39 -25
- hestia_earth/models/geospatialDatabase/waterDepth.py +5 -4
- hestia_earth/models/impact_assessment/__init__.py +3 -3
- hestia_earth/models/ipcc2019/ch4ToAirExcreta.py +4 -2
- hestia_earth/models/ipcc2019/croppingDuration.py +1 -1
- hestia_earth/models/ipcc2019/n2OToAirInorganicFertiliserIndirect.py +106 -0
- hestia_earth/models/ipcc2019/n2OToAirOrganicFertiliserIndirect.py +108 -0
- hestia_earth/models/ipcc2019/utils.py +37 -0
- hestia_earth/models/jarvisAndPain1994/__init__.py +13 -0
- hestia_earth/models/jarvisAndPain1994/n2ToAirExcreta.py +53 -0
- hestia_earth/models/koble2014/aboveGroundCropResidue.py +44 -21
- hestia_earth/models/koble2014/utils.py +5 -1
- hestia_earth/models/log.py +19 -0
- hestia_earth/models/mocking/search-results.json +301 -252
- hestia_earth/models/pooreNemecek2018/aboveGroundCropResidueTotal.py +15 -8
- hestia_earth/models/pooreNemecek2018/plantationProductiveLifespan.py +18 -6
- hestia_earth/models/pooreNemecek2018/rotationDuration.py +15 -5
- hestia_earth/models/pooreNemecek2018/utils.py +4 -2
- hestia_earth/models/schmidt2007/__init__.py +13 -0
- hestia_earth/models/schmidt2007/ch4ToAirWasteTreatment.py +60 -0
- hestia_earth/models/schmidt2007/utils.py +16 -0
- hestia_earth/models/transformation/input/excreta.py +4 -2
- hestia_earth/models/transformation/product/excreta.py +2 -2
- hestia_earth/models/usetoxV2/{freshwaterEcotoxicityPotentialPaf.py → freshwaterEcotoxicityPotentialCtue.py} +2 -2
- hestia_earth/models/utils/term.py +6 -0
- hestia_earth/models/version.py +1 -1
- {hestia_earth_models-0.50.0.dist-info → hestia_earth_models-0.51.1.dist-info}/METADATA +2 -2
- {hestia_earth_models-0.50.0.dist-info → hestia_earth_models-0.51.1.dist-info}/RECORD +58 -44
- tests/models/emepEea2019/test_utils.py +17 -3
- tests/models/environmentalFootprintV3/{test_freshwaterEcotoxicityPotentialPaf.py → test_freshwaterEcotoxicityPotentialCtue.py} +1 -1
- tests/models/geospatialDatabase/test_region.py +4 -5
- tests/models/geospatialDatabase/test_utils.py +10 -1
- tests/models/ipcc2019/test_n2OToAirInorganicFertiliserIndirect.py +48 -0
- tests/models/ipcc2019/test_n2OToAirOrganicFertiliserIndirect.py +48 -0
- tests/models/jarvisAndPain1994/__init__.py +0 -0
- tests/models/jarvisAndPain1994/test_n2ToAirExcreta.py +37 -0
- tests/models/koble2014/test_aboveGroundCropResidue.py +13 -0
- tests/models/schmidt2007/__init__.py +0 -0
- tests/models/schmidt2007/test_ch4ToAirWasteTreatment.py +45 -0
- tests/models/schmidt2007/test_utils.py +39 -0
- tests/models/usetoxV2/{test_freshwaterEcotoxicityPotentialPaf.py → test_freshwaterEcotoxicityPotentialCtue.py} +1 -1
- {hestia_earth_models-0.50.0.dist-info → hestia_earth_models-0.51.1.dist-info}/LICENSE +0 -0
- {hestia_earth_models-0.50.0.dist-info → hestia_earth_models-0.51.1.dist-info}/WHEEL +0 -0
- {hestia_earth_models-0.50.0.dist-info → hestia_earth_models-0.51.1.dist-info}/top_level.txt +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
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/log.py,sha256=
|
|
3
|
+
hestia_earth/models/log.py,sha256=kPLBOABkSiiAaPejXYvDJ9g6RbaXQXgtOZP2x9v_FwA,3008
|
|
4
4
|
hestia_earth/models/requirements.py,sha256=znNZJAhwX2iYiKcAQXPftY7z_1MsNa0QxCXkXyHm_U0,17363
|
|
5
|
-
hestia_earth/models/version.py,sha256=
|
|
5
|
+
hestia_earth/models/version.py,sha256=fRAhsretJm4iLEtE8CfsBZQk5ipiQBc4ay4SR7y7jKc,19
|
|
6
6
|
hestia_earth/models/agribalyse2016/__init__.py,sha256=WvK0qCQbnYtg9oZxrACd1wGormZyXibPtpCnIQeDqbw,415
|
|
7
|
-
hestia_earth/models/agribalyse2016/fuelElectricity.py,sha256=
|
|
8
|
-
hestia_earth/models/agribalyse2016/machineryInfrastructureDepreciatedAmountPerCycle.py,sha256=
|
|
7
|
+
hestia_earth/models/agribalyse2016/fuelElectricity.py,sha256=ORPd1nWPgKZAF0wtQ9M4ll8bKHElLMExWOdguEYPTaw,4532
|
|
8
|
+
hestia_earth/models/agribalyse2016/machineryInfrastructureDepreciatedAmountPerCycle.py,sha256=RjKJM64lHqTZ8L8K8ZftIhW2pOoWPjLIU4Xl1iqf8bw,3800
|
|
9
9
|
hestia_earth/models/akagiEtAl2011AndIpcc2006/__init__.py,sha256=WK7xQwUPX48JGqZeb2S2EKdtXuxMjY7HYyUFHItUqUo,425
|
|
10
10
|
hestia_earth/models/akagiEtAl2011AndIpcc2006/ch4ToAirCropResidueBurning.py,sha256=JUTkKB9EclLu7OkVQm2tTZpZF5vTTZl4HogaH_S4qrs,1779
|
|
11
11
|
hestia_earth/models/akagiEtAl2011AndIpcc2006/n2OToAirCropResidueBurningDirect.py,sha256=3LbL2CgE-SQM1VYpQYh3jqJ5pHTPsvRPFq-zN9251eE,1785
|
|
@@ -66,8 +66,8 @@ hestia_earth/models/cycle/feedConversionRatio/feedConversionRatioEnergy.py,sha25
|
|
|
66
66
|
hestia_earth/models/cycle/feedConversionRatio/feedConversionRatioFedWeight.py,sha256=sm-3WfM7xb4cRH8C4-HLkJm7jgEjzhPZvpe5VwY5djQ,1572
|
|
67
67
|
hestia_earth/models/cycle/feedConversionRatio/feedConversionRatioNitrogen.py,sha256=E4fz8n0JuRXhSqIsHs8ZXskB3i7uofxKZTwEo0QQRLk,1829
|
|
68
68
|
hestia_earth/models/cycle/input/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
69
|
-
hestia_earth/models/cycle/input/ecoinventV3.py,sha256=
|
|
70
|
-
hestia_earth/models/cycle/input/hestiaAggregatedData.py,sha256=
|
|
69
|
+
hestia_earth/models/cycle/input/ecoinventV3.py,sha256=Xl8Z9cYf0KgQHB6M6-cYaN2lxV29_y8Ij58c19RMfR4,5741
|
|
70
|
+
hestia_earth/models/cycle/input/hestiaAggregatedData.py,sha256=fcGhBizDpUc_s9Jw6YVrmruWDYidIJXpWLFxTAuhhiw,9039
|
|
71
71
|
hestia_earth/models/cycle/input/properties.py,sha256=gwQEJiPbED-tOL5GkxqZRnaaOFH3UK1E0KsqX4OkqAs,1965
|
|
72
72
|
hestia_earth/models/cycle/input/value.py,sha256=kolH9Fc5GIn9OVH2DgHEaW8ksS4xisy0LerS3WkKK9E,1550
|
|
73
73
|
hestia_earth/models/cycle/post_checks/__init__.py,sha256=qCf8zID6j1Dv2GhSHzz6ZEYcWUyh_N8cjrechi0zfOg,318
|
|
@@ -92,16 +92,16 @@ hestia_earth/models/data/ecoinventV3/__init__.py,sha256=oevyurRuioXy_CsQCtG-S_FX
|
|
|
92
92
|
hestia_earth/models/deRuijterEtAl2010/__init__.py,sha256=lbH6mB98dmZZlwdZctNYtEmVwAow957l80Dv7JSPDsI,418
|
|
93
93
|
hestia_earth/models/deRuijterEtAl2010/nh3ToAirCropResidueDecomposition.py,sha256=iFxOC7busuhdO2UOto49r-LeWzzFiYQPavMiflY00bU,3448
|
|
94
94
|
hestia_earth/models/emepEea2019/__init__.py,sha256=l90-pWrqIzt1ap1WNk0gF4iZeF5_TSG62hE83bIi4rQ,412
|
|
95
|
-
hestia_earth/models/emepEea2019/co2ToAirFuelCombustion.py,sha256=
|
|
96
|
-
hestia_earth/models/emepEea2019/n2OToAirFuelCombustionDirect.py,sha256=
|
|
97
|
-
hestia_earth/models/emepEea2019/nh3ToAirExcreta.py,sha256=
|
|
95
|
+
hestia_earth/models/emepEea2019/co2ToAirFuelCombustion.py,sha256=ULOUte7_o1vLKDQD2sq56B9MEzOL9r7Ib2j0g30DKHE,1746
|
|
96
|
+
hestia_earth/models/emepEea2019/n2OToAirFuelCombustionDirect.py,sha256=DTpvSamSWaJy6uTn3iqk5rgvUw8qUJ527fsyTzDlzW8,1753
|
|
97
|
+
hestia_earth/models/emepEea2019/nh3ToAirExcreta.py,sha256=EvvNA3Qme1PHnRMT2JcokEPebu_--BZ8HqmYW3hHXoM,3879
|
|
98
98
|
hestia_earth/models/emepEea2019/nh3ToAirInorganicFertiliser.py,sha256=GxIBiz1l5nyTd4_2txbQSsZPg_PJ9f9jlzCSHZwT6gI,6396
|
|
99
|
-
hestia_earth/models/emepEea2019/noxToAirFuelCombustion.py,sha256=
|
|
100
|
-
hestia_earth/models/emepEea2019/so2ToAirFuelCombustion.py,sha256
|
|
101
|
-
hestia_earth/models/emepEea2019/utils.py,sha256=
|
|
99
|
+
hestia_earth/models/emepEea2019/noxToAirFuelCombustion.py,sha256=3QFuWaRyvsIZC7Kd8L3sFNb081Zy3z1hnujNn0lPFP0,1746
|
|
100
|
+
hestia_earth/models/emepEea2019/so2ToAirFuelCombustion.py,sha256=Xg_z3xJkM2vfZzTXZck6F5DUvW6imDeHCksI_yJz1to,1746
|
|
101
|
+
hestia_earth/models/emepEea2019/utils.py,sha256=rwjH1ezlEdZ2GpVSN0fXItQ_0rgETXxzCtacfnZRCAg,1537
|
|
102
102
|
hestia_earth/models/emissionNotRelevant/__init__.py,sha256=nIuPIkQR1ghv_T_Ab4Ckq5wmGdWVmgbaOjhtKfIJ-WE,2183
|
|
103
103
|
hestia_earth/models/environmentalFootprintV3/__init__.py,sha256=lzg9qccwd9tbspw0lQ58YPprnvvSLTn3QV5T2-tPcC4,425
|
|
104
|
-
hestia_earth/models/environmentalFootprintV3/
|
|
104
|
+
hestia_earth/models/environmentalFootprintV3/freshwaterEcotoxicityPotentialCtue.py,sha256=E7xplLzmYxZOSAiHPWbuDJlQxLtftw8Cojry_eS-FLE,912
|
|
105
105
|
hestia_earth/models/epa2014/__init__.py,sha256=ckGf_6X7CCzI_18OqchEkuJAXKXM1x7V53u480ckknM,408
|
|
106
106
|
hestia_earth/models/epa2014/no3ToGroundwaterExcreta.py,sha256=QqJ3a6ksjeLV1m3vdrxjRUbWS6-KcH3He1sXKTJI61I,1986
|
|
107
107
|
hestia_earth/models/faostat2018/__init__.py,sha256=ecN-pKF1pkFnzmooBrg1VAxJkG76q9v4piiaKGP_vbo,412
|
|
@@ -116,12 +116,12 @@ hestia_earth/models/faostat2018/utils.py,sha256=Uc8KXYIwwS0YJjA16jm3_v1DHQaIQg8_
|
|
|
116
116
|
hestia_earth/models/faostat2018/product/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
117
117
|
hestia_earth/models/faostat2018/product/price.py,sha256=vE3rtICxjYqnQdYiUNuR0gyjbVjDuCGqrARUT1HILEA,8058
|
|
118
118
|
hestia_earth/models/geospatialDatabase/__init__.py,sha256=2Eh6-hjX812Uuf8nxYnC50uXE6uv_8ofFK8iVMwihXA,419
|
|
119
|
-
hestia_earth/models/geospatialDatabase/aware.py,sha256=
|
|
119
|
+
hestia_earth/models/geospatialDatabase/aware.py,sha256=eyWhTuDaXbJqsGMbHMLBf_7CaV21w2pay3c4eC5JAc0,1377
|
|
120
120
|
hestia_earth/models/geospatialDatabase/clayContent.py,sha256=SAlHW1TMhOz9S4iUASlC9htuSlydINgk22hXW-v4UDU,2286
|
|
121
121
|
hestia_earth/models/geospatialDatabase/croppingIntensity.py,sha256=x2uPKe44w-vgyWcx_pZiK_MEOan9WWlxSuhsysGC8rg,2011
|
|
122
122
|
hestia_earth/models/geospatialDatabase/drainageClass.py,sha256=XnzamiydO3Xk1eJo8d2ddqz23AX-78kE0sOT8Gg9HnM,2117
|
|
123
123
|
hestia_earth/models/geospatialDatabase/ecoClimateZone.py,sha256=Go447ubRKm5SiPeinwgMiJ7LKO5_NHV_n6LLosBS8FI,3847
|
|
124
|
-
hestia_earth/models/geospatialDatabase/ecoregion.py,sha256=
|
|
124
|
+
hestia_earth/models/geospatialDatabase/ecoregion.py,sha256=Ro8AXoRkGt8v6FxMdzFsSEU7rEX0oPBSicXr8PHmqvI,1613
|
|
125
125
|
hestia_earth/models/geospatialDatabase/erodibility.py,sha256=kTYRrqG7G9qaGkSEewyc0Zv_JVsqs404Vz3B7zl_Kaw,2071
|
|
126
126
|
hestia_earth/models/geospatialDatabase/heavyWinterPrecipitation.py,sha256=DTBYosgttThxzRvuEdoH-9qnFRak-NYAMkojhIN8_NY,2168
|
|
127
127
|
hestia_earth/models/geospatialDatabase/histosol.py,sha256=99u2Dd2kgXUmgCZ-1L24CZYT8o2kXN-EgL5O3yXVnkc,2486
|
|
@@ -132,7 +132,7 @@ hestia_earth/models/geospatialDatabase/potentialEvapotranspirationAnnual.py,sha2
|
|
|
132
132
|
hestia_earth/models/geospatialDatabase/potentialEvapotranspirationLongTermAnnualMean.py,sha256=ak6iiDS7Ww_eWeLI0msirMi0Yk6cCbyc52hX30wmOGQ,2375
|
|
133
133
|
hestia_earth/models/geospatialDatabase/precipitationAnnual.py,sha256=uGtwEDDzUE4fDR9aA9OjzKWkUBXjubxFS5Nd6bGKTzg,3543
|
|
134
134
|
hestia_earth/models/geospatialDatabase/precipitationLongTermAnnualMean.py,sha256=s52m8Fhm3yQbYaHYyIRqyqLSB9yqV6oVz1jD2dtAhHA,2542
|
|
135
|
-
hestia_earth/models/geospatialDatabase/region.py,sha256=
|
|
135
|
+
hestia_earth/models/geospatialDatabase/region.py,sha256=_ygDmdzg_6p-Q_6-3gBQGA7oXUjN_-CLC43tZZw9hNo,1820
|
|
136
136
|
hestia_earth/models/geospatialDatabase/sandContent.py,sha256=6eH0WcQReUyHySf6AHVBwwgCHC3gYdTV7ZoAxBI_Zdo,2286
|
|
137
137
|
hestia_earth/models/geospatialDatabase/siltContent.py,sha256=min1ig_H2tgagNUOuMf_iH3NGhtT5v1vL36SA5ppYt4,2208
|
|
138
138
|
hestia_earth/models/geospatialDatabase/slope.py,sha256=eZkFFdqvwZ11nl3WzRlCOdR171OQPyHHiCCo0esIJcQ,2087
|
|
@@ -142,8 +142,8 @@ hestia_earth/models/geospatialDatabase/temperatureAnnual.py,sha256=cWFqmGLZNPdQa
|
|
|
142
142
|
hestia_earth/models/geospatialDatabase/temperatureLongTermAnnualMean.py,sha256=lHYKGV6IasvyUbhWjaWODzHvxuP5broOY3sAv5Ry1ZY,2417
|
|
143
143
|
hestia_earth/models/geospatialDatabase/totalNitrogenPerKgSoil.py,sha256=9GQT8Q1ci9n1IIpIMYETdEoJe33ax0qwgXJTsVTGvT4,2237
|
|
144
144
|
hestia_earth/models/geospatialDatabase/totalPhosphorusPerKgSoil.py,sha256=4eWK4zBmHbAL1cFZlo7qLXKMF0E_K2sdF69EZa0CTDY,2226
|
|
145
|
-
hestia_earth/models/geospatialDatabase/utils.py,sha256=
|
|
146
|
-
hestia_earth/models/geospatialDatabase/waterDepth.py,sha256=
|
|
145
|
+
hestia_earth/models/geospatialDatabase/utils.py,sha256=Xo-LlF1xrudiWkcE08RYRmICQLi0yW-Wdol2qujgQ-E,7240
|
|
146
|
+
hestia_earth/models/geospatialDatabase/waterDepth.py,sha256=4syF-tQQAd2ygOrZmbe2lncCEpRvDU32HlueFqYE7kI,1958
|
|
147
147
|
hestia_earth/models/globalCropWaterModel2008/__init__.py,sha256=vQxexzFCl2Uv2RiIJfcppkRi9RgzBsJ68yhVDK4GvAU,425
|
|
148
148
|
hestia_earth/models/globalCropWaterModel2008/rootingDepth.py,sha256=k6UeqX-JyXKdB6qcEzKUl2UzSOlX8sH1nnPf9LhtKWY,4254
|
|
149
149
|
hestia_earth/models/haversineFormula/__init__.py,sha256=o155nR-XI67iCSBVNYIu4sPRIF3C2Y1NnUZ6lfpi0Do,417
|
|
@@ -159,7 +159,7 @@ hestia_earth/models/hyde32/landTransformationFromOtherNaturalVegetation20YearAve
|
|
|
159
159
|
hestia_earth/models/hyde32/landTransformationFromPermanentPasture100YearAverageDuringCycle.py,sha256=0E6UtW0DpyB6nCFioekbCBvZu10F7LtvyOxbWRPL5oY,2417
|
|
160
160
|
hestia_earth/models/hyde32/landTransformationFromPermanentPasture20YearAverageDuringCycle.py,sha256=khH8zdALTeaCaIDK6L-3OexD03I7MB8vA_mBOSkwe1M,2408
|
|
161
161
|
hestia_earth/models/hyde32/utils.py,sha256=j9QavyBZIQ-ZCNjdPLWjOjg2LrxcNlanQ1wPnT0IKX8,3098
|
|
162
|
-
hestia_earth/models/impact_assessment/__init__.py,sha256=
|
|
162
|
+
hestia_earth/models/impact_assessment/__init__.py,sha256=gTR_PhWps593fPhm-V826VLLrZVH8CNQTqxExB7GGNI,418
|
|
163
163
|
hestia_earth/models/impact_assessment/emissions.py,sha256=XcHTqyPAZeCz7qPTD8VvccmYMYROqBGrR0zJNpZtmvM,3413
|
|
164
164
|
hestia_earth/models/impact_assessment/freshwaterWithdrawalsDuringCycle.py,sha256=ljh9vou6jJzNjWCtdLsvozx2S1K9cQvWVxifk6mMWso,3952
|
|
165
165
|
hestia_earth/models/impact_assessment/freshwaterWithdrawalsInputsProduction.py,sha256=DSLX_aEWaUFcFZRD46bG5lIQ4TtAtIqH-sMkVCJH2Dg,990
|
|
@@ -206,29 +206,33 @@ hestia_earth/models/ipcc2019/__init__.py,sha256=LdRpu8KbEc-MroIwXfKDjfj-xbgmfUYg
|
|
|
206
206
|
hestia_earth/models/ipcc2019/aboveGroundCropResidueTotal.py,sha256=wTQNd81-jBljT_caHRHOcZWam8vbWarznT4KOnfkQ48,3028
|
|
207
207
|
hestia_earth/models/ipcc2019/belowGroundCropResidue.py,sha256=gi1RJHTKxVrpWN6D82YNnDp1YRnYOzSfPr15rcn3q4s,3233
|
|
208
208
|
hestia_earth/models/ipcc2019/ch4ToAirEntericFermentation.py,sha256=Kk_QNMqZtmJpNWZvCqJYVddn0833x3zwT3Pa5KZVBdE,7281
|
|
209
|
-
hestia_earth/models/ipcc2019/ch4ToAirExcreta.py,sha256=
|
|
209
|
+
hestia_earth/models/ipcc2019/ch4ToAirExcreta.py,sha256=nw95VfIRhfn7zH9wfZxafVLwnV4U5B0bb0wBW1BtqvQ,7055
|
|
210
210
|
hestia_earth/models/ipcc2019/ch4ToAirFloodedRice.py,sha256=VyF9Z_xtbJXslRk2XDlhivN5f5fpDNF6JChsRcJ21uU,6481
|
|
211
211
|
hestia_earth/models/ipcc2019/co2ToAirLimeHydrolysis.py,sha256=Q9CGcD1PizZJQ2qdeBQJXn3P_oIpAdbnn02re8HP0D4,2580
|
|
212
212
|
hestia_earth/models/ipcc2019/co2ToAirUreaHydrolysis.py,sha256=2CnBlsD10wIbG66Amv4S-1QT5MRVNQGrAG2iN-ZH8o8,3819
|
|
213
|
-
hestia_earth/models/ipcc2019/croppingDuration.py,sha256=
|
|
213
|
+
hestia_earth/models/ipcc2019/croppingDuration.py,sha256=3aphCnu9jtzUJeCEcC2hY_gY66DliTDhP4zPQ-DAR6E,2983
|
|
214
214
|
hestia_earth/models/ipcc2019/n2OToAirCropResidueDecompositionDirect.py,sha256=hUGujoGptR8rVjCPucebsFZtmXQrE6m-iZjon4YJrwY,4758
|
|
215
215
|
hestia_earth/models/ipcc2019/n2OToAirExcretaDirect.py,sha256=gB1NbBKkUQyIFwjy4p8YYJxEEEW35QYWBVhNLduhaJ0,1984
|
|
216
|
+
hestia_earth/models/ipcc2019/n2OToAirInorganicFertiliserIndirect.py,sha256=SRGuWskW6Hn7oRYyozixtnCNtwlRWLD0rOZU7naHEHA,4118
|
|
217
|
+
hestia_earth/models/ipcc2019/n2OToAirOrganicFertiliserIndirect.py,sha256=ufj7cBqHtJiSY4v8txOHVx9Ad7TbnLO4J49Wc5UWCEc,4117
|
|
216
218
|
hestia_earth/models/ipcc2019/nitrogenContent.py,sha256=5LISfKnCtRm5JE3va3F6CU0bshnFpgSAuzmjH0zpev0,6452
|
|
217
219
|
hestia_earth/models/ipcc2019/no3ToGroundwaterCropResidueDecomposition.py,sha256=3JOQANIy4rDsFTWBy6pOzJ2NRdAiAL-x--C87gBIZQw,3603
|
|
218
220
|
hestia_earth/models/ipcc2019/no3ToGroundwaterExcreta.py,sha256=WNfaopS9canZs5zePdijfD2HzTTYfqD1hiainuVfwmk,3004
|
|
219
221
|
hestia_earth/models/ipcc2019/no3ToGroundwaterInorganicFertiliser.py,sha256=X2WPGOiWi_1cQ5yiyjfrBU_rAm3EDsm4WnRJi8ea6g8,3007
|
|
220
222
|
hestia_earth/models/ipcc2019/no3ToGroundwaterOrganicFertiliser.py,sha256=Q6XLA-yUEJFQCrk1N4Tq2DiMSACI7XnsW_Mn595V1as,3102
|
|
221
223
|
hestia_earth/models/ipcc2019/pastureGrass.py,sha256=2WOHlPFprpvDsZguPAlRqJi-oPftXTMUAKkGwYXAH-c,21747
|
|
222
|
-
hestia_earth/models/ipcc2019/utils.py,sha256
|
|
224
|
+
hestia_earth/models/ipcc2019/utils.py,sha256=-7cJc0IdeqfqdAaDMtDyTEv9Ao5SzY9WzYNFNoziUfs,2880
|
|
223
225
|
hestia_earth/models/ipcc2021/__init__.py,sha256=VTgGFKhwMmk_nuI1RRq0in27fHYVPBonlXlPK00K8no,409
|
|
224
226
|
hestia_earth/models/ipcc2021/gwp100.py,sha256=HEV4Misbe5h99qCqZeCaKNTs4FkFWmv6RdCty_U2pps,947
|
|
227
|
+
hestia_earth/models/jarvisAndPain1994/__init__.py,sha256=ercUwy29sV7oPIESj8UjsGB5lqiBCss9OZcbjxeeG8E,418
|
|
228
|
+
hestia_earth/models/jarvisAndPain1994/n2ToAirExcreta.py,sha256=QY605kIRIOplMtb9hUP3or68p30YwhxLXIlYZG7kGyw,1588
|
|
225
229
|
hestia_earth/models/koble2014/__init__.py,sha256=jRciLONEhGHtMLu2rlWXEEVwcJqA-URsfH1cCt-Qti4,410
|
|
226
|
-
hestia_earth/models/koble2014/aboveGroundCropResidue.py,sha256=
|
|
230
|
+
hestia_earth/models/koble2014/aboveGroundCropResidue.py,sha256=5jjWPo6feJxJiF3PspbNT7BwuDVXPRaAbFIso_LyuGQ,6516
|
|
227
231
|
hestia_earth/models/koble2014/cropResidueManagement.py,sha256=22guAEe6pyi7SS6pswz3H3lMzfygefB1Mlg3aL2k6PQ,2973
|
|
228
232
|
hestia_earth/models/koble2014/residueBurnt.py,sha256=eKvzC4HOj8t7c2-50guVhqQMapTuxcHNBB-_zElHILY,2285
|
|
229
233
|
hestia_earth/models/koble2014/residueLeftOnField.py,sha256=R3D6-21Za9CylMVFWePSUywL55d7n9ohlBHAJyXAwA4,421
|
|
230
234
|
hestia_earth/models/koble2014/residueRemoved.py,sha256=NqYXLr5Te7m6EcGMJOEeXTB_DDMFKoJslJuiTIQ16RM,2035
|
|
231
|
-
hestia_earth/models/koble2014/utils.py,sha256=
|
|
235
|
+
hestia_earth/models/koble2014/utils.py,sha256=O0-6kZdUxo6pprIC1DmeS6BvlCTOHrWhkmIfepG5thk,2238
|
|
232
236
|
hestia_earth/models/lcImpactAllEffects100Years/__init__.py,sha256=Z15q1K369kIkH4JC3X2mN0PdNHhUn6dscug6g4DvAxc,427
|
|
233
237
|
hestia_earth/models/lcImpactAllEffects100Years/damageToFreshwaterEcosystemsClimateChange.py,sha256=xKph9CTpqOwr0Ht5BiQouwOVek6z0Y13G5ZCgUNjo6c,1038
|
|
234
238
|
hestia_earth/models/lcImpactAllEffects100Years/damageToFreshwaterEcosystemsFreshwaterEcotoxicity.py,sha256=0oZr_tW-uIwQ8VR-ac5OPmjNSJ-915m20ICkW74tcQk,953
|
|
@@ -318,9 +322,9 @@ hestia_earth/models/lcImpactCertainEffectsInfinite/damageToTerrestrialEcosystems
|
|
|
318
322
|
hestia_earth/models/linkedImpactAssessment/__init__.py,sha256=x6xsPu-Rwh-7HKsvHuKmgM1YML6fQy2z9Hsy9_BeO2Y,3565
|
|
319
323
|
hestia_earth/models/mocking/__init__.py,sha256=Y39V6yj_3M1q8v9ShCHwPeJOstypOVIvb_FldMEbF7g,766
|
|
320
324
|
hestia_earth/models/mocking/mock_search.py,sha256=ysPhzvMGvsHKqQXKRFi8ZqohcnyKutBlNqT_j0OH8L4,1983
|
|
321
|
-
hestia_earth/models/mocking/search-results.json,sha256=
|
|
325
|
+
hestia_earth/models/mocking/search-results.json,sha256=q72dDdhGkTMmnsh6M66k_DWAbgSsqLlpNav0dDzf6-I,32960
|
|
322
326
|
hestia_earth/models/pooreNemecek2018/__init__.py,sha256=nPboL7ULJzL5nJD5q7q9VOZt_fxbKVm8fmn1Az5YkVY,417
|
|
323
|
-
hestia_earth/models/pooreNemecek2018/aboveGroundCropResidueTotal.py,sha256=
|
|
327
|
+
hestia_earth/models/pooreNemecek2018/aboveGroundCropResidueTotal.py,sha256=wywl3QelciXV9hITH7eJ7xqkrD7N9qOsFMkC23I7Pgs,2530
|
|
324
328
|
hestia_earth/models/pooreNemecek2018/belowGroundCropResidue.py,sha256=txjMrM6Q2g5Qsq6HhAL-IpMMLOj37wlWD2KnovyEWvw,2205
|
|
325
329
|
hestia_earth/models/pooreNemecek2018/ch4ToAirAquacultureSystems.py,sha256=aFGXvqP6AM-hgkQvyRTCwdphv9UsfsRtn68YkuDODXY,6727
|
|
326
330
|
hestia_earth/models/pooreNemecek2018/excretaKgN.py,sha256=iDZ9Ge9VfulLvlVT44_bYAGC-xEUDucLtkrjKbGAfiQ,5622
|
|
@@ -340,10 +344,10 @@ hestia_earth/models/pooreNemecek2018/nurseryDensity.py,sha256=3WXYo4Ul0rinbDGEjK
|
|
|
340
344
|
hestia_earth/models/pooreNemecek2018/nurseryDuration.py,sha256=putyxvfKICmXQENzZJuEEFLKlc_6EeyusLCCVK7I6Oo,1180
|
|
341
345
|
hestia_earth/models/pooreNemecek2018/plantationDensity.py,sha256=FQU_Sp41G6Ied6NzYNJjXJtZl0RaHnXXJ1do6EkERJQ,1184
|
|
342
346
|
hestia_earth/models/pooreNemecek2018/plantationLifespan.py,sha256=QvQvl1MB4kfX3lGyWnAMA_x4U_1UvqR-6ddZ074xMHI,1186
|
|
343
|
-
hestia_earth/models/pooreNemecek2018/plantationProductiveLifespan.py,sha256=
|
|
344
|
-
hestia_earth/models/pooreNemecek2018/rotationDuration.py,sha256=
|
|
347
|
+
hestia_earth/models/pooreNemecek2018/plantationProductiveLifespan.py,sha256=LKmepEVboOVb8idOVu5od6A6l3J1bZ8mYNfBl1P6PUs,1967
|
|
348
|
+
hestia_earth/models/pooreNemecek2018/rotationDuration.py,sha256=7QBTYKSMHSxD69Vz6snxkS4d_18AiwZcXBn-WVwJ5HE,1678
|
|
345
349
|
hestia_earth/models/pooreNemecek2018/saplings.py,sha256=b_U-nMMUUQgrhproNywH-tqek2J2DepyFbFmog8PKM4,1813
|
|
346
|
-
hestia_earth/models/pooreNemecek2018/utils.py,sha256=
|
|
350
|
+
hestia_earth/models/pooreNemecek2018/utils.py,sha256=5W9ILIE2np_UiiafZ4miEGCQeqat8pgfPhdaA38RiD0,917
|
|
347
351
|
hestia_earth/models/recipe2016Egalitarian/__init__.py,sha256=OvZoSgfaMe6DWIdqr-Sx3ouzXlp994oro7Mi0Xid18Q,422
|
|
348
352
|
hestia_earth/models/recipe2016Egalitarian/damageToFreshwaterEcosystemsSpeciesYear.py,sha256=b1UZAsy3yGlHYxH2YhBhhSnjm5zzQl8Z32DcQBjgWNE,1123
|
|
349
353
|
hestia_earth/models/recipe2016Egalitarian/damageToHumanHealth.py,sha256=dJ8WinGe52wFQCMKtT_B7c1MFM_GbBo8aqfw0n2pw94,1087
|
|
@@ -405,6 +409,9 @@ hestia_earth/models/schererPfister2015/pToDrainageWaterSoilFlux.py,sha256=XzzyoQ
|
|
|
405
409
|
hestia_earth/models/schererPfister2015/pToGroundwaterSoilFlux.py,sha256=Gt3YdTCu7uGz4rugpGza6H0XkCU7hs3rk1UYKDVkfPg,2109
|
|
406
410
|
hestia_earth/models/schererPfister2015/pToSurfaceWaterSoilFlux.py,sha256=bzgtCAtX0D5cRqoL24Ukg2IDr00Up7Ji4m1QQ9fJ-9w,2741
|
|
407
411
|
hestia_earth/models/schererPfister2015/utils.py,sha256=LEvz9guqto0kuF5rXcQjgYsD3CvEmORvJQqRA1f7uMI,3130
|
|
412
|
+
hestia_earth/models/schmidt2007/__init__.py,sha256=xheSN6LOGXpWx7Hnv83onhe60Xk1_jk1PJg1nH_aZOQ,412
|
|
413
|
+
hestia_earth/models/schmidt2007/ch4ToAirWasteTreatment.py,sha256=GG9rXb3a1aa3Svs80cFo16M_E4MvlfQ0UonfZMR7MQo,1611
|
|
414
|
+
hestia_earth/models/schmidt2007/utils.py,sha256=NGG5iJI5F1PFSscW2u2Z4clj6UFXVfCewqRnXB5Pv48,815
|
|
408
415
|
hestia_earth/models/site/__init__.py,sha256=aVuLLhq0OQVm-_MZoq4JAKMidqexUWJBg_7mmojmDzc,405
|
|
409
416
|
hestia_earth/models/site/cationExchangeCapacityPerKgSoil.py,sha256=kQWABi_TWOYKgAkBnMEc0O1VgNOSbJuNkLaeNFMzeEI,3693
|
|
410
417
|
hestia_earth/models/site/flowingWater.py,sha256=ZPeXd2tNYgG24kYOGQZM9lrUzCi9nZsabvHJsaH0hy4,1796
|
|
@@ -446,7 +453,7 @@ hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirOrganicFertilis
|
|
|
446
453
|
hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirSoilFlux.py,sha256=qXCOd5G_ucpTeDXRcf0sO9plfp3SDLlWVJzSgx32WV8,3472
|
|
447
454
|
hestia_earth/models/transformation/__init__.py,sha256=63Y_fXFBn4sX2l7F0hMsWkgIvxk5Tw9XoDBQr6bUBQQ,352
|
|
448
455
|
hestia_earth/models/transformation/input/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
449
|
-
hestia_earth/models/transformation/input/excreta.py,sha256=
|
|
456
|
+
hestia_earth/models/transformation/input/excreta.py,sha256=cuUlM3QwrTDu2WdPflkELDjLbSu-mB6TX620T1xPyu8,4231
|
|
450
457
|
hestia_earth/models/transformation/input/max.py,sha256=epoVopKlKl7epxwz-iLTfmnCHBjmOhiBMhGEQB8-LtU,1574
|
|
451
458
|
hestia_earth/models/transformation/input/min.py,sha256=E3o7Fpoyx-DVrFk_QzQrs24kwvCX9Ylb4mvCoUOwtcw,1574
|
|
452
459
|
hestia_earth/models/transformation/input/properties.py,sha256=tIWhpYDzywATe3_NAMQhrL0hMFeeRHnpZWmLcRsJP8Q,2294
|
|
@@ -454,9 +461,9 @@ hestia_earth/models/transformation/input/sd.py,sha256=swYhIZZOHES1cci05f09zsPK4k
|
|
|
454
461
|
hestia_earth/models/transformation/input/utils.py,sha256=ViF3thUJ7-upGUTmpFWFJZc9AO0H_-57cQChck89OLo,1302
|
|
455
462
|
hestia_earth/models/transformation/input/value.py,sha256=mU6Cs4E0RDNkhMQmXoQHn2Qn_YwU3zLQ-M4RXkI83YI,1586
|
|
456
463
|
hestia_earth/models/transformation/product/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
457
|
-
hestia_earth/models/transformation/product/excreta.py,sha256=
|
|
464
|
+
hestia_earth/models/transformation/product/excreta.py,sha256=5ar-oNm7Plb1zIttVjnx4WSpTdjFW3UcIENtK6wpEic,5652
|
|
458
465
|
hestia_earth/models/usetoxV2/__init__.py,sha256=pK37V3H-KvYcvRKw4Mv8CWrB2N0LFLzmv0jKLdhGGqs,409
|
|
459
|
-
hestia_earth/models/usetoxV2/
|
|
466
|
+
hestia_earth/models/usetoxV2/freshwaterEcotoxicityPotentialCtue.py,sha256=dYGz7r2tQHHpb0NnrYzl2hjmYdLKqxJ3euOIDh_q2iM,912
|
|
460
467
|
hestia_earth/models/utils/__init__.py,sha256=gbP_MsejrnTFbWoympqK8swgIistKdY-GCIUegfiiik,4160
|
|
461
468
|
hestia_earth/models/utils/animalProduct.py,sha256=JA-xGQiwsz-VPR_8UfI5hKa918bpQOWIok3--b_iVuM,681
|
|
462
469
|
hestia_earth/models/utils/aquacultureManagement.py,sha256=3uSTSMDNNPa26NTJGZCYwByv3QZVyxj6bh2aFCoBzHk,126
|
|
@@ -484,7 +491,7 @@ hestia_earth/models/utils/productivity.py,sha256=bUBVCZInGqHuHZvHDSYPQkjWXQxOtTj
|
|
|
484
491
|
hestia_earth/models/utils/property.py,sha256=6JiELxqqs9sqFPv-xQHewdtmalJHhk61t09b57UiHAY,4469
|
|
485
492
|
hestia_earth/models/utils/site.py,sha256=Nxf4_ANN1_QcxQEwlaL1tFyR-lDUypOBezBJcGmztL4,2725
|
|
486
493
|
hestia_earth/models/utils/temperature.py,sha256=ljlG4-yCgFFb6LRZweb18cZKLrr7K2mqd4E4Hz_D1f8,476
|
|
487
|
-
hestia_earth/models/utils/term.py,sha256=
|
|
494
|
+
hestia_earth/models/utils/term.py,sha256=Qkc2UodF6Ok4i8odL9ynjtqKdu4r5dbeJn3PNEoz4eA,12291
|
|
488
495
|
hestia_earth/models/utils/transformation.py,sha256=nyT5Mz4_VgFwhkL8JoNX9kxxow0zuxzsYl3W8xOu2p0,370
|
|
489
496
|
hestia_earth/models/webbEtAl2012AndSintermannEtAl2012/__init__.py,sha256=Niv7ZFMBCwThlbCKGOwA17QdkpOUDFrqrFItGNqnZAA,434
|
|
490
497
|
hestia_earth/models/webbEtAl2012AndSintermannEtAl2012/nh3ToAirOrganicFertiliser.py,sha256=fcqomqaWp4BNh937FdC5M-WrhBovtoH-pdUlCnkz7TU,4061
|
|
@@ -580,9 +587,9 @@ tests/models/emepEea2019/test_nh3ToAirExcreta.py,sha256=VtZFVWaHjqlxdge1Qir-OghN
|
|
|
580
587
|
tests/models/emepEea2019/test_nh3ToAirInorganicFertiliser.py,sha256=tIaekBTAeiaXPRBaYrogKsxlDcEbcX3MlIZMjSqea4o,1674
|
|
581
588
|
tests/models/emepEea2019/test_noxToAirFuelCombustion.py,sha256=drCeoaGo6Ag3fdEDDSC3D880OXxzillzHk7rPYcVwmE,1450
|
|
582
589
|
tests/models/emepEea2019/test_so2ToAirFuelCombustion.py,sha256=CNaT_z02DHDpBJ2IIkG0K7ra87WBg_iDkhx9QGAjk00,1450
|
|
583
|
-
tests/models/emepEea2019/test_utils.py,sha256=
|
|
590
|
+
tests/models/emepEea2019/test_utils.py,sha256=8izzxUtam9703-MnN6F-Wi0byRitMSidCx9aX7_ktL4,1968
|
|
584
591
|
tests/models/environmentalFootprintV3/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
585
|
-
tests/models/environmentalFootprintV3/
|
|
592
|
+
tests/models/environmentalFootprintV3/test_freshwaterEcotoxicityPotentialCtue.py,sha256=lIgsdGh_0eDi-rPcCOrSSjVYNiET2GCSRkAHdugAkDk,851
|
|
586
593
|
tests/models/epa2014/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
587
594
|
tests/models/epa2014/test_no3ToGroundwaterExcreta.py,sha256=ESVz4UURvQfhjGBTxjuAV_bymMBcvGNfLAkYMvNup9U,1217
|
|
588
595
|
tests/models/faostat2018/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -612,7 +619,7 @@ tests/models/geospatialDatabase/test_potentialEvapotranspirationAnnual.py,sha256
|
|
|
612
619
|
tests/models/geospatialDatabase/test_potentialEvapotranspirationLongTermAnnualMean.py,sha256=6jn2TsDRvLtmwMdepYOIo23UqGeh-fTDPiOsp4ZZbt0,1072
|
|
613
620
|
tests/models/geospatialDatabase/test_precipitationAnnual.py,sha256=wKNON8808fSb0RZuO1h9nsflnIysaX_o7yGB_x_nkJU,832
|
|
614
621
|
tests/models/geospatialDatabase/test_precipitationLongTermAnnualMean.py,sha256=9WHknL9o5lYxXHMViF_tAmdOYtRDPVrP7Z94tXE8EwY,1050
|
|
615
|
-
tests/models/geospatialDatabase/test_region.py,sha256=
|
|
622
|
+
tests/models/geospatialDatabase/test_region.py,sha256=_VZ9aWZEpgbwLh_E739TkLoTthtcWmMpyX2ssD2b6dk,884
|
|
616
623
|
tests/models/geospatialDatabase/test_sandContent.py,sha256=LZUr8t0il1naqP8U4-XlfQE9luiJgcugXDkVfgj-smI,1030
|
|
617
624
|
tests/models/geospatialDatabase/test_siltContent.py,sha256=STUpMTN0iQRUyDY1EMd3WA6Rqt9rRzDG10g7z_IvXi0,1072
|
|
618
625
|
tests/models/geospatialDatabase/test_slope.py,sha256=DHCbds1jPqELVLhZ0pzXOzvEzveUxIP9fQEibyqzOuU,1024
|
|
@@ -622,7 +629,7 @@ tests/models/geospatialDatabase/test_temperatureAnnual.py,sha256=tRaptqQAQthYraF
|
|
|
622
629
|
tests/models/geospatialDatabase/test_temperatureLongTermAnnualMean.py,sha256=JhgAgCzkEImg0Tsdq6bio27xOr0ph29xhB1cQLsEVEY,1048
|
|
623
630
|
tests/models/geospatialDatabase/test_totalNitrogenPerKgSoil.py,sha256=qIzj4gd6ERW87ho03Kl9X6_Rm3pE5RdGo6V1zvkyFTE,1041
|
|
624
631
|
tests/models/geospatialDatabase/test_totalPhosphorusPerKgSoil.py,sha256=VmzuP_MdX8__LSlGbQ2wDswtYIcuDDNJuxfEj4BvvuI,1043
|
|
625
|
-
tests/models/geospatialDatabase/test_utils.py,sha256=
|
|
632
|
+
tests/models/geospatialDatabase/test_utils.py,sha256=z6kZu-XtxZ_9gmc_Ck3yhlglIn75WNlbjhpZY6zZaXw,558
|
|
626
633
|
tests/models/geospatialDatabase/test_waterDepth.py,sha256=AoCKQBcuNURfR12bHrXALjrK3Wzo5nu4fe5KNJuDfFM,1023
|
|
627
634
|
tests/models/globalCropWaterModel2008/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
628
635
|
tests/models/globalCropWaterModel2008/test_rootingDepth.py,sha256=dyhojeVM9ge1XOuuiUVSkNeLy--A2xW81hqGELNvEWY,2468
|
|
@@ -692,6 +699,8 @@ tests/models/ipcc2019/test_co2ToAirUreaHydrolysis.py,sha256=MmtEME0xjsa3KojFk_fx
|
|
|
692
699
|
tests/models/ipcc2019/test_croppingDuration.py,sha256=gLRXeR6Tqa7ciD9KTRfsIflSeIIWT2iOpZMdcxAQla4,1871
|
|
693
700
|
tests/models/ipcc2019/test_n2OToAirCropResidueDecompositionDirect.py,sha256=PW-FvpX4KD-X2wMhR9o6c_FVaR7xAd1YSinNPsap6fY,2015
|
|
694
701
|
tests/models/ipcc2019/test_n2OToAirExcretaDirect.py,sha256=JYvBK4edcqfHrMPwgBFXF6km51ew9RISUcfQ_RNf2RY,1216
|
|
702
|
+
tests/models/ipcc2019/test_n2OToAirInorganicFertiliserIndirect.py,sha256=X61AE9Eb0Lqwy4AkfKKaHKU-p4C5JZIo326t8BT6ALs,1613
|
|
703
|
+
tests/models/ipcc2019/test_n2OToAirOrganicFertiliserIndirect.py,sha256=cPXdknWmXJig9i_AR19oX4g3GjTcEo8455DsD2w8M10,1609
|
|
695
704
|
tests/models/ipcc2019/test_nitrogenContent.py,sha256=vCAg9hgFAnXaNst92VZYMsd-gZOxzGZlCOmv1sMSRgo,3592
|
|
696
705
|
tests/models/ipcc2019/test_no3ToGroundwaterCropResidueDecomposition.py,sha256=l9LRPS2ReB1c-cmClef86LWL6FmURvDxUXAzMbKFJis,1624
|
|
697
706
|
tests/models/ipcc2019/test_no3ToGroundwaterExcreta.py,sha256=Z-pCBQvlUf0ttmCERgezW-6e3KlX45YEVccOwthf5lU,1588
|
|
@@ -700,8 +709,10 @@ tests/models/ipcc2019/test_no3ToGroundwaterOrganicFertiliser.py,sha256=e1ZViD12q
|
|
|
700
709
|
tests/models/ipcc2019/test_pastureGrass.py,sha256=fs_og0NM_XiJuFgL8UXegjOvKj7bL2koxXeOionbebs,1912
|
|
701
710
|
tests/models/ipcc2021/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
702
711
|
tests/models/ipcc2021/test_gwp100.py,sha256=r3pDw_TUcOrNlNRWtFAN3CBWfG5FCkHExypVqg0sZVk,857
|
|
712
|
+
tests/models/jarvisAndPain1994/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
713
|
+
tests/models/jarvisAndPain1994/test_n2ToAirExcreta.py,sha256=aMCuR9fmGDmum7VqLb1oBOsTCjBz5O9XQn2DWtP8HVM,1057
|
|
703
714
|
tests/models/koble2014/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
704
|
-
tests/models/koble2014/test_aboveGroundCropResidue.py,sha256=
|
|
715
|
+
tests/models/koble2014/test_aboveGroundCropResidue.py,sha256=ZqBQK3_Z5PA0__Dgz_chPi7TtrWND8-9LjL0Px-zHEw,1635
|
|
705
716
|
tests/models/koble2014/test_cropResidueManagement.py,sha256=QwmMcVpOoW7Pedowldd0GFdnvE6lesGEfWGGMO2TQbQ,621
|
|
706
717
|
tests/models/koble2014/test_residueBurnt.py,sha256=4XJBiqQcxRlbUYjP6uSvBviqJq5UhIjTexKhQArGRgA,811
|
|
707
718
|
tests/models/koble2014/test_residueLeftOnField.py,sha256=9pFFYldqBrzr45Ia_1bu-6uv-_rBl3h1rZjb_NGwt-U,858
|
|
@@ -876,6 +887,9 @@ tests/models/schererPfister2015/test_pErosionSoilFlux.py,sha256=YbQEZGQjdppamcUm
|
|
|
876
887
|
tests/models/schererPfister2015/test_pToDrainageWaterSoilFlux.py,sha256=57MVRyiEU0g8pp6uRQiVo6l2w3OgBPyfv6oqdSIyrZ0,1060
|
|
877
888
|
tests/models/schererPfister2015/test_pToGroundwaterSoilFlux.py,sha256=lOTL-ue6hEbQsKIss6VsN7bJME5UCB3pTbqbLtMp9rk,1064
|
|
878
889
|
tests/models/schererPfister2015/test_pToSurfaceWaterSoilFlux.py,sha256=1VJo9q-Kb2OboK2RMp3-bkP6lXfkFbqMz1ACJC75FWw,1441
|
|
890
|
+
tests/models/schmidt2007/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
891
|
+
tests/models/schmidt2007/test_ch4ToAirWasteTreatment.py,sha256=5VSxT6sEbNp6c4Y07WzJGFDwVnjJbziG9HmbJNF6r6A,1454
|
|
892
|
+
tests/models/schmidt2007/test_utils.py,sha256=rmtOV3xiFynjgx8lQNGsJqquG8HDxz3LDmh1efN8AkI,1278
|
|
879
893
|
tests/models/site/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
880
894
|
tests/models/site/test_cationExchangeCapacityPerKgSoil.py,sha256=ZbIt-mQohYE-8xd4zoqDTVj3VC-Dg9wnOTY4ppULsCY,1023
|
|
881
895
|
tests/models/site/test_flowingWater.py,sha256=q7ktHV7sffIUBf0SgIhbkL_U_c7RTHYv6oWhXY4A6io,1274
|
|
@@ -925,7 +939,7 @@ tests/models/transformation/input/test_value.py,sha256=YUrCqryVFVBdTiwDbOUEmsDna
|
|
|
925
939
|
tests/models/transformation/product/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
926
940
|
tests/models/transformation/product/test_excreta.py,sha256=BhQxJTyyv1qIgymm4ucjxqf7d2_et1pVsDTU7PtkT0A,1647
|
|
927
941
|
tests/models/usetoxV2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
928
|
-
tests/models/usetoxV2/
|
|
942
|
+
tests/models/usetoxV2/test_freshwaterEcotoxicityPotentialCtue.py,sha256=eq7Gcmfya9g0eOKKkuBhz8vq7xi_CmZ_LTSxueBwZt4,835
|
|
929
943
|
tests/models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
930
944
|
tests/models/utils/test_blank_node.py,sha256=wOOkRsNVYV2I5H_FV8ySxm94BfU4wjf2ed7N644km6k,1494
|
|
931
945
|
tests/models/utils/test_currency.py,sha256=BPsojPsY9QW2aj8vgbjkPQXU8GU6wDwwtPZ3HdC4KTU,277
|
|
@@ -944,8 +958,8 @@ tests/models/utils/test_site.py,sha256=cSKrkLeerymMLZAwCnbQce38NwgxXojQHAVm9DPUT
|
|
|
944
958
|
tests/models/utils/test_term.py,sha256=-Wn2C1jyOLfkvhcKmKWT-Jms7yqLwx5ok91gYJNcGWc,2028
|
|
945
959
|
tests/models/webbEtAl2012AndSintermannEtAl2012/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
946
960
|
tests/models/webbEtAl2012AndSintermannEtAl2012/test_nh3ToAirOrganicFertiliser.py,sha256=qi2FNXS5Af2WDtm7nq_FsprH3BfCF0XxnE0XHmC4aIY,2244
|
|
947
|
-
hestia_earth_models-0.
|
|
948
|
-
hestia_earth_models-0.
|
|
949
|
-
hestia_earth_models-0.
|
|
950
|
-
hestia_earth_models-0.
|
|
951
|
-
hestia_earth_models-0.
|
|
961
|
+
hestia_earth_models-0.51.1.dist-info/LICENSE,sha256=EFSZhfUdZCTsCIYdHzTGewMKfRfp7X9t1s2aaKxm8O0,1154
|
|
962
|
+
hestia_earth_models-0.51.1.dist-info/METADATA,sha256=pau-UYw6oKiDHVlx76p2Mq0pDvBvEL5DboUI74Pin0g,3178
|
|
963
|
+
hestia_earth_models-0.51.1.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
964
|
+
hestia_earth_models-0.51.1.dist-info/top_level.txt,sha256=1dqA9TqpOLTEgpqa-YBsmbCmmNU1y56AtfFGEceZ2A0,19
|
|
965
|
+
hestia_earth_models-0.51.1.dist-info/RECORD,,
|
|
@@ -5,7 +5,7 @@ from hestia_earth.models.emepEea2019.utils import get_fuel_values
|
|
|
5
5
|
class_path = 'hestia_earth.models.emepEea2019.utils'
|
|
6
6
|
TERMS = [
|
|
7
7
|
'diesel',
|
|
8
|
-
'
|
|
8
|
+
'petrol'
|
|
9
9
|
]
|
|
10
10
|
|
|
11
11
|
|
|
@@ -36,9 +36,23 @@ def test_get_fuel_values(*args):
|
|
|
36
36
|
'value': [100]
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
|
|
39
|
+
|
|
40
|
+
'term': {'@id': 'diesel', 'termType': 'fuel'},
|
|
41
|
+
'operation': {'@id': 'crushingWoodMachineUnspecified', 'termType': 'operation'},
|
|
42
|
+
'value': [200]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
|
|
46
|
+
'term': {'@id': 'diesel', 'termType': 'fuel'},
|
|
47
|
+
'operation': {'@id': 'helicopterUseOperationUnspecified', 'termType': 'operation'},
|
|
48
|
+
'value': [150]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
'term': {'@id': 'marineGasOil', 'termType': 'fuel'},
|
|
52
|
+
'operation': {'@id': 'crushingWoodMachineUnspecified', 'termType': 'operation'},
|
|
40
53
|
'value': [50]
|
|
41
54
|
}
|
|
42
55
|
]
|
|
43
56
|
}
|
|
44
|
-
|
|
57
|
+
result = get_fuel_values('co2ToAirFuelCombustion', cycle, 'co2ToAirFuelCombustionEmepEea2019')
|
|
58
|
+
assert result == [317.0, 632.0, 475.5, 158.5]
|
|
@@ -2,7 +2,7 @@ from unittest.mock import patch
|
|
|
2
2
|
import json
|
|
3
3
|
from tests.utils import fixtures_path, fake_new_indicator
|
|
4
4
|
|
|
5
|
-
from hestia_earth.models.environmentalFootprintV3.
|
|
5
|
+
from hestia_earth.models.environmentalFootprintV3.freshwaterEcotoxicityPotentialCtue import MODEL, TERM_ID, run
|
|
6
6
|
|
|
7
7
|
class_path = f"hestia_earth.models.{MODEL}.{TERM_ID}"
|
|
8
8
|
fixtures_folder = f"{fixtures_path}/{MODEL}/{TERM_ID}"
|
|
@@ -8,13 +8,12 @@ class_path = f"hestia_earth.models.{MODEL}.{MODEL_KEY}"
|
|
|
8
8
|
fixtures_folder = f"{fixtures_path}/{MODEL}/{MODEL_KEY}"
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
@patch(f"{class_path}.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
mock_has_geospatial_data.return_value = True
|
|
11
|
+
@patch(f"{class_path}.has_coordinates")
|
|
12
|
+
def test_should_run(mock_has_coordinates, *args):
|
|
13
|
+
mock_has_coordinates.return_value = True
|
|
15
14
|
assert _should_run({}) is True
|
|
16
15
|
|
|
17
|
-
|
|
16
|
+
mock_has_coordinates.return_value = False
|
|
18
17
|
assert not _should_run({})
|
|
19
18
|
|
|
20
19
|
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
from hestia_earth.schema import TermTermType
|
|
2
2
|
|
|
3
|
-
from hestia_earth.models.geospatialDatabase.utils import get_region_factor
|
|
3
|
+
from hestia_earth.models.geospatialDatabase.utils import get_region_factor, _get_area_size
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
def test_get_region_factor():
|
|
7
7
|
site = {'country': {'@id': 'GADM-ALB'}}
|
|
8
8
|
assert get_region_factor('croppingIntensity', site, TermTermType.LANDUSEMANAGEMENT) == 0.9999775685587958
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def test_get_area_size():
|
|
12
|
+
site = {'country': {'@id': 'GADM-ALB'}}
|
|
13
|
+
assert _get_area_size(site) == 28735.42144
|
|
14
|
+
|
|
15
|
+
site['boundary'] = {'type': 'Polygon'}
|
|
16
|
+
site['boundaryArea'] = 1000
|
|
17
|
+
assert _get_area_size(site) == 1000
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
from unittest.mock import patch
|
|
2
|
+
import json
|
|
3
|
+
from tests.utils import fixtures_path, fake_new_emission
|
|
4
|
+
|
|
5
|
+
from hestia_earth.models.ipcc2019.n2OToAirInorganicFertiliserIndirect import MODEL, TERM_ID, run, _should_run
|
|
6
|
+
|
|
7
|
+
class_path = f"hestia_earth.models.{MODEL}.{TERM_ID}"
|
|
8
|
+
fixtures_folder = f"{fixtures_path}/{MODEL}/{TERM_ID}"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@patch(f"{class_path}.get_ecoClimateZone", return_value=2)
|
|
12
|
+
@patch(f"{class_path}._is_term_type_complete", return_value=False)
|
|
13
|
+
@patch(f"{class_path}.get_inorganic_fertiliser_N_total", return_value=0)
|
|
14
|
+
def test_should_run(mock_N_total, mock_complete, *args):
|
|
15
|
+
# no N => no run
|
|
16
|
+
assert not _should_run({})
|
|
17
|
+
|
|
18
|
+
# with N => no run
|
|
19
|
+
mock_N_total.return_value = 10
|
|
20
|
+
assert not _should_run({})
|
|
21
|
+
|
|
22
|
+
# is complete => run
|
|
23
|
+
mock_complete.return_value = True
|
|
24
|
+
assert _should_run({}) is True
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@patch(f"{class_path}._new_emission", side_effect=fake_new_emission)
|
|
28
|
+
def test_run_wet(*args):
|
|
29
|
+
with open(f"{fixtures_folder}/ecoClimateZone-wet/cycle.jsonld", encoding='utf-8') as f:
|
|
30
|
+
cycle = json.load(f)
|
|
31
|
+
|
|
32
|
+
with open(f"{fixtures_folder}/ecoClimateZone-wet/result.jsonld", encoding='utf-8') as f:
|
|
33
|
+
expected = json.load(f)
|
|
34
|
+
|
|
35
|
+
value = run(cycle)
|
|
36
|
+
assert value == expected
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@patch(f"{class_path}._new_emission", side_effect=fake_new_emission)
|
|
40
|
+
def test_run_dry(*args):
|
|
41
|
+
with open(f"{fixtures_folder}/ecoClimateZone-dry/cycle.jsonld", encoding='utf-8') as f:
|
|
42
|
+
cycle = json.load(f)
|
|
43
|
+
|
|
44
|
+
with open(f"{fixtures_folder}/ecoClimateZone-dry/result.jsonld", encoding='utf-8') as f:
|
|
45
|
+
expected = json.load(f)
|
|
46
|
+
|
|
47
|
+
value = run(cycle)
|
|
48
|
+
assert value == expected
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
from unittest.mock import patch
|
|
2
|
+
import json
|
|
3
|
+
from tests.utils import fixtures_path, fake_new_emission
|
|
4
|
+
|
|
5
|
+
from hestia_earth.models.ipcc2019.n2OToAirOrganicFertiliserIndirect import MODEL, TERM_ID, run, _should_run
|
|
6
|
+
|
|
7
|
+
class_path = f"hestia_earth.models.{MODEL}.{TERM_ID}"
|
|
8
|
+
fixtures_folder = f"{fixtures_path}/{MODEL}/{TERM_ID}"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@patch(f"{class_path}.get_ecoClimateZone", return_value=2)
|
|
12
|
+
@patch(f"{class_path}._is_term_type_complete", return_value=False)
|
|
13
|
+
@patch(f"{class_path}.get_organic_fertiliser_N_total", return_value=0)
|
|
14
|
+
def test_should_run(mock_N_total, mock_complete, *args):
|
|
15
|
+
# no N => no run
|
|
16
|
+
assert not _should_run({})
|
|
17
|
+
|
|
18
|
+
# with N => no run
|
|
19
|
+
mock_N_total.return_value = 10
|
|
20
|
+
assert not _should_run({})
|
|
21
|
+
|
|
22
|
+
# is complete => run
|
|
23
|
+
mock_complete.return_value = True
|
|
24
|
+
assert _should_run({}) is True
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@patch(f"{class_path}._new_emission", side_effect=fake_new_emission)
|
|
28
|
+
def test_run_wet(*args):
|
|
29
|
+
with open(f"{fixtures_folder}/ecoClimateZone-wet/cycle.jsonld", encoding='utf-8') as f:
|
|
30
|
+
cycle = json.load(f)
|
|
31
|
+
|
|
32
|
+
with open(f"{fixtures_folder}/ecoClimateZone-wet/result.jsonld", encoding='utf-8') as f:
|
|
33
|
+
expected = json.load(f)
|
|
34
|
+
|
|
35
|
+
value = run(cycle)
|
|
36
|
+
assert value == expected
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@patch(f"{class_path}._new_emission", side_effect=fake_new_emission)
|
|
40
|
+
def test_run_dry(*args):
|
|
41
|
+
with open(f"{fixtures_folder}/ecoClimateZone-dry/cycle.jsonld", encoding='utf-8') as f:
|
|
42
|
+
cycle = json.load(f)
|
|
43
|
+
|
|
44
|
+
with open(f"{fixtures_folder}/ecoClimateZone-dry/result.jsonld", encoding='utf-8') as f:
|
|
45
|
+
expected = json.load(f)
|
|
46
|
+
|
|
47
|
+
value = run(cycle)
|
|
48
|
+
assert value == expected
|
|
File without changes
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
from unittest.mock import patch
|
|
2
|
+
import json
|
|
3
|
+
from tests.utils import fixtures_path, fake_new_emission
|
|
4
|
+
|
|
5
|
+
from hestia_earth.models.jarvisAndPain1994.n2ToAirExcreta import MODEL, TERM_ID, run, _should_run
|
|
6
|
+
|
|
7
|
+
class_path = f"hestia_earth.models.{MODEL}.{TERM_ID}"
|
|
8
|
+
fixtures_folder = f"{fixtures_path}/{MODEL}/{TERM_ID}"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def test_should_run(*args):
|
|
12
|
+
# no emissions => no run
|
|
13
|
+
cycle = {'emissions': []}
|
|
14
|
+
should_run, *args = _should_run(cycle)
|
|
15
|
+
assert not should_run
|
|
16
|
+
|
|
17
|
+
# with n2o emission => run
|
|
18
|
+
cycle['emissions'] = [{
|
|
19
|
+
'term': {
|
|
20
|
+
'@id': 'n2OToAirExcretaDirect'
|
|
21
|
+
},
|
|
22
|
+
'value': [100]
|
|
23
|
+
}]
|
|
24
|
+
should_run, *args = _should_run(cycle)
|
|
25
|
+
assert should_run is True
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@patch(f"{class_path}._new_emission", side_effect=fake_new_emission)
|
|
29
|
+
def test_run(*args):
|
|
30
|
+
with open(f"{fixtures_folder}/cycle.jsonld", encoding='utf-8') as f:
|
|
31
|
+
cycle = json.load(f)
|
|
32
|
+
|
|
33
|
+
with open(f"{fixtures_folder}/result.jsonld", encoding='utf-8') as f:
|
|
34
|
+
expected = json.load(f)
|
|
35
|
+
|
|
36
|
+
value = run(cycle)
|
|
37
|
+
assert value == expected
|
|
@@ -34,3 +34,16 @@ def test_run(*args):
|
|
|
34
34
|
|
|
35
35
|
value = run(cycle)
|
|
36
36
|
assert value == expected
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@patch(f"{class_path}._is_term_type_incomplete", return_value=True)
|
|
40
|
+
@patch(f"{class_path}._new_product", side_effect=fake_new_product)
|
|
41
|
+
def test_run_no_total(*args):
|
|
42
|
+
with open(f"{fixtures_folder}/no-total/cycle.jsonld", encoding='utf-8') as f:
|
|
43
|
+
cycle = json.load(f)
|
|
44
|
+
|
|
45
|
+
with open(f"{fixtures_folder}/no-total/result.jsonld", encoding='utf-8') as f:
|
|
46
|
+
expected = json.load(f)
|
|
47
|
+
|
|
48
|
+
value = run(cycle)
|
|
49
|
+
assert value == expected
|
|
File without changes
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
from unittest.mock import patch
|
|
2
|
+
import json
|
|
3
|
+
from tests.utils import fixtures_path, fake_new_emission
|
|
4
|
+
|
|
5
|
+
from hestia_earth.models.schmidt2007.ch4ToAirWasteTreatment import MODEL, TERM_ID, run, _should_run
|
|
6
|
+
|
|
7
|
+
class_path = f"hestia_earth.models.{MODEL}.{TERM_ID}"
|
|
8
|
+
fixtures_folder = f"{fixtures_path}/{MODEL}/{TERM_ID}"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@patch(f"{class_path}.get_waste_values")
|
|
12
|
+
def test_should_run(mock_get_waste_values):
|
|
13
|
+
# no fuel values => no run
|
|
14
|
+
mock_get_waste_values.return_value = []
|
|
15
|
+
should_run, *args = _should_run({})
|
|
16
|
+
assert not should_run
|
|
17
|
+
|
|
18
|
+
# with fuel values => run
|
|
19
|
+
mock_get_waste_values.return_value = [0]
|
|
20
|
+
should_run, *args = _should_run({})
|
|
21
|
+
assert should_run is True
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@patch(f"{class_path}._new_emission", side_effect=fake_new_emission)
|
|
25
|
+
def test_run(*args):
|
|
26
|
+
with open(f"{fixtures_folder}/cycle.jsonld", encoding='utf-8') as f:
|
|
27
|
+
cycle = json.load(f)
|
|
28
|
+
|
|
29
|
+
with open(f"{fixtures_folder}/result.jsonld", encoding='utf-8') as f:
|
|
30
|
+
expected = json.load(f)
|
|
31
|
+
|
|
32
|
+
value = run(cycle)
|
|
33
|
+
assert value == expected
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
@patch(f"{class_path}._new_emission", side_effect=fake_new_emission)
|
|
37
|
+
def test_run_data_complete(*args):
|
|
38
|
+
with open(f"{fixtures_folder}/no-input-data-complete/cycle.jsonld", encoding='utf-8') as f:
|
|
39
|
+
cycle = json.load(f)
|
|
40
|
+
|
|
41
|
+
with open(f"{fixtures_folder}/no-input-data-complete/result.jsonld", encoding='utf-8') as f:
|
|
42
|
+
expected = json.load(f)
|
|
43
|
+
|
|
44
|
+
value = run(cycle)
|
|
45
|
+
assert value == expected
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from unittest.mock import patch
|
|
2
|
+
|
|
3
|
+
from hestia_earth.models.schmidt2007.utils import get_waste_values
|
|
4
|
+
|
|
5
|
+
class_path = 'hestia_earth.models.schmidt2007.utils'
|
|
6
|
+
TERMS = [
|
|
7
|
+
'Oil palm mill effluent (waste)'
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@patch(f"{class_path}._is_term_type_complete", return_value=True)
|
|
12
|
+
def test_get_waste_values_no_inputs_complete(*args):
|
|
13
|
+
cycle = {'@type': 'Cycle', 'inputs': []}
|
|
14
|
+
assert get_waste_values('ch4ToAirWasteTreatment', cycle, '') == [0]
|
|
15
|
+
|
|
16
|
+
cycle = {'@type': 'Transformation', 'inputs': []}
|
|
17
|
+
assert get_waste_values('ch4ToAirWasteTreatment', cycle, '') == []
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@patch(f"{class_path}._is_term_type_complete", return_value=False)
|
|
21
|
+
def test_get_waste_values_no_inputs_incomplete(*args):
|
|
22
|
+
cycle = {'@type': 'Cycle', 'inputs': []}
|
|
23
|
+
assert get_waste_values('ch4ToAirWasteTreatment', cycle, '') == []
|
|
24
|
+
|
|
25
|
+
cycle = {'@type': 'Transformation', 'inputs': []}
|
|
26
|
+
assert get_waste_values('ch4ToAirWasteTreatment', cycle, '') == []
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def test_get_waste_values(*args):
|
|
30
|
+
cycle = {
|
|
31
|
+
'@type': 'Cycle',
|
|
32
|
+
'products': [
|
|
33
|
+
{
|
|
34
|
+
'term': {'@id': 'oilPalmMillEffluentWaste', 'termType': 'waste'},
|
|
35
|
+
'value': [100]
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
assert get_waste_values('ch4ToAirWasteTreatment', cycle, 'ch4EfSchmidt2007') == [1.3]
|