hestia-earth-models 0.61.8__py3-none-any.whl → 0.62.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/blonkConsultants2016/utils.py +3 -2
- hestia_earth/models/cycle/completeness/electricityFuel.py +5 -1
- hestia_earth/models/cycle/post_checks/__init__.py +3 -2
- hestia_earth/models/cycle/post_checks/otherSites.py +40 -0
- hestia_earth/models/cycle/pre_checks/__init__.py +2 -1
- hestia_earth/models/cycle/pre_checks/otherSites.py +42 -0
- hestia_earth/models/cycle/pre_checks/site.py +1 -1
- hestia_earth/models/cycle/product/economicValueShare.py +47 -31
- hestia_earth/models/ecoinventV3AndEmberClimate/utils.py +1 -1
- hestia_earth/models/emepEea2019/utils.py +4 -3
- hestia_earth/models/geospatialDatabase/heavyWinterPrecipitation.py +1 -1
- hestia_earth/models/ipcc2019/animal/pastureGrass.py +36 -30
- hestia_earth/models/ipcc2019/co2ToAirSoilOrganicCarbonStockChangeManagementChange.py +30 -4
- hestia_earth/models/ipcc2019/n2OToAirExcretaDirect.py +6 -2
- hestia_earth/models/ipcc2019/n2OToAirExcretaIndirect.py +1 -1
- hestia_earth/models/ipcc2019/n2OToAirInorganicFertiliserDirect.py +1 -1
- hestia_earth/models/ipcc2019/n2OToAirInorganicFertiliserIndirect.py +1 -1
- hestia_earth/models/ipcc2019/n2OToAirOrganicFertiliserIndirect.py +1 -1
- hestia_earth/models/ipcc2019/organicCarbonPerHa.py +4 -6
- hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_1_utils.py +4 -2
- hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_2_utils.py +12 -11
- hestia_earth/models/ipcc2019/pastureGrass.py +40 -22
- hestia_earth/models/ipcc2019/pastureGrass_utils.py +43 -60
- hestia_earth/models/mocking/search-results.json +261 -257
- hestia_earth/models/schererPfister2015/utils.py +2 -2
- hestia_earth/models/site/brackishWater.py +1 -1
- hestia_earth/models/site/flowingWater.py +1 -1
- hestia_earth/models/site/freshWater.py +1 -1
- hestia_earth/models/site/management.py +29 -11
- hestia_earth/models/site/pre_checks/cache_sources.py +9 -13
- hestia_earth/models/site/salineWater.py +1 -1
- hestia_earth/models/stehfestBouwman2006/n2OToAirCropResidueDecompositionDirect.py +12 -2
- hestia_earth/models/stehfestBouwman2006/n2OToAirExcretaDirect.py +12 -2
- hestia_earth/models/stehfestBouwman2006/n2OToAirInorganicFertiliserDirect.py +11 -1
- hestia_earth/models/stehfestBouwman2006/n2OToAirOrganicFertiliserDirect.py +11 -1
- hestia_earth/models/stehfestBouwman2006/noxToAirCropResidueDecomposition.py +12 -2
- hestia_earth/models/stehfestBouwman2006/noxToAirExcreta.py +12 -2
- hestia_earth/models/stehfestBouwman2006/noxToAirInorganicFertiliser.py +11 -1
- hestia_earth/models/stehfestBouwman2006/noxToAirOrganicFertiliser.py +11 -1
- hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirCropResidueDecomposition.py +12 -2
- hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirExcreta.py +12 -2
- hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirInorganicFertiliser.py +11 -1
- hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirOrganicFertiliser.py +11 -1
- hestia_earth/models/utils/blank_node.py +159 -146
- hestia_earth/models/utils/constant.py +2 -0
- hestia_earth/models/utils/lookup.py +19 -6
- hestia_earth/models/utils/source.py +1 -1
- hestia_earth/models/version.py +1 -1
- {hestia_earth_models-0.61.8.dist-info → hestia_earth_models-0.62.1.dist-info}/METADATA +3 -3
- {hestia_earth_models-0.61.8.dist-info → hestia_earth_models-0.62.1.dist-info}/RECORD +64 -59
- tests/models/cycle/post_checks/test_otherSites.py +15 -0
- tests/models/cycle/pre_checks/test_otherSites.py +21 -0
- tests/models/cycle/product/test_economicValueShare.py +8 -0
- tests/models/ipcc2019/animal/test_pastureGrass.py +2 -2
- tests/models/ipcc2019/test_co2ToAirSoilOrganicCarbonStockChangeManagementChange.py +5 -2
- tests/models/ipcc2019/test_organicCarbonPerHa.py +2 -1
- tests/models/ipcc2019/test_pastureGrass.py +0 -16
- tests/models/site/pre_checks/test_cache_sources.py +6 -10
- tests/models/site/test_management.py +162 -2
- tests/models/utils/test_blank_node.py +154 -296
- tests/models/utils/test_lookup.py +10 -0
- {hestia_earth_models-0.61.8.dist-info → hestia_earth_models-0.62.1.dist-info}/LICENSE +0 -0
- {hestia_earth_models-0.61.8.dist-info → hestia_earth_models-0.62.1.dist-info}/WHEEL +0 -0
- {hestia_earth_models-0.61.8.dist-info → hestia_earth_models-0.62.1.dist-info}/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ hestia_earth/models/cache_sites.py,sha256=KQp9cUKE-aIcYJoMWEtKFYS8gBFfsx5LKQhqoW
|
|
|
4
4
|
hestia_earth/models/log.py,sha256=b63I3qyTtQs17xxbq8RI0Fv2lvZ1oDZ9k0njhxqiFFk,3459
|
|
5
5
|
hestia_earth/models/preload_requests.py,sha256=elhYQTxBVuFlZROWvZ3yErDzzMLdMUIjBhmpdaTUSi8,1012
|
|
6
6
|
hestia_earth/models/requirements.py,sha256=znNZJAhwX2iYiKcAQXPftY7z_1MsNa0QxCXkXyHm_U0,17363
|
|
7
|
-
hestia_earth/models/version.py,sha256=
|
|
7
|
+
hestia_earth/models/version.py,sha256=PWB3A1c15lnJ0vIqLFnOlwunRfvIyeg_7b4mAWh_mKI,19
|
|
8
8
|
hestia_earth/models/agribalyse2016/__init__.py,sha256=WvK0qCQbnYtg9oZxrACd1wGormZyXibPtpCnIQeDqbw,415
|
|
9
9
|
hestia_earth/models/agribalyse2016/fuelElectricity.py,sha256=mrh8seYSYdTgcMDCETLiknuPeJehg071YoG4UiyW0yU,4404
|
|
10
10
|
hestia_earth/models/agribalyse2016/machineryInfrastructureDepreciatedAmountPerCycle.py,sha256=_Rbngu0DzHKa62JwBl58ZC_ui1zLF2que_nB7ukhOQc,3392
|
|
@@ -21,7 +21,7 @@ hestia_earth/models/blonkConsultants2016/ch4ToAirNaturalVegetationBurning.py,sha
|
|
|
21
21
|
hestia_earth/models/blonkConsultants2016/co2ToAirAboveGroundBiomassStockChangeLandUseChange.py,sha256=X-G3JgjoSe0--2iIiuouf4F0-hmAB87skwnB_fY8DuY,3142
|
|
22
22
|
hestia_earth/models/blonkConsultants2016/landTransformationFromForest20YearAverageDuringCycle.py,sha256=YKajTDFoX46FgQlxpTymbth37zB4CGxy3pT0-KGPyHk,3706
|
|
23
23
|
hestia_earth/models/blonkConsultants2016/n2OToAirNaturalVegetationBurningDirect.py,sha256=FswygR2utDoA4aT3dy9B2hZyLuDvo9Mqc3iku3bgfGk,3292
|
|
24
|
-
hestia_earth/models/blonkConsultants2016/utils.py,sha256=
|
|
24
|
+
hestia_earth/models/blonkConsultants2016/utils.py,sha256=hmPnzJLmFgZvdzkk6Au2euglrvCGtCWtjM8w0rYQHr4,1517
|
|
25
25
|
hestia_earth/models/chaudharyBrooks2018/__init__.py,sha256=LKxQu7-6gyWPpdXaYHDTawzsBNm7CpDrk98I5_TTLhA,420
|
|
26
26
|
hestia_earth/models/chaudharyBrooks2018/damageToTerrestrialEcosystemsLandOccupation.py,sha256=A-YA_zBgP6jSwk-xiDzcKYC5drpjnJpRPDc_d5e47hI,3887
|
|
27
27
|
hestia_earth/models/chaudharyBrooks2018/damageToTerrestrialEcosystemsLandTransformation.py,sha256=-18vU2WTfbPdleBddsv8rmMZwsEYWeNt2dv0FGVOSfk,3513
|
|
@@ -69,7 +69,7 @@ hestia_earth/models/cycle/animal/input/properties.py,sha256=2bKyyclrt0O7zvtD1Ij7
|
|
|
69
69
|
hestia_earth/models/cycle/completeness/__init__.py,sha256=rkwGtxIay_AleJCT7al_ngnix_xRqySVie7qvHXMQI0,1517
|
|
70
70
|
hestia_earth/models/cycle/completeness/animalFeed.py,sha256=8Fo1TqwSuiPudvd2vJ-LVxSyOdD8mDCOZMvjuj5W2uo,1012
|
|
71
71
|
hestia_earth/models/cycle/completeness/cropResidue.py,sha256=zSiu9h0NxEBDUWlaKBh1QcX4jDIklrs0BC2NWMCQQ80,2549
|
|
72
|
-
hestia_earth/models/cycle/completeness/electricityFuel.py,sha256=
|
|
72
|
+
hestia_earth/models/cycle/completeness/electricityFuel.py,sha256=FWG8EuOPubTLDc3jMJv6NdFCgG0wOVgxv-5P9wA7Nys,2044
|
|
73
73
|
hestia_earth/models/cycle/completeness/excreta.py,sha256=2yVxcuWjAh4hoEukaMJ90VZpkCL7SfpwIgzigbjVaF4,996
|
|
74
74
|
hestia_earth/models/cycle/completeness/material.py,sha256=UQH2oRnUY-Q-_MVuOlTAYqQxc7wWDM5mi_iFmp9PlIQ,1362
|
|
75
75
|
hestia_earth/models/cycle/completeness/seed.py,sha256=g4GOzRx249pEfr2beU9n5tzBiWA3hhxnqyiGri7QbEI,1662
|
|
@@ -84,17 +84,19 @@ hestia_earth/models/cycle/input/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
|
|
|
84
84
|
hestia_earth/models/cycle/input/hestiaAggregatedData.py,sha256=7WhSOTUKq9A6mrDwOu5gMOHtkhK0oby8n-DAO4LaWLs,5035
|
|
85
85
|
hestia_earth/models/cycle/input/properties.py,sha256=r5EF18b_KW8evmdlev0mLQyqwBVgSicKEyilGaBRF6I,3017
|
|
86
86
|
hestia_earth/models/cycle/input/value.py,sha256=kolH9Fc5GIn9OVH2DgHEaW8ksS4xisy0LerS3WkKK9E,1550
|
|
87
|
-
hestia_earth/models/cycle/post_checks/__init__.py,sha256=
|
|
87
|
+
hestia_earth/models/cycle/post_checks/__init__.py,sha256=5ThdvGKp7ilFOzn8Tq23c4XXqhA345PYIe63yOtGJTY,336
|
|
88
88
|
hestia_earth/models/cycle/post_checks/cache.py,sha256=39zoY-eaYB7zb1R7YLsIdwozDFuA2mmYctXhW3ChE0I,291
|
|
89
|
+
hestia_earth/models/cycle/post_checks/otherSites.py,sha256=2ZDNE3-bL0UsgRkIQs8iP9gXJThWFflJkii65eTvYgk,952
|
|
89
90
|
hestia_earth/models/cycle/post_checks/site.py,sha256=62Iylm986-ca2GL7uI0qlsjCCK9N1DXQfrakJZV28hQ,788
|
|
90
91
|
hestia_earth/models/cycle/practice/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
91
92
|
hestia_earth/models/cycle/practice/value.py,sha256=CQ1SkleHDkAtO0_xwcziJ9uCvz_Pr7W1HVOH5_meNdc,2039
|
|
92
|
-
hestia_earth/models/cycle/pre_checks/__init__.py,sha256=
|
|
93
|
+
hestia_earth/models/cycle/pre_checks/__init__.py,sha256=T8NfEXznq7Q1VUxqBOBP7Rz_DwoYvWYoYqe-Txznu24,352
|
|
93
94
|
hestia_earth/models/cycle/pre_checks/cache_sources.py,sha256=jCynHYIqOVizBSPKWKip9-TXSi58NVParZd4ntR9LSY,899
|
|
94
|
-
hestia_earth/models/cycle/pre_checks/
|
|
95
|
+
hestia_earth/models/cycle/pre_checks/otherSites.py,sha256=MQpf_v4lTIR60zF7slp3LBeAA0FtOG_A6t_7NxHd88I,1037
|
|
96
|
+
hestia_earth/models/cycle/pre_checks/site.py,sha256=OkrEOxwbo5rzAWQaPt2p9uZ9g7Vc58QweGW5-Pt0jPY,882
|
|
95
97
|
hestia_earth/models/cycle/product/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
96
98
|
hestia_earth/models/cycle/product/currency.py,sha256=lB1pCD1747Ke3oFoqjAKEHbIdHPfrHKNaJSni69iMUQ,2150
|
|
97
|
-
hestia_earth/models/cycle/product/economicValueShare.py,sha256=
|
|
99
|
+
hestia_earth/models/cycle/product/economicValueShare.py,sha256=jSuwTa94OKnI4vn8B_DVkVyjRHSqDGoF6rAwl4NK1zk,8540
|
|
98
100
|
hestia_earth/models/cycle/product/price.py,sha256=E5Q0TkfbbsJHZZD3cBGZvvHj0f2sJrgLGulRCyILTbY,1449
|
|
99
101
|
hestia_earth/models/cycle/product/primary.py,sha256=FYyl-Mv8AmEml1nhDJwU01N4LrszJm6E31eztQDHzdg,1853
|
|
100
102
|
hestia_earth/models/cycle/product/properties.py,sha256=PiwCod4dlMScTm_MQhY35QpeLRuHvdsc_nijv_7TqNM,1377
|
|
@@ -109,7 +111,7 @@ hestia_earth/models/deRuijterEtAl2010/__init__.py,sha256=lbH6mB98dmZZlwdZctNYtEm
|
|
|
109
111
|
hestia_earth/models/deRuijterEtAl2010/nh3ToAirCropResidueDecomposition.py,sha256=2z10WqMsGUDDO8xJ3lmXvSUHgzz2t6PPRDha5NHoT5s,3291
|
|
110
112
|
hestia_earth/models/ecoinventV3/__init__.py,sha256=nSktsE0c9ohx1FyDEEi-YlnGgMGNd-actCwPs_htzC0,6309
|
|
111
113
|
hestia_earth/models/ecoinventV3AndEmberClimate/__init__.py,sha256=H5fxfUy6HLHxRgvG3oPZ8pnLbq3Axm0Ejkp9CQ2UGlM,5306
|
|
112
|
-
hestia_earth/models/ecoinventV3AndEmberClimate/utils.py,sha256=
|
|
114
|
+
hestia_earth/models/ecoinventV3AndEmberClimate/utils.py,sha256=dXjLfubt2p-PBj1rKoMPr2o0j6jFMDwLyZXpBL_VV3Q,4426
|
|
113
115
|
hestia_earth/models/emepEea2019/__init__.py,sha256=l90-pWrqIzt1ap1WNk0gF4iZeF5_TSG62hE83bIi4rQ,412
|
|
114
116
|
hestia_earth/models/emepEea2019/co2ToAirFuelCombustion.py,sha256=DfoGlB5HjA1gafO0OutJjfsA6yPP_PsAd-p16evwCiQ,1609
|
|
115
117
|
hestia_earth/models/emepEea2019/n2OToAirFuelCombustionDirect.py,sha256=R3lRF5-Md4Jd7irvTe8WJZJPc9-wa1pD6UWVk7lnGtQ,1616
|
|
@@ -117,7 +119,7 @@ hestia_earth/models/emepEea2019/nh3ToAirExcreta.py,sha256=lWo1AaorIk4HtTCQAND3RF
|
|
|
117
119
|
hestia_earth/models/emepEea2019/nh3ToAirInorganicFertiliser.py,sha256=AMZlOpeajrhbjGWIq_mLJJHfOF9RH9GswkbvVyrqop0,6201
|
|
118
120
|
hestia_earth/models/emepEea2019/noxToAirFuelCombustion.py,sha256=y49RvO5OkrZ4iK7o2Kmx5xW52y8SS9xEKAmlXlTQtWc,1609
|
|
119
121
|
hestia_earth/models/emepEea2019/so2ToAirFuelCombustion.py,sha256=bo_0mFcwicpOkPsvZRAnL2tDBDRBAQqsPD_Wc5e20K4,1609
|
|
120
|
-
hestia_earth/models/emepEea2019/utils.py,sha256=
|
|
122
|
+
hestia_earth/models/emepEea2019/utils.py,sha256=JcynSOdMU_jGuTptO0LLoK_JLkYtvn2gLPtYQBnM9Yo,1486
|
|
121
123
|
hestia_earth/models/emissionNotRelevant/__init__.py,sha256=nIuPIkQR1ghv_T_Ab4Ckq5wmGdWVmgbaOjhtKfIJ-WE,2183
|
|
122
124
|
hestia_earth/models/environmentalFootprintV3/__init__.py,sha256=lzg9qccwd9tbspw0lQ58YPprnvvSLTn3QV5T2-tPcC4,425
|
|
123
125
|
hestia_earth/models/environmentalFootprintV3/freshwaterEcotoxicityPotentialCtue.py,sha256=X62-4v0NJdM_Z5kLK3NuU4GNEeSrXlKlMZQB_o4JZ6c,1018
|
|
@@ -142,7 +144,7 @@ hestia_earth/models/geospatialDatabase/drainageClass.py,sha256=CVagB2wxLnHgQQauD
|
|
|
142
144
|
hestia_earth/models/geospatialDatabase/ecoClimateZone.py,sha256=hzK9Je_4NvbLtgAM48G7yf-6jrcMpsDzqSlLkVP3oYg,3625
|
|
143
145
|
hestia_earth/models/geospatialDatabase/ecoregion.py,sha256=awvHn0YEVu-YaW0ZDgBo_zbjSJU2EvydM_qAT_CL78A,1462
|
|
144
146
|
hestia_earth/models/geospatialDatabase/erodibility.py,sha256=M62CetEcHuExeXl7P7DVKZWWbk9tenjaDFvjMsWbga4,1843
|
|
145
|
-
hestia_earth/models/geospatialDatabase/heavyWinterPrecipitation.py,sha256=
|
|
147
|
+
hestia_earth/models/geospatialDatabase/heavyWinterPrecipitation.py,sha256=54pvHOfcfEUNNhTIWIPGRzqO_t59ACh-zhnLidO2xro,1956
|
|
146
148
|
hestia_earth/models/geospatialDatabase/histosol.py,sha256=5zwKdF1t9aOjTzBoear62T0Kzpjco-IJXu4oRYrUFQ8,2387
|
|
147
149
|
hestia_earth/models/geospatialDatabase/longFallowRatio.py,sha256=VnTW2Y7qpoxlEarOM85SzxhFb1kayNJAiecRXatrEpw,1872
|
|
148
150
|
hestia_earth/models/geospatialDatabase/nutrientLossToAquaticEnvironment.py,sha256=uEsoYJ1mzgUo6fQhUrcJ-ATcFw1j9oEgqMXKbQuFRxQ,1973
|
|
@@ -221,18 +223,18 @@ hestia_earth/models/ipcc2019/ch4ToAirEntericFermentation.py,sha256=khX90Njkmlvos
|
|
|
221
223
|
hestia_earth/models/ipcc2019/ch4ToAirExcreta.py,sha256=jEGgEUhMr0JHq_-lPJioKHOQGQXrQvblU51AppXKvB0,6719
|
|
222
224
|
hestia_earth/models/ipcc2019/ch4ToAirFloodedRice.py,sha256=TJ4J7VA5n4RPrJYZQeR3lc3ZoCw7T1E5Cb1XJewr834,7331
|
|
223
225
|
hestia_earth/models/ipcc2019/co2ToAirLimeHydrolysis.py,sha256=7z0zdqiiWQwkyJCgSNMoK2mft3cJkTRlqwKrMuSKdWI,2454
|
|
224
|
-
hestia_earth/models/ipcc2019/co2ToAirSoilOrganicCarbonStockChangeManagementChange.py,sha256=
|
|
226
|
+
hestia_earth/models/ipcc2019/co2ToAirSoilOrganicCarbonStockChangeManagementChange.py,sha256=D-4h4a8Ob_radqS6Gj3K8eLqTeXJrFIbfO9viusd6Pc,27585
|
|
225
227
|
hestia_earth/models/ipcc2019/co2ToAirUreaHydrolysis.py,sha256=Ofld5SuRKndcKB3FFFoUdzSgNq-gc4kmiNyyrPKQ3Io,3580
|
|
226
228
|
hestia_earth/models/ipcc2019/croppingDuration.py,sha256=_jlFrTNDOARH2_g8s4dzuaCoLHSX2BHzSQd3uuQN32Y,3173
|
|
227
229
|
hestia_earth/models/ipcc2019/ligninContent.py,sha256=wp5EbCthCDAKyvPBfZULS9-uKEY58TQQ8ey1pf-juv8,7267
|
|
228
230
|
hestia_earth/models/ipcc2019/n2OToAirCropResidueDecompositionDirect.py,sha256=Fand7NbT27unwgFTxi_9NxT024s63vQ7U6-tk9yp3d8,3990
|
|
229
231
|
hestia_earth/models/ipcc2019/n2OToAirCropResidueDecompositionIndirect.py,sha256=_Oj6Jw8F4rce7FmhWkzeqyB7W3ZQWpOiA10p6xrfSwc,3777
|
|
230
|
-
hestia_earth/models/ipcc2019/n2OToAirExcretaDirect.py,sha256=
|
|
231
|
-
hestia_earth/models/ipcc2019/n2OToAirExcretaIndirect.py,sha256=
|
|
232
|
-
hestia_earth/models/ipcc2019/n2OToAirInorganicFertiliserDirect.py,sha256=
|
|
233
|
-
hestia_earth/models/ipcc2019/n2OToAirInorganicFertiliserIndirect.py,sha256=
|
|
232
|
+
hestia_earth/models/ipcc2019/n2OToAirExcretaDirect.py,sha256=hw-rFZT9PW_hnWohmMbjTyav7dmasS4jl2wdNuBxsOk,1994
|
|
233
|
+
hestia_earth/models/ipcc2019/n2OToAirExcretaIndirect.py,sha256=9IDV96R9EIEVLIugPcSRY0oeecwk_Rpdn-Tvb01UyWY,3646
|
|
234
|
+
hestia_earth/models/ipcc2019/n2OToAirInorganicFertiliserDirect.py,sha256=vmUhlNGNaT3jX5CndCVWYnzJADAp-Cls4x4-NNITWdA,4369
|
|
235
|
+
hestia_earth/models/ipcc2019/n2OToAirInorganicFertiliserIndirect.py,sha256=ilc6D3cgmvmdkmPbdbxS-SzsG2RQRNKaQooxbeLl43w,3714
|
|
234
236
|
hestia_earth/models/ipcc2019/n2OToAirOrganicFertiliserDirect.py,sha256=Tq0lw-zGqA6S9ZWi2OTSWXA7nVp_STJeNT4X8Cra2rU,4358
|
|
235
|
-
hestia_earth/models/ipcc2019/n2OToAirOrganicFertiliserIndirect.py,sha256=
|
|
237
|
+
hestia_earth/models/ipcc2019/n2OToAirOrganicFertiliserIndirect.py,sha256=g2ssg9GEH2ShuNtY4g4R5GUIHf85u1azx4c264Hdoag,3700
|
|
236
238
|
hestia_earth/models/ipcc2019/nh3ToAirInorganicFertiliser.py,sha256=gvfv4VBHmEkppEMoHUIicAelYICdOjKxKBUw5f3meiQ,4480
|
|
237
239
|
hestia_earth/models/ipcc2019/nh3ToAirOrganicFertiliser.py,sha256=Oih-34cGl7AZ_sIYWXktOWrzmj3_onvk3EW5f8-7QKI,4152
|
|
238
240
|
hestia_earth/models/ipcc2019/nitrogenContent.py,sha256=6fGG7diDp9zAidVH75gXz9c8uxURx0Q2COo8KrkT3I4,7191
|
|
@@ -242,15 +244,15 @@ hestia_earth/models/ipcc2019/no3ToGroundwaterInorganicFertiliser.py,sha256=eyPfy
|
|
|
242
244
|
hestia_earth/models/ipcc2019/no3ToGroundwaterOrganicFertiliser.py,sha256=px2SN-uaus2cftXzlsYCUAxLuon6BnDXmaFI9xhQrgU,3347
|
|
243
245
|
hestia_earth/models/ipcc2019/noxToAirInorganicFertiliser.py,sha256=fmmFgjtvOD2TrrLY03jYly_KvDnCsAXqhL_tmZQQt-A,4480
|
|
244
246
|
hestia_earth/models/ipcc2019/noxToAirOrganicFertiliser.py,sha256=9dx_MRTwJGxJRq6mj2EJQMdQ2w6j7lw0fQk0If_cIGc,4152
|
|
245
|
-
hestia_earth/models/ipcc2019/organicCarbonPerHa.py,sha256=
|
|
246
|
-
hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_1_utils.py,sha256=
|
|
247
|
-
hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_2_utils.py,sha256=
|
|
247
|
+
hestia_earth/models/ipcc2019/organicCarbonPerHa.py,sha256=8rQifRZYQdoBz9HpoSbmrKiGP7ayQUZT78KEErgqtwc,8658
|
|
248
|
+
hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_1_utils.py,sha256=B7pwVkpt2YTo49yImTAQ4rr_Lu03zaPb5LEDKm0WJJI,82431
|
|
249
|
+
hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_2_utils.py,sha256=Zb3c5Wby1ZrRXs4n9qPgP04oIRZn9EUjkH65uRSk8Dc,58015
|
|
248
250
|
hestia_earth/models/ipcc2019/organicCarbonPerHa_utils.py,sha256=CrQWsDhW--wNQ2HEc_zxdFKuIdBHEwOQnVJGA3HgPpQ,10856
|
|
249
|
-
hestia_earth/models/ipcc2019/pastureGrass.py,sha256=
|
|
250
|
-
hestia_earth/models/ipcc2019/pastureGrass_utils.py,sha256=
|
|
251
|
+
hestia_earth/models/ipcc2019/pastureGrass.py,sha256=VXUqbvNmRWJy-oTD2ENj8wxhZ-YWivNMxjk4znt5t74,9344
|
|
252
|
+
hestia_earth/models/ipcc2019/pastureGrass_utils.py,sha256=ITQSFQ0zLCqbrKoMuYQ9MaP_-F768uNKdltf5zZCwUs,15833
|
|
251
253
|
hestia_earth/models/ipcc2019/utils.py,sha256=MSDMu15D9DnilFUgi4_6jYXC0FaKso3OODauGTMB6hs,6229
|
|
252
254
|
hestia_earth/models/ipcc2019/animal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
253
|
-
hestia_earth/models/ipcc2019/animal/pastureGrass.py,sha256=
|
|
255
|
+
hestia_earth/models/ipcc2019/animal/pastureGrass.py,sha256=ej1cyJKUqSFP5CsdV0iU_ucpGxN4VWbaw2caKi0rtoE,10966
|
|
254
256
|
hestia_earth/models/ipcc2019/animal/weightAtMaturity.py,sha256=5smSAmKVCIlELCD6S_3I16YuSWNFhcClGDOdvrIuYsE,3657
|
|
255
257
|
hestia_earth/models/ipcc2021/__init__.py,sha256=VTgGFKhwMmk_nuI1RRq0in27fHYVPBonlXlPK00K8no,409
|
|
256
258
|
hestia_earth/models/ipcc2021/gwp100.py,sha256=v-DYU-11XnWI1Ns1GEiKrJqL3JafxvhTsLmuBuFcxJU,1021
|
|
@@ -364,7 +366,7 @@ hestia_earth/models/linkedImpactAssessment/landTransformationFromPermanentPastur
|
|
|
364
366
|
hestia_earth/models/linkedImpactAssessment/utils.py,sha256=dGwGc2d-8_WQElTpfyPmz5vQtL-LHQRmiZnCTuPXMDs,1876
|
|
365
367
|
hestia_earth/models/mocking/__init__.py,sha256=n3Fkkrvh8zHNWiJZmnfQ7WZ91JRzAO9P6pSG1JpwtXo,687
|
|
366
368
|
hestia_earth/models/mocking/mock_search.py,sha256=dBCDRfbZmbMLKP21u_VYkxyimomqs-zztjX-_ZNKuuM,2036
|
|
367
|
-
hestia_earth/models/mocking/search-results.json,sha256=
|
|
369
|
+
hestia_earth/models/mocking/search-results.json,sha256=GyPI-u-c5vWqHmSgPI2684DgFvpNJgLRNiZb91wu3uE,43624
|
|
368
370
|
hestia_earth/models/pooreNemecek2018/__init__.py,sha256=nPboL7ULJzL5nJD5q7q9VOZt_fxbKVm8fmn1Az5YkVY,417
|
|
369
371
|
hestia_earth/models/pooreNemecek2018/aboveGroundCropResidueTotal.py,sha256=Qt-mel4dkhK6N5uUOutNOinCTFjbjtGzITaaI0LvYc4,2396
|
|
370
372
|
hestia_earth/models/pooreNemecek2018/belowGroundCropResidue.py,sha256=JT0RybbvWVlo01FO8K0Yj41HrEaJT3Kj1xfayr2X-xw,2315
|
|
@@ -451,7 +453,7 @@ hestia_earth/models/schererPfister2015/pErosionSoilFlux.py,sha256=aWvcphQU4JMGiI
|
|
|
451
453
|
hestia_earth/models/schererPfister2015/pToDrainageWaterSoilFlux.py,sha256=iQs5lLLgGr1thOQ0ZnTLJDJjX7RBwPdu--8p81BZ988,2310
|
|
452
454
|
hestia_earth/models/schererPfister2015/pToGroundwaterSoilFlux.py,sha256=tH-jyd8PFGvEVCO9u4coyVhghYcZyPgbPWQXQsTmDMg,1972
|
|
453
455
|
hestia_earth/models/schererPfister2015/pToSurfaceWaterSoilFlux.py,sha256=evd2jmFZ9lq-uwXiBTgP5wJ-KTjNBVztjSp8eW9-8qg,2947
|
|
454
|
-
hestia_earth/models/schererPfister2015/utils.py,sha256=
|
|
456
|
+
hestia_earth/models/schererPfister2015/utils.py,sha256=40IbxK5w5DuwVSm9ox6v2ibzt29it7ugYThUWpvYOIU,3145
|
|
455
457
|
hestia_earth/models/schmidt2007/__init__.py,sha256=xheSN6LOGXpWx7Hnv83onhe60Xk1_jk1PJg1nH_aZOQ,412
|
|
456
458
|
hestia_earth/models/schmidt2007/ch4ToAirWasteTreatment.py,sha256=-N5uLvVHlA2djOs_lwR_8RmbeCfkPw5p3vmbqG2kzkI,1474
|
|
457
459
|
hestia_earth/models/schmidt2007/h2SToAirWasteTreatment.py,sha256=f8a5ZRuCltpO8GWwQ0l1laWrw2yPGqOPaq8j6ZOJFTE,1474
|
|
@@ -459,11 +461,11 @@ hestia_earth/models/schmidt2007/n2OToAirWasteTreatmentDirect.py,sha256=3i7tgar2D
|
|
|
459
461
|
hestia_earth/models/schmidt2007/nh3ToAirWasteTreatment.py,sha256=yGrw7LHTrgRU_LyUsdl96TO6omEZju7JaBbW_A8ufX4,1474
|
|
460
462
|
hestia_earth/models/schmidt2007/utils.py,sha256=pQ76IBWMwi10Wa5PjsehtdnOMw-GVgDtB4nLGYKT-Ic,812
|
|
461
463
|
hestia_earth/models/site/__init__.py,sha256=aVuLLhq0OQVm-_MZoq4JAKMidqexUWJBg_7mmojmDzc,405
|
|
462
|
-
hestia_earth/models/site/brackishWater.py,sha256=
|
|
464
|
+
hestia_earth/models/site/brackishWater.py,sha256=vLEhIZv5PUKwzwvIuYrWi7K---fq7ZXn0oJvfDZdMs4,1278
|
|
463
465
|
hestia_earth/models/site/cationExchangeCapacityPerKgSoil.py,sha256=0eH4A-tXJ0hvIkiYXWxlx8TfrdbIKUGYUDk97-yQJgg,3653
|
|
464
|
-
hestia_earth/models/site/flowingWater.py,sha256=
|
|
465
|
-
hestia_earth/models/site/freshWater.py,sha256=
|
|
466
|
-
hestia_earth/models/site/management.py,sha256=
|
|
466
|
+
hestia_earth/models/site/flowingWater.py,sha256=v3g5722GIA4zQAUQI9yGFiZvFvI1QAVZqlQrY-6_B3A,1731
|
|
467
|
+
hestia_earth/models/site/freshWater.py,sha256=FXs3Vt8V4e-wn325_dwSTOKlZtn5ksNUpvYGDeLJShY,1255
|
|
468
|
+
hestia_earth/models/site/management.py,sha256=iljb0YjZqQcilXNlYIffjfEqszvMaLRKJlgv0TKIe-M,9627
|
|
467
469
|
hestia_earth/models/site/netPrimaryProduction.py,sha256=UIIQkYd911qVzrWjxBLrC37e-RARIVgDwLdARY9BuLw,1849
|
|
468
470
|
hestia_earth/models/site/organicCarbonPerHa.py,sha256=O6t4D3Jj1kjMIBOpnIrJ58kzUP_FIlpMUEFKQAeS77c,14916
|
|
469
471
|
hestia_earth/models/site/organicCarbonPerKgSoil.py,sha256=t--wAshiAKS-JvEKhLFRadGvgSBv5NFZ68jdyms_wh4,1945
|
|
@@ -476,7 +478,7 @@ hestia_earth/models/site/precipitationAnnual.py,sha256=to14BEFjUaYyCu5aIBQZtuaIr
|
|
|
476
478
|
hestia_earth/models/site/precipitationMonthly.py,sha256=yGUbiUCu1Prp3qVHuZodGrcfrbYu170WTUGyaj-KEjY,1896
|
|
477
479
|
hestia_earth/models/site/rainfallAnnual.py,sha256=Ix_B8Ny7IIRkJ_3lUvoHOjPgqCyR9I0U3_ADUUtMqsY,2003
|
|
478
480
|
hestia_earth/models/site/rainfallMonthly.py,sha256=2Uo8F-YxnTK0_txlHmiAyVp1bGfWD4bneRKyg4tdQkI,1881
|
|
479
|
-
hestia_earth/models/site/salineWater.py,sha256=
|
|
481
|
+
hestia_earth/models/site/salineWater.py,sha256=wO_Dyufqni66qSCpunrJUr0ou45QrcpZc8-GtZDH9VU,1256
|
|
480
482
|
hestia_earth/models/site/soilMeasurement.py,sha256=8xUDajU_KzBVFEj7yfwIZxVXJ14C_AKAxEs4uSnFyps,7164
|
|
481
483
|
hestia_earth/models/site/temperatureAnnual.py,sha256=Q3b1RH2_hpA0JWwOYA5nKgMGcXHjV8-akXT9vB0cbwc,2012
|
|
482
484
|
hestia_earth/models/site/temperatureMonthly.py,sha256=yXwpFCGT2tUqvVBNedaPyBmN_KlzZqo5yv2TWem1pBk,1890
|
|
@@ -489,24 +491,24 @@ hestia_earth/models/site/post_checks/__init__.py,sha256=CkExxesk1GuG8NjrbKfix1iD
|
|
|
489
491
|
hestia_earth/models/site/post_checks/cache.py,sha256=_MZsNsclecUdHDT2MsYx4cEsVUXydIasddgZNA6SU4k,284
|
|
490
492
|
hestia_earth/models/site/pre_checks/__init__.py,sha256=fjv6nU5fiL-CLyaa-cBpiLB-xujgPzeK7i7ZJuTOjCI,394
|
|
491
493
|
hestia_earth/models/site/pre_checks/cache_geospatialDatabase.py,sha256=MoQ76e0S63uvoFhqBbhG0GuoJ9bZgX_vrXz2_Id44Jw,5290
|
|
492
|
-
hestia_earth/models/site/pre_checks/cache_sources.py,sha256=
|
|
494
|
+
hestia_earth/models/site/pre_checks/cache_sources.py,sha256=13kbIzCGox3IEsnCwpRi_ioHFcc1NhMm8yeW_8MOSGw,794
|
|
493
495
|
hestia_earth/models/site/pre_checks/cache_years.py,sha256=qGwTaHlWxnVT7iVxXVcpJ-oG6M-VH4ZpCDTdTixUHR4,883
|
|
494
496
|
hestia_earth/models/stehfestBouwman2006/__init__.py,sha256=EhvD4NK6oEPevusLb1WdYV3GT_fCtQx4gvdMhK_dEIQ,420
|
|
495
|
-
hestia_earth/models/stehfestBouwman2006/n2OToAirCropResidueDecompositionDirect.py,sha256=
|
|
496
|
-
hestia_earth/models/stehfestBouwman2006/n2OToAirExcretaDirect.py,sha256=
|
|
497
|
-
hestia_earth/models/stehfestBouwman2006/n2OToAirInorganicFertiliserDirect.py,sha256=
|
|
498
|
-
hestia_earth/models/stehfestBouwman2006/n2OToAirOrganicFertiliserDirect.py,sha256=
|
|
497
|
+
hestia_earth/models/stehfestBouwman2006/n2OToAirCropResidueDecompositionDirect.py,sha256=xBlTvf2I3wk2s_EkyuFqeSAb372Ke8Ru4ufZolPRYsw,2727
|
|
498
|
+
hestia_earth/models/stehfestBouwman2006/n2OToAirExcretaDirect.py,sha256=m0Gm6ChsxkywbceqGvip2khBb9hk6CbYDvBDTNXqh5M,2907
|
|
499
|
+
hestia_earth/models/stehfestBouwman2006/n2OToAirInorganicFertiliserDirect.py,sha256=taYJOKnCOsl_rkL8vm80TzmHvR90b73FI2EGUxBLFLc,3061
|
|
500
|
+
hestia_earth/models/stehfestBouwman2006/n2OToAirOrganicFertiliserDirect.py,sha256=3FOqre8avgMha7SSx-gt4LNGSD4FMxlD-Jtmk-uqBO4,3048
|
|
499
501
|
hestia_earth/models/stehfestBouwman2006/n2OToAirSoilFlux.py,sha256=9vRDBWFdBrT9nV7smBBZK547bBv-L7hDk4SjtRaVwuc,7233
|
|
500
|
-
hestia_earth/models/stehfestBouwman2006/noxToAirCropResidueDecomposition.py,sha256=
|
|
501
|
-
hestia_earth/models/stehfestBouwman2006/noxToAirExcreta.py,sha256=
|
|
502
|
-
hestia_earth/models/stehfestBouwman2006/noxToAirInorganicFertiliser.py,sha256=
|
|
503
|
-
hestia_earth/models/stehfestBouwman2006/noxToAirOrganicFertiliser.py,sha256=
|
|
502
|
+
hestia_earth/models/stehfestBouwman2006/noxToAirCropResidueDecomposition.py,sha256=_YAnxKD-NfIxPNa-5vWxO0JbExc4gzgSZjqrhOJ_Whk,2390
|
|
503
|
+
hestia_earth/models/stehfestBouwman2006/noxToAirExcreta.py,sha256=1IbIdt90U7busEMUdNPPnAAse2Tjw5nmpjkeX9N50CI,2570
|
|
504
|
+
hestia_earth/models/stehfestBouwman2006/noxToAirInorganicFertiliser.py,sha256=yzxUp4Q_XcCgLGCynMMQH6XKGofvG8_RQKMeC8SBi88,2727
|
|
505
|
+
hestia_earth/models/stehfestBouwman2006/noxToAirOrganicFertiliser.py,sha256=kfxaCFHjB4mLE7OPA_DoCrca-i4Vh1XOF_jr8pqFwQE,2711
|
|
504
506
|
hestia_earth/models/stehfestBouwman2006/noxToAirSoilFlux.py,sha256=shWEXw4uXkZ2vr21aQdO-86f8FiIQuiu7kbVk6TCBlY,4846
|
|
505
507
|
hestia_earth/models/stehfestBouwman2006GisImplementation/__init__.py,sha256=hPufyIt8yDk35sR669ywh3YH3FhViWi5PC5WD9d39WE,437
|
|
506
|
-
hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirCropResidueDecomposition.py,sha256=
|
|
507
|
-
hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirExcreta.py,sha256=
|
|
508
|
-
hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirInorganicFertiliser.py,sha256=
|
|
509
|
-
hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirOrganicFertiliser.py,sha256=
|
|
508
|
+
hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirCropResidueDecomposition.py,sha256=LKJ28DLgdqL462MKncZ-3a1eFX_-Ln40AArP1hUu77Y,2112
|
|
509
|
+
hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirExcreta.py,sha256=hl53K8kPSWjeUstcPMe7vqsfK_246_-f43tBEvUFCpU,2292
|
|
510
|
+
hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirInorganicFertiliser.py,sha256=q3NSczMLNRbbAPnnr-xf0LS8QE2caprgXCtGQKK8FMw,2449
|
|
511
|
+
hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirOrganicFertiliser.py,sha256=82dpktSncKJn1cpq3j8gpP7tW7-eB9J7ykT6Lgm0G4Q,2433
|
|
510
512
|
hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirSoilFlux.py,sha256=yRsk-WcI13mVz4jerCAxJY91hqNs2JelXhbufP83Km0,3403
|
|
511
513
|
hestia_earth/models/transformation/__init__.py,sha256=63Y_fXFBn4sX2l7F0hMsWkgIvxk5Tw9XoDBQr6bUBQQ,352
|
|
512
514
|
hestia_earth/models/transformation/input/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -526,9 +528,9 @@ hestia_earth/models/utils/aggregated.py,sha256=sz6usleZmo_tC_hIvmGgYsX8-H0dulXmm
|
|
|
526
528
|
hestia_earth/models/utils/animalProduct.py,sha256=M5IunAKGY6oZv3j1Ascl34ywyeLWApqOIlBzbtlA2FE,721
|
|
527
529
|
hestia_earth/models/utils/aquacultureManagement.py,sha256=dxrbC1Xf140cohxTbSw6TxLAnAASWTdNZwBBam4yQnw,171
|
|
528
530
|
hestia_earth/models/utils/array_builders.py,sha256=0_Ik0gKoh1QBijyb-55odh8_dIs-CWQ3lgUN1Hnc4Y8,18749
|
|
529
|
-
hestia_earth/models/utils/blank_node.py,sha256=
|
|
531
|
+
hestia_earth/models/utils/blank_node.py,sha256=TpjIepoRvHnffOjmv-N4HjYyMLCdUBGVrzwoPVCB3S8,43013
|
|
530
532
|
hestia_earth/models/utils/completeness.py,sha256=2-GusD9UycobDZq8y5jar0ZcOjyqnSbzPRT_5XMc4YA,1259
|
|
531
|
-
hestia_earth/models/utils/constant.py,sha256=
|
|
533
|
+
hestia_earth/models/utils/constant.py,sha256=7wn5LBdsqlLdCrPaVASYjsxNtbaOSdqVWKedOFgyzfY,3249
|
|
532
534
|
hestia_earth/models/utils/crop.py,sha256=kG054fryqPSBpmzvJFBy_CLiOdjrt7RMk5uTItO5ADg,2246
|
|
533
535
|
hestia_earth/models/utils/cropResidue.py,sha256=_0Q35CrliJeo31xGHsPWe8A2oHxijdIsOrf3gBEqhlA,612
|
|
534
536
|
hestia_earth/models/utils/cropResidueManagement.py,sha256=nIDFjf39rDD10UHSVudfDyu-EiL261g8jyrgS-2aDKw,347
|
|
@@ -546,7 +548,7 @@ hestia_earth/models/utils/indicator.py,sha256=fPq38ifd53xWbuOfoiVwiA0Nwa7jVPJLSA
|
|
|
546
548
|
hestia_earth/models/utils/inorganicFertiliser.py,sha256=_dLBY-otGkLr8PobR5dQ89bF2uwc2PB4JPrHFSksMEQ,1900
|
|
547
549
|
hestia_earth/models/utils/input.py,sha256=YycsAbSBfVDMu6PftDsisMFGnEp87wOj-3rrnHnOgzo,4927
|
|
548
550
|
hestia_earth/models/utils/liveAnimal.py,sha256=GnajBPZw5d94raf80KtLloaOqlfqGAPwUtP9bRlGWeE,1754
|
|
549
|
-
hestia_earth/models/utils/lookup.py,sha256=
|
|
551
|
+
hestia_earth/models/utils/lookup.py,sha256=cPFzUXUsgyvmm98quNJs5J1FbMdl1I7DxlTtmw0IWsw,6673
|
|
550
552
|
hestia_earth/models/utils/measurement.py,sha256=rss0nVmgL5uAWE7_aaGWIJAcg7SkWVpDUzgzHpuEpdo,12221
|
|
551
553
|
hestia_earth/models/utils/organicFertiliser.py,sha256=2HY-a0EBzUw4DkEAXClLMXVCEZTKYf0BwFHBo7lQ5Tg,363
|
|
552
554
|
hestia_earth/models/utils/pesticideAI.py,sha256=6f8b-dFm3qr-eY049_eOvj_iDk4XBam61csozdDAvyA,2361
|
|
@@ -555,7 +557,7 @@ hestia_earth/models/utils/product.py,sha256=H9UqJNzTqtMWXDQnbRkZlTpv_hg4s-Tya469
|
|
|
555
557
|
hestia_earth/models/utils/productivity.py,sha256=bUBVCZInGqHuHZvHDSYPQkjWXQxOtTjEk-1-f_BsFOo,594
|
|
556
558
|
hestia_earth/models/utils/property.py,sha256=gHPEmy3Sw599ox64Gv-LCvjhP1THlBXBaBlTOK5lvog,5060
|
|
557
559
|
hestia_earth/models/utils/site.py,sha256=yei3qk7edxb_boag9h8j713r06KGstjTBWdb1KjqMus,3602
|
|
558
|
-
hestia_earth/models/utils/source.py,sha256=
|
|
560
|
+
hestia_earth/models/utils/source.py,sha256=Y-CcO5Y3q5Hz4A4RdX35C1EUjL9w1NKnOrzVfOWQ7nU,1748
|
|
559
561
|
hestia_earth/models/utils/temperature.py,sha256=ljlG4-yCgFFb6LRZweb18cZKLrr7K2mqd4E4Hz_D1f8,476
|
|
560
562
|
hestia_earth/models/utils/term.py,sha256=n_T1Qp_0z9ZUgrbVACNKue-5yDePOCkDw8g8dlMKSTM,17763
|
|
561
563
|
hestia_earth/models/utils/transformation.py,sha256=nyT5Mz4_VgFwhkL8JoNX9kxxow0zuxzsYl3W8xOu2p0,370
|
|
@@ -643,15 +645,17 @@ tests/models/cycle/input/test_properties.py,sha256=5O2ubBE_WSLz5NRtLTGwsE-gADIcw
|
|
|
643
645
|
tests/models/cycle/input/test_value.py,sha256=NR7KHsqnPnw43BB1efT0KPaszY4DKY293Av-lVde-DI,977
|
|
644
646
|
tests/models/cycle/post_checks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
645
647
|
tests/models/cycle/post_checks/test_cache.py,sha256=5QD8Yk9HbDePHSIXOJUM_ptZCroOQRf53bIXZod6fTA,194
|
|
648
|
+
tests/models/cycle/post_checks/test_otherSites.py,sha256=SHCA82MvWy-CsuquvLgmiwAhIKJQONIc07z51QH5RpQ,359
|
|
646
649
|
tests/models/cycle/post_checks/test_site.py,sha256=In0Q0Tw3w_hV8_uAnOcL_iS2FoI_75lsq7MdoWLa5js,621
|
|
647
650
|
tests/models/cycle/practice/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
648
651
|
tests/models/cycle/practice/test_value.py,sha256=sYPoTkllrEt2oB92uA2q37FFtOjSX49749Nv1pUvqdw,1315
|
|
649
652
|
tests/models/cycle/pre_checks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
650
653
|
tests/models/cycle/pre_checks/test_cache_sources.py,sha256=tvk7E1LlJSq2Sb2MKBRlxWQBCUCHaSbM9ndTsg4d9ik,797
|
|
654
|
+
tests/models/cycle/pre_checks/test_otherSites.py,sha256=IEWvG2hwmladHctZUy6jTg01ZnCvWJUtPgD4GHKcumQ,502
|
|
651
655
|
tests/models/cycle/pre_checks/test_site.py,sha256=2JTrsOXVGfNn7FlLiX7DPNs6AHdeZuVvjNZP6SCjEII,694
|
|
652
656
|
tests/models/cycle/product/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
653
657
|
tests/models/cycle/product/test_currency.py,sha256=r7TA0FDDS9U50-FolEMXESi4pvSmwXnQxAHrQh0lRjA,1222
|
|
654
|
-
tests/models/cycle/product/test_economicValueShare.py,sha256=
|
|
658
|
+
tests/models/cycle/product/test_economicValueShare.py,sha256=sFS-gKt6oglqeKuDqHsPfZ90cEROOIdydFsOu4E85eo,4624
|
|
655
659
|
tests/models/cycle/product/test_price.py,sha256=zmWNdF2P4k2QTje_62NJDklCIwmk2vF8xuOoVzL9qf0,1193
|
|
656
660
|
tests/models/cycle/product/test_primary.py,sha256=UfLOOxUkDyeSOmDv4NyN6v5Yf0RO9etZNT797fbCbpA,1862
|
|
657
661
|
tests/models/cycle/product/test_properties.py,sha256=7pcBH_Ny8JeQ2dWXBU-ZSmY5iYl0f_qFejp8Vk5e1H8,1142
|
|
@@ -770,7 +774,7 @@ tests/models/ipcc2019/test_ch4ToAirEntericFermentation.py,sha256=3Hv86L4X_Va2mZL
|
|
|
770
774
|
tests/models/ipcc2019/test_ch4ToAirExcreta.py,sha256=e58NXmBW2SNVLUqQO9A66Xq6jiGTyhdFZDZk51JApF8,2902
|
|
771
775
|
tests/models/ipcc2019/test_ch4ToAirFloodedRice.py,sha256=FAp5b45WdX5Ih4yGUOZ4CmVD8smW1Lw1tnulx9AKVBI,1980
|
|
772
776
|
tests/models/ipcc2019/test_co2ToAirLimeHydrolysis.py,sha256=e5iuZ-kQNEVih0ZRgRPWqaUtXcLpfkoU7sQypbqA9_Y,1345
|
|
773
|
-
tests/models/ipcc2019/test_co2ToAirSoilOrganicCarbonStockChangeManagementChange.py,sha256=
|
|
777
|
+
tests/models/ipcc2019/test_co2ToAirSoilOrganicCarbonStockChangeManagementChange.py,sha256=kUGdV_G1cb0bWzxhyMXnJVeiRrlOPv4v1UdHoXI3uM8,4423
|
|
774
778
|
tests/models/ipcc2019/test_co2ToAirUreaHydrolysis.py,sha256=MmtEME0xjsa3KojFk_fxOLK6RZM_6p5HIpY2DOFHVu4,1530
|
|
775
779
|
tests/models/ipcc2019/test_croppingDuration.py,sha256=gLRXeR6Tqa7ciD9KTRfsIflSeIIWT2iOpZMdcxAQla4,1871
|
|
776
780
|
tests/models/ipcc2019/test_ligninContent.py,sha256=eIKEN__ab-0R52EhlhPSBiHnmTl6xOf1XbI33O-W9A4,4146
|
|
@@ -791,13 +795,13 @@ tests/models/ipcc2019/test_no3ToGroundwaterInorganicFertiliser.py,sha256=e7REnQ9
|
|
|
791
795
|
tests/models/ipcc2019/test_no3ToGroundwaterOrganicFertiliser.py,sha256=e1ZViD12qB3bLdH3TJw3GbBP8iqMen-UJbcFkytb3VQ,1609
|
|
792
796
|
tests/models/ipcc2019/test_noxToAirInorganicFertiliser.py,sha256=NZBSBJLM_j2PEpHRON2ysgKNF8x5sHfQVoAKQdGsfzk,1537
|
|
793
797
|
tests/models/ipcc2019/test_noxToAirOrganicFertiliser.py,sha256=LR5pjV5vRbgSSQAw8kYRp_ij4CHInzgaDS6EggQuBiw,1104
|
|
794
|
-
tests/models/ipcc2019/test_organicCarbonPerHa.py,sha256=
|
|
798
|
+
tests/models/ipcc2019/test_organicCarbonPerHa.py,sha256=PJ3l2LexjybgA3IIYzYYZ01akYq5EjmCT4y6JYavL54,13989
|
|
795
799
|
tests/models/ipcc2019/test_organicCarbonPerHa_tier_1_utils.py,sha256=e5RpK4GlH9tNxbwEyPQkO2lMwYBtGNp8ha8j4bZF9eg,20699
|
|
796
800
|
tests/models/ipcc2019/test_organicCarbonPerHa_tier_2_utils.py,sha256=gHAi0qr9vE2_TtyJOqOc5Wc8ZRIflQz8vKBOcvKTzCE,7020
|
|
797
801
|
tests/models/ipcc2019/test_organicCarbonPerHa_utils.py,sha256=Zd2QlN_Q3k9djuByOH62A00tryVzlvNtsd46N79TTeU,1778
|
|
798
|
-
tests/models/ipcc2019/test_pastureGrass.py,sha256=
|
|
802
|
+
tests/models/ipcc2019/test_pastureGrass.py,sha256=xcFXpszkqgeJImWOp-JlJxpcSHQKC-Pi0zdaKfai4a4,2660
|
|
799
803
|
tests/models/ipcc2019/animal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
800
|
-
tests/models/ipcc2019/animal/test_pastureGrass.py,sha256=
|
|
804
|
+
tests/models/ipcc2019/animal/test_pastureGrass.py,sha256=IifdYacwC_cXn5wHeLqq2e0fJeIe8WLWOumYKY36MrE,1979
|
|
801
805
|
tests/models/ipcc2019/animal/test_weightAtMaturity.py,sha256=Tss9bTVz66yXVEBZT31KMm6gd45B9E1DJLqwYArPuYY,665
|
|
802
806
|
tests/models/ipcc2021/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
803
807
|
tests/models/ipcc2021/test_gwp100.py,sha256=JRklKMSg-OXopb9ZufGgl94deuMuJSsfNXRZDBtOZrE,1119
|
|
@@ -1004,7 +1008,7 @@ tests/models/site/test_brackishWater.py,sha256=YGCp4glaWudKklYBSp-50KbfvIRtp3F4Q
|
|
|
1004
1008
|
tests/models/site/test_cationExchangeCapacityPerKgSoil.py,sha256=tNMhN998vcjQ15I-5mNnFh2d7mHzEBIBO6o1VSfQNUE,1075
|
|
1005
1009
|
tests/models/site/test_flowingWater.py,sha256=t_rxvdlmUVDsFBoDF20_zDM-0iiLKkNCV7knO9l1T7o,1370
|
|
1006
1010
|
tests/models/site/test_freshWater.py,sha256=GOeAxHhPW_2E1wQdQRX4W-r7mnb_LgmiAVLImitoApw,982
|
|
1007
|
-
tests/models/site/test_management.py,sha256=
|
|
1011
|
+
tests/models/site/test_management.py,sha256=1ecEbbHNmzA-qSw9-d_sGi-j64FXOCxUm1WLSEmPJHU,12659
|
|
1008
1012
|
tests/models/site/test_netPrimaryProduction.py,sha256=JCxG0MODbKVvl3hOqmKzh4FjHYn3Xs9KsVod6LvKQII,1108
|
|
1009
1013
|
tests/models/site/test_organicCarbonPerHa.py,sha256=XtGrE7ZqthTF0x8lDxJ1slNd_GvYHEyEydcRgA46jEc,3207
|
|
1010
1014
|
tests/models/site/test_organicCarbonPerKgSoil.py,sha256=0M-NMg_T3UXzGT_VlKOKhSxg4cZ0_zhd3FRgY5Hpj6o,1087
|
|
@@ -1028,7 +1032,7 @@ tests/models/site/measurement/test_value.py,sha256=i6w7X0Qb9utIGeopjQLz4S3tBrXVV
|
|
|
1028
1032
|
tests/models/site/post_checks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1029
1033
|
tests/models/site/post_checks/test_cache.py,sha256=g34PQgfyzYveRT-gVKJl0euyBp-Kav8JnBVk-bod1WA,191
|
|
1030
1034
|
tests/models/site/pre_checks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1031
|
-
tests/models/site/pre_checks/test_cache_sources.py,sha256=
|
|
1035
|
+
tests/models/site/pre_checks/test_cache_sources.py,sha256=KhNti9AsuMDBxliwyudlCVCj2WeyjqqTp6iIqSsV4AA,729
|
|
1032
1036
|
tests/models/site/pre_checks/test_cache_years.py,sha256=sU0OhXGa4wC2DKduzlcxQVc51srS0Oks3L1gh1nJGf8,756
|
|
1033
1037
|
tests/models/stehfestBouwman2006/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1034
1038
|
tests/models/stehfestBouwman2006/test_n2OToAirCropResidueDecompositionDirect.py,sha256=NF0wADubo9boAuYMtUGH30s4tieHE8LNrf547JgmlAE,677
|
|
@@ -1061,7 +1065,7 @@ tests/models/usetoxV2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
|
1061
1065
|
tests/models/usetoxV2/test_freshwaterEcotoxicityPotentialCtue.py,sha256=eq7Gcmfya9g0eOKKkuBhz8vq7xi_CmZ_LTSxueBwZt4,835
|
|
1062
1066
|
tests/models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1063
1067
|
tests/models/utils/test_array_builders.py,sha256=1zTc5r6Y9fcQ3x67S9Am0G3ip4Kp9_MmiSqIvY-M6yc,6470
|
|
1064
|
-
tests/models/utils/test_blank_node.py,sha256=
|
|
1068
|
+
tests/models/utils/test_blank_node.py,sha256=QE7rIKiak2hkLWowlQvifGrLbZy7mP_xb6Os408wA3o,29563
|
|
1065
1069
|
tests/models/utils/test_crop.py,sha256=ve_BqT2XuLTWAH-8YOnVY4nzMUSXYYXPB8S-5RtGlf4,463
|
|
1066
1070
|
tests/models/utils/test_cropResidueManagement.py,sha256=RQt8lexeJzCyxZceIutgDpw7BpcqmjsUB0C0yZC2QpY,930
|
|
1067
1071
|
tests/models/utils/test_currency.py,sha256=BPsojPsY9QW2aj8vgbjkPQXU8GU6wDwwtPZ3HdC4KTU,277
|
|
@@ -1073,6 +1077,7 @@ tests/models/utils/test_impact_assessment.py,sha256=qEm4Y5txWnkSJKP1puvwgKFXkv06
|
|
|
1073
1077
|
tests/models/utils/test_indicator.py,sha256=GwYKV5N_yEPcJWz7FirRnK48rl62ofAn_TkAo0MioIM,639
|
|
1074
1078
|
tests/models/utils/test_input.py,sha256=bSG6YKmT2ofY2oD5CGbNwR8-To-ihyNyr14Td5-jNRU,585
|
|
1075
1079
|
tests/models/utils/test_liveAnimal.py,sha256=bntT4vULWsDF2DOigtiMjpS0gJS5ipalPsfrk-JxC-I,986
|
|
1080
|
+
tests/models/utils/test_lookup.py,sha256=107k7wsqDkxm_HFQ41W6gU1naslx3TXz1yDRQ5OhF10,401
|
|
1076
1081
|
tests/models/utils/test_measurement.py,sha256=8_sdjySFeZOAS9USZg_CxSSmSSxawutfG_zS-lwcnVI,4436
|
|
1077
1082
|
tests/models/utils/test_practice.py,sha256=ILaxkb3qICor9AquAGYiOtA-YKnq0hppmJQzNC_VNyA,612
|
|
1078
1083
|
tests/models/utils/test_product.py,sha256=kwvgAeeEoRgkeStX0zQcFd-4DJhoUhX6Apaks0MU2L0,2305
|
|
@@ -1082,8 +1087,8 @@ tests/models/utils/test_source.py,sha256=mv3vHZV5cjpoLA2I1109-YUkuzAiuhbRSnv_76_
|
|
|
1082
1087
|
tests/models/utils/test_term.py,sha256=M5Sa26v2gzQYbZ4H_fo7DspnaCx__-WtL-MULGapCWk,3509
|
|
1083
1088
|
tests/models/webbEtAl2012AndSintermannEtAl2012/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1084
1089
|
tests/models/webbEtAl2012AndSintermannEtAl2012/test_nh3ToAirOrganicFertiliser.py,sha256=qi2FNXS5Af2WDtm7nq_FsprH3BfCF0XxnE0XHmC4aIY,2244
|
|
1085
|
-
hestia_earth_models-0.
|
|
1086
|
-
hestia_earth_models-0.
|
|
1087
|
-
hestia_earth_models-0.
|
|
1088
|
-
hestia_earth_models-0.
|
|
1089
|
-
hestia_earth_models-0.
|
|
1090
|
+
hestia_earth_models-0.62.1.dist-info/LICENSE,sha256=AC7h7GAgCZGJK_Tzh6LUCrML9gQEfowWwecEw2w54QM,1154
|
|
1091
|
+
hestia_earth_models-0.62.1.dist-info/METADATA,sha256=qY8BwGkgTl3hz-Z_6-hq_wEHb2H6bnDiHbC2MdBwu1Q,3350
|
|
1092
|
+
hestia_earth_models-0.62.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
1093
|
+
hestia_earth_models-0.62.1.dist-info/top_level.txt,sha256=1dqA9TqpOLTEgpqa-YBsmbCmmNU1y56AtfFGEceZ2A0,19
|
|
1094
|
+
hestia_earth_models-0.62.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from tests.utils import SITE
|
|
2
|
+
|
|
3
|
+
from hestia_earth.models.cycle.post_checks.otherSites import run
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def test_run_no_otherSites():
|
|
7
|
+
cycle = {}
|
|
8
|
+
value = run(cycle)
|
|
9
|
+
assert 'otherSites' not in value
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def test_run():
|
|
13
|
+
cycle = {'otherSites': [SITE]}
|
|
14
|
+
value = run(cycle)
|
|
15
|
+
assert value['otherSites'] == [{'@type': SITE['@type'], '@id': SITE['@id']}]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from unittest.mock import patch
|
|
2
|
+
from tests.utils import SITE
|
|
3
|
+
|
|
4
|
+
from hestia_earth.models.cycle.pre_checks.otherSites import run
|
|
5
|
+
|
|
6
|
+
class_path = 'hestia_earth.models.cycle.pre_checks.otherSites'
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def test_run_no_otherSites():
|
|
10
|
+
cycle = {}
|
|
11
|
+
|
|
12
|
+
value = run(cycle)
|
|
13
|
+
assert 'otherSites' not in value
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@patch(f"{class_path}._load_calculated_node", return_value=SITE)
|
|
17
|
+
def test_run(*args):
|
|
18
|
+
cycle = {'otherSites': [{'@id': SITE['@id']}]}
|
|
19
|
+
|
|
20
|
+
value = run(cycle)
|
|
21
|
+
assert value['otherSites'] == [SITE]
|
|
@@ -148,3 +148,11 @@ def test_run_complete_above_80_percent():
|
|
|
148
148
|
|
|
149
149
|
value = run(cycle)
|
|
150
150
|
assert value == expected
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
def test_run_complete_2_products():
|
|
154
|
+
with open(f"{fixtures_folder}/complete-2-products/cycle.jsonld", encoding='utf-8') as f:
|
|
155
|
+
cycle = json.load(f)
|
|
156
|
+
|
|
157
|
+
value = run(cycle)
|
|
158
|
+
assert value == []
|
|
@@ -5,9 +5,9 @@ from tests.utils import fixtures_path, fake_new_input
|
|
|
5
5
|
from tests.models.ipcc2019.test_pastureGrass import MILK_YIELD_TERMS, WOOL_TERMS, TERMS_BY_ID
|
|
6
6
|
from hestia_earth.models.ipcc2019.animal.pastureGrass import MODEL, MODEL_KEY, run
|
|
7
7
|
|
|
8
|
-
class_path = f"hestia_earth.models.{MODEL}.{MODEL_KEY
|
|
8
|
+
class_path = f"hestia_earth.models.{MODEL}.animal.{MODEL_KEY}"
|
|
9
9
|
class_path_utils = f"hestia_earth.models.{MODEL}.pastureGrass_utils"
|
|
10
|
-
fixtures_folder = f"{fixtures_path}/{MODEL}/{MODEL_KEY}"
|
|
10
|
+
fixtures_folder = f"{fixtures_path}/{MODEL}/animal/{MODEL_KEY}"
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def fake_download_hestia(term_id: str, *args): return TERMS_BY_ID[term_id]
|
|
@@ -21,8 +21,11 @@ RUN_SCENARIOS = [
|
|
|
21
21
|
("overlapping-cycles", 4),
|
|
22
22
|
("complex-overlapping-cycles", 5),
|
|
23
23
|
("missing-measurement-dates", 3),
|
|
24
|
-
("no-organic-carbon-measurements", 1),
|
|
25
|
-
("
|
|
24
|
+
("no-organic-carbon-measurements", 1), # Closes issue #700
|
|
25
|
+
("non-consecutive-organic-carbon-measurements", 1), # Closes issue #827
|
|
26
|
+
("multiple-method-classifications", 5), # Closes issue #764
|
|
27
|
+
("non-soil-based-gohac-system", 3), # Closes issue #848
|
|
28
|
+
("soil-based-gohac-system", 3) # Closes issue #848
|
|
26
29
|
]
|
|
27
30
|
"""List of (subfolder: str, num_cycles: int)."""
|
|
28
31
|
|
|
@@ -84,7 +84,7 @@ DEFAULT_PROPERTIES = {
|
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
def fake_calc_descriptive_stats(arr: NDArray, *_args, **_kwargs):
|
|
87
|
-
return {"value": [row[0] for row in arr]}
|
|
87
|
+
return {"value": [round(row[0], 6) for row in arr]}
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
def fake_find_term_property(term: dict, property: str, *_):
|
|
@@ -113,6 +113,7 @@ PARAMS_SHOULD_RUN = [
|
|
|
113
113
|
("tier-1/land-use-change", True), # Closes issue 755
|
|
114
114
|
("tier-1/run-with-site-type", True), # Closes issue 755
|
|
115
115
|
("tier-1/cropland-polar", False), # Closes issue 794
|
|
116
|
+
("tier-1/cropland-with-system-increasing-c-input", True), # Closes issue 851
|
|
116
117
|
("tier-2/with-generalised-monthly-measurements", False), # Closes issue 600
|
|
117
118
|
("tier-2/with-incomplete-climate-data", False), # Closes issue 599
|
|
118
119
|
("tier-2/with-initial-soc", True),
|
|
@@ -50,22 +50,6 @@ def test_run(*args):
|
|
|
50
50
|
assert value == expected
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
@patch(f"{class_path_utils}.download_hestia", side_effect=fake_download_hestia)
|
|
54
|
-
@patch("hestia_earth.models.utils.property.download_hestia", side_effect=fake_download_hestia)
|
|
55
|
-
@patch(f"{class_path}.get_wool_terms", return_value=WOOL_TERMS)
|
|
56
|
-
@patch(f"hestia_earth.models.{MODEL}.utils.get_milkYield_terms", return_value=MILK_YIELD_TERMS)
|
|
57
|
-
@patch(f"{class_path}._new_input", side_effect=fake_new_input)
|
|
58
|
-
def test_run_with_feed(*args):
|
|
59
|
-
with open(f"{fixtures_folder}/with-feed/cycle.jsonld", encoding='utf-8') as f:
|
|
60
|
-
cycle = json.load(f)
|
|
61
|
-
|
|
62
|
-
with open(f"{fixtures_folder}/with-feed/result.jsonld", encoding='utf-8') as f:
|
|
63
|
-
expected = json.load(f)
|
|
64
|
-
|
|
65
|
-
value = run(cycle)
|
|
66
|
-
assert value == expected
|
|
67
|
-
|
|
68
|
-
|
|
69
53
|
@patch(f"{class_path_utils}.download_hestia", side_effect=fake_download_hestia)
|
|
70
54
|
@patch("hestia_earth.models.utils.property.download_hestia", side_effect=fake_download_hestia)
|
|
71
55
|
@patch(f"{class_path}.get_wool_terms", return_value=WOOL_TERMS)
|
|
@@ -6,17 +6,13 @@ class_path = 'hestia_earth.models.site.pre_checks.cache_sources'
|
|
|
6
6
|
sources = {'source a': {'@type': 'Source', '@id': 'source-1'}}
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
should_run, *args = _should_run({})
|
|
14
|
-
assert not should_run
|
|
9
|
+
def test_should_run():
|
|
10
|
+
# no existing cache => run
|
|
11
|
+
assert _should_run({CACHE_KEY: {}}) is True
|
|
12
|
+
assert _should_run({CACHE_KEY: {CACHE_SOURCES_KEY: {}}}) is True
|
|
15
13
|
|
|
16
|
-
# with
|
|
17
|
-
|
|
18
|
-
should_run, *args = _should_run({})
|
|
19
|
-
assert should_run is True
|
|
14
|
+
# with existing cache => no run
|
|
15
|
+
assert not _should_run({CACHE_KEY: {CACHE_SOURCES_KEY: {'sample': 'a'}}})
|
|
20
16
|
|
|
21
17
|
|
|
22
18
|
@patch(f"{class_path}.find_sources", return_value=sources)
|