hestia-earth-models 0.63.0__py3-none-any.whl → 0.64.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/cycle/endDate.py +47 -0
- hestia_earth/models/cycle/otherSitesUnusedDuration.py +91 -0
- hestia_earth/models/cycle/siteUnusedDuration.py +2 -1
- hestia_earth/models/cycle/startDate.py +38 -10
- hestia_earth/models/cycle/startDateDefinition.py +2 -2
- hestia_earth/models/cycle/unknownPreSeasonWaterRegime.py +51 -0
- hestia_earth/models/ecoinventV3/__init__.py +18 -2
- hestia_earth/models/edip2003/__init__.py +13 -0
- hestia_earth/models/edip2003/ozoneDepletionPotential.py +34 -0
- hestia_earth/models/faostat2018/landTransformationFromCropland100YearAverage.py +1 -1
- hestia_earth/models/faostat2018/landTransformationFromCropland20YearAverage.py +1 -1
- hestia_earth/models/faostat2018/utils.py +2 -2
- hestia_earth/models/geospatialDatabase/clayContent.py +44 -17
- hestia_earth/models/geospatialDatabase/organicCarbonPerKgSoil.py +43 -17
- hestia_earth/models/geospatialDatabase/sandContent.py +43 -16
- hestia_earth/models/geospatialDatabase/siltContent.py +58 -18
- hestia_earth/models/geospatialDatabase/soilPh.py +43 -16
- hestia_earth/models/geospatialDatabase/totalNitrogenPerKgSoil.py +45 -15
- hestia_earth/models/geospatialDatabase/utils.py +11 -5
- hestia_earth/models/hyde32/landTransformationFromCropland100YearAverageDuringCycle.py +2 -1
- hestia_earth/models/hyde32/landTransformationFromCropland20YearAverageDuringCycle.py +2 -1
- hestia_earth/models/hyde32/landTransformationFromForest100YearAverageDuringCycle.py +2 -1
- hestia_earth/models/hyde32/landTransformationFromForest20YearAverageDuringCycle.py +2 -1
- hestia_earth/models/hyde32/landTransformationFromOtherNaturalVegetation100YearAverageDuringCycle.py +2 -1
- hestia_earth/models/hyde32/landTransformationFromOtherNaturalVegetation20YearAverageDuringCycle.py +2 -1
- hestia_earth/models/hyde32/landTransformationFromPermanentPasture100YearAverageDuringCycle.py +2 -1
- hestia_earth/models/hyde32/landTransformationFromPermanentPasture20YearAverageDuringCycle.py +2 -1
- hestia_earth/models/hyde32/utils.py +7 -4
- hestia_earth/models/impact_assessment/allocationMethod.py +39 -0
- hestia_earth/models/impact_assessment/emissions.py +3 -1
- hestia_earth/models/mocking/search-results.json +61 -19
- hestia_earth/models/pooreNemecek2018/excretaKgN.py +9 -9
- hestia_earth/models/pooreNemecek2018/excretaKgVs.py +6 -8
- hestia_earth/models/poschEtAl2008/__init__.py +13 -0
- hestia_earth/models/poschEtAl2008/terrestrialAcidificationPotentialAccumulatedExceedance.py +40 -0
- hestia_earth/models/site/management.py +15 -1
- hestia_earth/models/site/pre_checks/cache_geospatialDatabase.py +23 -16
- hestia_earth/models/site/waterDepth.py +0 -3
- hestia_earth/models/utils/indicator.py +3 -1
- hestia_earth/models/utils/term.py +34 -0
- hestia_earth/models/version.py +1 -1
- {hestia_earth_models-0.63.0.dist-info → hestia_earth_models-0.64.1.dist-info}/METADATA +3 -3
- {hestia_earth_models-0.63.0.dist-info → hestia_earth_models-0.64.1.dist-info}/RECORD +72 -56
- tests/models/cycle/test_endDate.py +22 -0
- tests/models/cycle/test_otherSitesUnusedDuration.py +54 -0
- tests/models/cycle/test_startDate.py +23 -5
- tests/models/cycle/test_unknownPreSeasonWaterRegime.py +36 -0
- tests/models/edip2003/__init__.py +0 -0
- tests/models/edip2003/test_ozoneDepletionPotential.py +46 -0
- tests/models/geospatialDatabase/test_clayContent.py +16 -2
- tests/models/geospatialDatabase/test_organicCarbonPerKgSoil.py +16 -2
- tests/models/geospatialDatabase/test_sandContent.py +16 -2
- tests/models/geospatialDatabase/test_siltContent.py +2 -2
- tests/models/geospatialDatabase/test_soilPh.py +16 -2
- tests/models/geospatialDatabase/test_totalNitrogenPerKgSoil.py +16 -2
- tests/models/hyde32/test_landTransformationFromCropland100YearAverageDuringCycle.py +1 -0
- tests/models/hyde32/test_landTransformationFromCropland20YearAverageDuringCycle.py +1 -0
- tests/models/hyde32/test_landTransformationFromForest100YearAverageDuringCycle.py +1 -0
- tests/models/hyde32/test_landTransformationFromForest20YearAverageDuringCycle.py +1 -0
- tests/models/hyde32/test_landTransformationFromOtherNaturalVegetation100YearAverageDuringCycle.py +1 -0
- tests/models/hyde32/test_landTransformationFromOtherNaturalVegetation20YearAverageDuringCycle.py +1 -0
- tests/models/hyde32/test_landTransformationFromPermanentPasture100YearAverageDuringCycle.py +1 -0
- tests/models/hyde32/test_landTransformationFromPermanentPasture20YearAverageDuringCycle.py +1 -0
- tests/models/impact_assessment/test_allocationMethod.py +48 -0
- tests/models/poschEtAl2008/__init__.py +0 -0
- tests/models/poschEtAl2008/test_terrestrialAcidificationPotentialAccumulatedExceedance.py +45 -0
- tests/models/test_cache_sites.py +10 -4
- tests/models/test_ecoinventV3.py +1 -0
- tests/models/utils/test_source.py +1 -1
- {hestia_earth_models-0.63.0.dist-info → hestia_earth_models-0.64.1.dist-info}/LICENSE +0 -0
- {hestia_earth_models-0.63.0.dist-info → hestia_earth_models-0.64.1.dist-info}/WHEEL +0 -0
- {hestia_earth_models-0.63.0.dist-info → hestia_earth_models-0.64.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=DbfNcGzaC5hzkuMDxQqW6XYoNBI4Uxw4SIoOYoZA6og,3474
|
|
5
5
|
hestia_earth/models/preload_requests.py,sha256=Ibx-YOhR_1yuyFBxsLUbvJHVK7PLyMLoPu5l9jDN_Qk,1342
|
|
6
6
|
hestia_earth/models/requirements.py,sha256=eU4yT443fx7BnaokhrLB_PCizJI7Y6m4auyo8vQauNg,17363
|
|
7
|
-
hestia_earth/models/version.py,sha256=
|
|
7
|
+
hestia_earth/models/version.py,sha256=ynV6q1Uuf9gDmUxe-eyYGdhh8GzowZGw5X9OY5kt03Y,19
|
|
8
8
|
hestia_earth/models/agribalyse2016/__init__.py,sha256=WvK0qCQbnYtg9oZxrACd1wGormZyXibPtpCnIQeDqbw,415
|
|
9
9
|
hestia_earth/models/agribalyse2016/fuelElectricity.py,sha256=tnGxBmJdPfPFfehLUQcefEqy1lHvzsSpx_s7O8nf3Zs,4412
|
|
10
10
|
hestia_earth/models/agribalyse2016/machineryInfrastructureDepreciatedAmountPerCycle.py,sha256=_Rbngu0DzHKa62JwBl58ZC_ui1zLF2que_nB7ukhOQc,3392
|
|
@@ -41,6 +41,7 @@ hestia_earth/models/cycle/concentrateFeed.py,sha256=wiq9KLRuipHz_2_CVfXDuUek0JN1
|
|
|
41
41
|
hestia_earth/models/cycle/cropResidueManagement.py,sha256=QTRCCFu9VvD_a3_8aAj216vsuhAJEhlAwTJH7ifMkDo,2237
|
|
42
42
|
hestia_earth/models/cycle/croppingIntensity.py,sha256=44CgDqXg9CBRfTPYTyOleQT-M4_tsQgPba-0vjjk_C4,1770
|
|
43
43
|
hestia_earth/models/cycle/cycleDuration.py,sha256=SuTFqCP3Zr3nOV9HuvvvIVcaHtOlTAdSaaswvRLSEwc,3242
|
|
44
|
+
hestia_earth/models/cycle/endDate.py,sha256=xxTa3Pmu7udJwGYiTn7tcp9_Pl_SM7de9ezbR7sYvUk,1382
|
|
44
45
|
hestia_earth/models/cycle/energyContentLowerHeatingValue.py,sha256=AyVKCQbb3Pto3Ca__F0KJ_wlwTxbPd7mUyehZW7AJPM,2212
|
|
45
46
|
hestia_earth/models/cycle/excretaKgMass.py,sha256=iA8Kfl3WvyxbQpx1QOGPQZ9O_Pc5rj7xhucYx3rB8Co,3949
|
|
46
47
|
hestia_earth/models/cycle/excretaKgN.py,sha256=mgJTneQIYJ9Su-rTK5ppb_k3YhICFNWsfPZtGR98RI0,2968
|
|
@@ -50,6 +51,7 @@ hestia_earth/models/cycle/irrigatedTypeUnspecified.py,sha256=KlIa5eDvT47Twz6Q1kp
|
|
|
50
51
|
hestia_earth/models/cycle/liveAnimal.py,sha256=LWAMnNKRoLDdChrGApVIN-Ns7em0Lspz5UtLbf7PPLY,3988
|
|
51
52
|
hestia_earth/models/cycle/longFallowRatio.py,sha256=_h0kub99sACO87IfjMeiu8IgdK2jaeBlgGA9A9-ViZA,1683
|
|
52
53
|
hestia_earth/models/cycle/milkYield.py,sha256=RhzePjkvEAGicTzRA4eatc0K_4NSGHhyEhYF0EbbGXw,5820
|
|
54
|
+
hestia_earth/models/cycle/otherSitesUnusedDuration.py,sha256=HkjCfllhtodAQ3LBjoEXCiii1t2LJxM9HZNyYWaAqas,2984
|
|
53
55
|
hestia_earth/models/cycle/pastureGrass.py,sha256=7PrmDMJPtsbKGa8WIOh_4NXNtbH3Pxb23pmjawQuY9o,1226
|
|
54
56
|
hestia_earth/models/cycle/pastureSystem.py,sha256=uksVgl_3bp_t2niwZ5BvS3VT-Kndx26Se6GpzqG0bX8,2709
|
|
55
57
|
hestia_earth/models/cycle/readyToCookWeightPerHead.py,sha256=R1Rt3WsTzwnI2Bqljx03RpdG0A1-bGV4M7EqmcP7Dzg,2955
|
|
@@ -58,10 +60,11 @@ hestia_earth/models/cycle/residueIncorporated.py,sha256=9_s2RMOy5D20eq9ziDBEA_Y7
|
|
|
58
60
|
hestia_earth/models/cycle/residueLeftOnField.py,sha256=qYxKGAdUORN7Vjqj7AZC2VGV_rM3MN0-padDGhgjiNU,2175
|
|
59
61
|
hestia_earth/models/cycle/residueRemoved.py,sha256=jxDu_Jfcyd-rm-qo8ZuRIf-GGxtFBMpmGy1zHOavwy0,2135
|
|
60
62
|
hestia_earth/models/cycle/siteDuration.py,sha256=793ez4IDOHxsbDIREZQ5rUgS6FQare2jL6SZ8qemxKs,2014
|
|
61
|
-
hestia_earth/models/cycle/siteUnusedDuration.py,sha256=
|
|
62
|
-
hestia_earth/models/cycle/startDate.py,sha256=
|
|
63
|
-
hestia_earth/models/cycle/startDateDefinition.py,sha256
|
|
63
|
+
hestia_earth/models/cycle/siteUnusedDuration.py,sha256=orYGlbzGMpjuDAtZe7KkCOLWrwUYR1H4A0ccAbutW3s,2189
|
|
64
|
+
hestia_earth/models/cycle/startDate.py,sha256=pbBi55b6uJezPE8EOovOCSwQVrbwpmxwmravOCIh2zg,2683
|
|
65
|
+
hestia_earth/models/cycle/startDateDefinition.py,sha256=--U3YLZjJ3WIHl8dxAOewGfMcYtOZS-M2KanJKG1cJw,2246
|
|
64
66
|
hestia_earth/models/cycle/transformation.py,sha256=06KTfVubh2I47dfnG9Iv6AbuUBbURM8BAVOkRu7XmHw,1255
|
|
67
|
+
hestia_earth/models/cycle/unknownPreSeasonWaterRegime.py,sha256=9EP8FMXO5fHqmhVNSqR_Dfe38KxwyPOCF6kMewiI_VE,1478
|
|
65
68
|
hestia_earth/models/cycle/utils.py,sha256=ZcVwvRwVNK48jZfnhrHl2ai4a96YzcmRgO-eQXwQNjo,1408
|
|
66
69
|
hestia_earth/models/cycle/animal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
67
70
|
hestia_earth/models/cycle/animal/milkYield.py,sha256=bx8oNw9tZkqSgcRlbxIL6V2nEHx-p0KJc31v7PaLKxI,2926
|
|
@@ -112,10 +115,12 @@ hestia_earth/models/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
112
115
|
hestia_earth/models/data/ecoinventV3/__init__.py,sha256=oevyurRuioXy_CsQCtG-S_FXEpiEDeQ-UK5a0jPBXcI,1155
|
|
113
116
|
hestia_earth/models/deRuijterEtAl2010/__init__.py,sha256=lbH6mB98dmZZlwdZctNYtEmVwAow957l80Dv7JSPDsI,418
|
|
114
117
|
hestia_earth/models/deRuijterEtAl2010/nh3ToAirCropResidueDecomposition.py,sha256=2z10WqMsGUDDO8xJ3lmXvSUHgzz2t6PPRDha5NHoT5s,3291
|
|
115
|
-
hestia_earth/models/ecoinventV3/__init__.py,sha256=
|
|
118
|
+
hestia_earth/models/ecoinventV3/__init__.py,sha256=FctfsXFgEz23KbKNig1bY-fhoTN2QJz_eVy6AFwxG7g,6062
|
|
116
119
|
hestia_earth/models/ecoinventV3/utils.py,sha256=HqtD8MzK9C_RCJ-ME-5G4J1KoCn5FqmAx4l0kjsCDbM,1577
|
|
117
120
|
hestia_earth/models/ecoinventV3AndEmberClimate/__init__.py,sha256=XYFDUNpQpzbjPgLus0YlM3UdiXX7LLwn-XJqjrH9ywM,5801
|
|
118
121
|
hestia_earth/models/ecoinventV3AndEmberClimate/utils.py,sha256=INWB7gyhzk49GQ0KAcBS-Kzwdoyd5MQJcsCtuT6XxZA,1352
|
|
122
|
+
hestia_earth/models/edip2003/__init__.py,sha256=nyB0CI2gNmRAXj-203aJHQMmETYhcY-dHbMABOhJ7YI,409
|
|
123
|
+
hestia_earth/models/edip2003/ozoneDepletionPotential.py,sha256=GdaAgDIUPcWccbbjB-CbxqelSW2vUGdIfJUbQBi4-sA,971
|
|
119
124
|
hestia_earth/models/emepEea2019/__init__.py,sha256=l90-pWrqIzt1ap1WNk0gF4iZeF5_TSG62hE83bIi4rQ,412
|
|
120
125
|
hestia_earth/models/emepEea2019/co2ToAirFuelCombustion.py,sha256=ib_xzEbIg-iQwvW2L4BosD9lV6EYOXAiIs8gYhSD9GE,1431
|
|
121
126
|
hestia_earth/models/emepEea2019/n2OToAirFuelCombustionDirect.py,sha256=H4dgGqDuvYN4S7TRxYsX3hms1xMWr8clR2gkyyO8T18,1438
|
|
@@ -135,17 +140,17 @@ hestia_earth/models/epa2014/no3ToGroundwaterExcreta.py,sha256=fN4fOOcjBg3tl0lzNe
|
|
|
135
140
|
hestia_earth/models/faostat2018/__init__.py,sha256=ecN-pKF1pkFnzmooBrg1VAxJkG76q9v4piiaKGP_vbo,412
|
|
136
141
|
hestia_earth/models/faostat2018/coldCarcassWeightPerHead.py,sha256=y1ouj5FBrnGWxd4dIC7luG6iQwiMrm1CGgYbXCcKS8E,3139
|
|
137
142
|
hestia_earth/models/faostat2018/coldDressedCarcassWeightPerHead.py,sha256=Aphq7r06Q5-RDer4i1CneOLifVQCKTiVPTIWE3AxLfE,3230
|
|
138
|
-
hestia_earth/models/faostat2018/landTransformationFromCropland100YearAverage.py,sha256=
|
|
139
|
-
hestia_earth/models/faostat2018/landTransformationFromCropland20YearAverage.py,sha256=
|
|
143
|
+
hestia_earth/models/faostat2018/landTransformationFromCropland100YearAverage.py,sha256=yFQdfHnMifPtwnBUbedXq1FY7qlzv1EieU-UA83MFcE,2647
|
|
144
|
+
hestia_earth/models/faostat2018/landTransformationFromCropland20YearAverage.py,sha256=MmMer9DJkDFO_VsWBwHywwUdqvBaKNkfuix--PeL1kU,2640
|
|
140
145
|
hestia_earth/models/faostat2018/liveweightPerHead.py,sha256=flI3_TyG-7xoWp6cU6pZAFiXyHyFkfRz7Lmb7cQAffI,5140
|
|
141
146
|
hestia_earth/models/faostat2018/readyToCookWeightPerHead.py,sha256=b1_GZQ3oFl88w6TY5DqLSqXNaYX6TcRBK4R9M2cWSjM,3165
|
|
142
147
|
hestia_earth/models/faostat2018/seed.py,sha256=ts9PKs9UnZnJ9nPFlL7etL1Qb9uIWIES8Mz8W7FWbOw,2917
|
|
143
|
-
hestia_earth/models/faostat2018/utils.py,sha256=
|
|
148
|
+
hestia_earth/models/faostat2018/utils.py,sha256=Ud2vu_8ze5VFfeBFBzUKdJTWRfxVJO4VUTdgwaLJU-w,3715
|
|
144
149
|
hestia_earth/models/faostat2018/product/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
145
150
|
hestia_earth/models/faostat2018/product/price.py,sha256=X7Zxa-rXthzYdgw2lzybbHc-oKGE5nyXpBn-BfZC_7w,7753
|
|
146
151
|
hestia_earth/models/geospatialDatabase/__init__.py,sha256=TH-FW3aoL7r1GquRChr7rde7uQonKQRDR00udG8tDrQ,957
|
|
147
152
|
hestia_earth/models/geospatialDatabase/aware.py,sha256=cbxFnShXW8QUCIjU4uuO1DdK9KhYiLf41ZVjS9hSppI,1358
|
|
148
|
-
hestia_earth/models/geospatialDatabase/clayContent.py,sha256=
|
|
153
|
+
hestia_earth/models/geospatialDatabase/clayContent.py,sha256=u8SQKx-zu3vhMQ-XOJgqyUn-tlCCIy-VG7zpl5AyjtY,3386
|
|
149
154
|
hestia_earth/models/geospatialDatabase/croppingIntensity.py,sha256=4HVrl7Hayg6IpdCrz19Xq_clKdcS_0Sw9uiA4kjKJ40,2509
|
|
150
155
|
hestia_earth/models/geospatialDatabase/drainageClass.py,sha256=CVagB2wxLnHgQQauDyYCJCfJw21OPB7Ry8BVyt2uPak,1883
|
|
151
156
|
hestia_earth/models/geospatialDatabase/ecoClimateZone.py,sha256=hzK9Je_4NvbLtgAM48G7yf-6jrcMpsDzqSlLkVP3oYg,3625
|
|
@@ -155,7 +160,7 @@ hestia_earth/models/geospatialDatabase/heavyWinterPrecipitation.py,sha256=54pvHO
|
|
|
155
160
|
hestia_earth/models/geospatialDatabase/histosol.py,sha256=5zwKdF1t9aOjTzBoear62T0Kzpjco-IJXu4oRYrUFQ8,2387
|
|
156
161
|
hestia_earth/models/geospatialDatabase/longFallowRatio.py,sha256=OXInoU4uYlgLwpAF3PetIDQ2ck4rOdf9_EyjXEtzD4Q,2505
|
|
157
162
|
hestia_earth/models/geospatialDatabase/nutrientLossToAquaticEnvironment.py,sha256=uEsoYJ1mzgUo6fQhUrcJ-ATcFw1j9oEgqMXKbQuFRxQ,1973
|
|
158
|
-
hestia_earth/models/geospatialDatabase/organicCarbonPerKgSoil.py,sha256=
|
|
163
|
+
hestia_earth/models/geospatialDatabase/organicCarbonPerKgSoil.py,sha256=O_3GdoyY3FrwAq37MHleb0kiXZhsqpuAcik9TYpAvU4,2830
|
|
159
164
|
hestia_earth/models/geospatialDatabase/potentialEvapotranspirationAnnual.py,sha256=UlCBvAD-6H-4sdryfPuX1YDlOsGPOI8T9y0q4O0Tau8,2544
|
|
160
165
|
hestia_earth/models/geospatialDatabase/potentialEvapotranspirationLongTermAnnualMean.py,sha256=YywD9wCkGFF1q60LocXNvLr-tQ2_9km2PrVnXRgN83E,2125
|
|
161
166
|
hestia_earth/models/geospatialDatabase/potentialEvapotranspirationMonthly.py,sha256=3VmoobXfTVP77vyBrxkplTToe3RnLeTrNStA2r6sdzY,3357
|
|
@@ -163,17 +168,17 @@ hestia_earth/models/geospatialDatabase/precipitationAnnual.py,sha256=8_lMKVUPCln
|
|
|
163
168
|
hestia_earth/models/geospatialDatabase/precipitationLongTermAnnualMean.py,sha256=fS5knfil5f2QP8-gxFdXuoGTxXpzoJQZ9h4UjWIWjCA,2376
|
|
164
169
|
hestia_earth/models/geospatialDatabase/precipitationMonthly.py,sha256=D2HNR7cIP2Dd47uxmXp6p_wPhmxR6i-4trX83WpH3z4,3407
|
|
165
170
|
hestia_earth/models/geospatialDatabase/region.py,sha256=rdywdsI4OglcO05tih0UQx0qbnm8BAn7mP-x74iV03c,1462
|
|
166
|
-
hestia_earth/models/geospatialDatabase/sandContent.py,sha256=
|
|
167
|
-
hestia_earth/models/geospatialDatabase/siltContent.py,sha256=
|
|
171
|
+
hestia_earth/models/geospatialDatabase/sandContent.py,sha256=dzaefKcnMeBRu7b1X11MG_-I6iDuXkHVCrkdbawB3Tw,3386
|
|
172
|
+
hestia_earth/models/geospatialDatabase/siltContent.py,sha256=rFUlQ3SlwCJFcMYQd5F6t3bnDMjcRilsXk2rShoa5Tk,3786
|
|
168
173
|
hestia_earth/models/geospatialDatabase/slope.py,sha256=g1SpuYks60injv2w-CMjESNfu8KM1JsiYnRT9XZfSuY,1859
|
|
169
174
|
hestia_earth/models/geospatialDatabase/slopeLength.py,sha256=6pGr1qR0EiiUKkeflpYut7eI6UsnXAzHDoHhAzXKFJk,1864
|
|
170
|
-
hestia_earth/models/geospatialDatabase/soilPh.py,sha256=
|
|
175
|
+
hestia_earth/models/geospatialDatabase/soilPh.py,sha256=f-jZhIpbsVDe_lGm0rfA7K0vRRTy0M5adKA-_-W11LU,2799
|
|
171
176
|
hestia_earth/models/geospatialDatabase/temperatureAnnual.py,sha256=UCTr8zvz9AH13nd-ynqjYZ1gABn8cw5PHXS29SzbhyE,2712
|
|
172
177
|
hestia_earth/models/geospatialDatabase/temperatureLongTermAnnualMean.py,sha256=j5vsDYZeEQYqgOzBGepD5oGFtRvjhk__uZ7ux37gapQ,2229
|
|
173
178
|
hestia_earth/models/geospatialDatabase/temperatureMonthly.py,sha256=hJjbnTgefBtRwL5IJHaaPFtRvzTDv7l5nDI8vdadMCg,3353
|
|
174
|
-
hestia_earth/models/geospatialDatabase/totalNitrogenPerKgSoil.py,sha256=
|
|
179
|
+
hestia_earth/models/geospatialDatabase/totalNitrogenPerKgSoil.py,sha256=DrjiPyakM1SJ1XO-arhvjLDj2qb3M-i58gJ1kFFM6kI,2821
|
|
175
180
|
hestia_earth/models/geospatialDatabase/totalPhosphorusPerKgSoil.py,sha256=5oasLMYgfnPwSse0D8EEe_pV57AMusac853BgVSUh5E,2070
|
|
176
|
-
hestia_earth/models/geospatialDatabase/utils.py,sha256=
|
|
181
|
+
hestia_earth/models/geospatialDatabase/utils.py,sha256=RAmdiv2WTKzdiCF1c2KjNoE5v7EjOdO-ZEJdJfi8rB0,6419
|
|
177
182
|
hestia_earth/models/geospatialDatabase/waterDepth.py,sha256=Xy2UxwAJrgdOkcw59NetEHMt5vgRYE6qg4fgXb1ptlU,1643
|
|
178
183
|
hestia_earth/models/globalCropWaterModel2008/__init__.py,sha256=vQxexzFCl2Uv2RiIJfcppkRi9RgzBsJ68yhVDK4GvAU,425
|
|
179
184
|
hestia_earth/models/globalCropWaterModel2008/rootingDepth.py,sha256=pajS-6UWxqIqnzW0IjkgNm-2Vl3bMor2UZOQtQQERuc,4096
|
|
@@ -181,17 +186,18 @@ hestia_earth/models/haversineFormula/__init__.py,sha256=o155nR-XI67iCSBVNYIu4sPR
|
|
|
181
186
|
hestia_earth/models/haversineFormula/transport/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
182
187
|
hestia_earth/models/haversineFormula/transport/distance.py,sha256=163KrmKzlEQuKYT1ZvpPgmKlv_-mmvxp0A1_uKya99w,4203
|
|
183
188
|
hestia_earth/models/hyde32/__init__.py,sha256=hSOwDiK0M0NfmQbW_J7O_SZa8IsJMgITSHSVMsDS4KI,407
|
|
184
|
-
hestia_earth/models/hyde32/landTransformationFromCropland100YearAverageDuringCycle.py,sha256=
|
|
185
|
-
hestia_earth/models/hyde32/landTransformationFromCropland20YearAverageDuringCycle.py,sha256
|
|
186
|
-
hestia_earth/models/hyde32/landTransformationFromForest100YearAverageDuringCycle.py,sha256=
|
|
187
|
-
hestia_earth/models/hyde32/landTransformationFromForest20YearAverageDuringCycle.py,sha256=
|
|
188
|
-
hestia_earth/models/hyde32/landTransformationFromOtherNaturalVegetation100YearAverageDuringCycle.py,sha256=
|
|
189
|
-
hestia_earth/models/hyde32/landTransformationFromOtherNaturalVegetation20YearAverageDuringCycle.py,sha256=
|
|
190
|
-
hestia_earth/models/hyde32/landTransformationFromPermanentPasture100YearAverageDuringCycle.py,sha256=
|
|
191
|
-
hestia_earth/models/hyde32/landTransformationFromPermanentPasture20YearAverageDuringCycle.py,sha256=
|
|
192
|
-
hestia_earth/models/hyde32/utils.py,sha256=
|
|
189
|
+
hestia_earth/models/hyde32/landTransformationFromCropland100YearAverageDuringCycle.py,sha256=7ZqhExZORiYIzvkQhLhPdTPzyY2NnSKrat76poGn5tc,2392
|
|
190
|
+
hestia_earth/models/hyde32/landTransformationFromCropland20YearAverageDuringCycle.py,sha256=RDMzmxz236nMSd5IYASXFMk8wL4HyeMi2zNdhhjkTs0,2388
|
|
191
|
+
hestia_earth/models/hyde32/landTransformationFromForest100YearAverageDuringCycle.py,sha256=HRl901VmW9YkbY5FjfNFTJCCP99BAtnnR8fUvDEkkeY,2389
|
|
192
|
+
hestia_earth/models/hyde32/landTransformationFromForest20YearAverageDuringCycle.py,sha256=rxpMfnqe1mzDZnJvTuLDq2wkNwo8pr7HP3iSa6sLrkI,2380
|
|
193
|
+
hestia_earth/models/hyde32/landTransformationFromOtherNaturalVegetation100YearAverageDuringCycle.py,sha256=hDBgoUxWkTn3xzmjGWwDIhltNwXdLcnwCTq3MQ-o1dk,2469
|
|
194
|
+
hestia_earth/models/hyde32/landTransformationFromOtherNaturalVegetation20YearAverageDuringCycle.py,sha256=Yi6Jnh4G4hILUoV2fgkDBNzT9Q7BY5wCUHEB-OUejys,2460
|
|
195
|
+
hestia_earth/models/hyde32/landTransformationFromPermanentPasture100YearAverageDuringCycle.py,sha256=ZkRn4toDe3flLtJG6iptE6cCFEkexVQ4lg2nr779Do8,2442
|
|
196
|
+
hestia_earth/models/hyde32/landTransformationFromPermanentPasture20YearAverageDuringCycle.py,sha256=wz2YMJ_qG1_2BosqsI6TDKAPqvVE6a3Ejuikz-cv-Z0,2433
|
|
197
|
+
hestia_earth/models/hyde32/utils.py,sha256=9HoTiNi52iSopIh0Q_6l7kObr4MPxrBkAvQf6T-zm1U,3383
|
|
193
198
|
hestia_earth/models/impact_assessment/__init__.py,sha256=gTR_PhWps593fPhm-V826VLLrZVH8CNQTqxExB7GGNI,418
|
|
194
|
-
hestia_earth/models/impact_assessment/
|
|
199
|
+
hestia_earth/models/impact_assessment/allocationMethod.py,sha256=Qz41nTtMpDCcPy7PjhVtafE13dfJLX_D3Rg3yNhdY_Q,1279
|
|
200
|
+
hestia_earth/models/impact_assessment/emissions.py,sha256=mJsTasM-5AFtZeKzQ9Q38SDLcnl_lQwfjQ52ro2Pjmg,3444
|
|
195
201
|
hestia_earth/models/impact_assessment/irrigated.py,sha256=qopAYbD91uu1Q2hJ3aB5Xl3br2Nzh7LoMTRCFOXmOv0,783
|
|
196
202
|
hestia_earth/models/impact_assessment/organic.py,sha256=vgY-Wwt_gE6t2EQSFDY6XvDjI0TXb7YeMxH7gty-u6Q,759
|
|
197
203
|
hestia_earth/models/impact_assessment/post_checks/__init__.py,sha256=rkHO4Z3Zz8LCT1OoDgHmUuGURvXsdzh2nQqgU2M4tjU,304
|
|
@@ -373,13 +379,13 @@ hestia_earth/models/linkedImpactAssessment/landTransformationFromPermanentPastur
|
|
|
373
379
|
hestia_earth/models/linkedImpactAssessment/utils.py,sha256=dGwGc2d-8_WQElTpfyPmz5vQtL-LHQRmiZnCTuPXMDs,1876
|
|
374
380
|
hestia_earth/models/mocking/__init__.py,sha256=n3Fkkrvh8zHNWiJZmnfQ7WZ91JRzAO9P6pSG1JpwtXo,687
|
|
375
381
|
hestia_earth/models/mocking/mock_search.py,sha256=qgABw-sZK37XtsALKt8AHF2VJPUrZSnHv5Qj1Dn93oA,2405
|
|
376
|
-
hestia_earth/models/mocking/search-results.json,sha256
|
|
382
|
+
hestia_earth/models/mocking/search-results.json,sha256=Hq-CDpm39QU5BB1x3ncyXYj5_4aIUzywOmYsjTHpDLA,47243
|
|
377
383
|
hestia_earth/models/pooreNemecek2018/__init__.py,sha256=nPboL7ULJzL5nJD5q7q9VOZt_fxbKVm8fmn1Az5YkVY,417
|
|
378
384
|
hestia_earth/models/pooreNemecek2018/aboveGroundCropResidueTotal.py,sha256=Qt-mel4dkhK6N5uUOutNOinCTFjbjtGzITaaI0LvYc4,2396
|
|
379
385
|
hestia_earth/models/pooreNemecek2018/belowGroundCropResidue.py,sha256=JT0RybbvWVlo01FO8K0Yj41HrEaJT3Kj1xfayr2X-xw,2315
|
|
380
386
|
hestia_earth/models/pooreNemecek2018/ch4ToAirAquacultureSystems.py,sha256=CxjhFinScTebBGNVheEdbdw36DdHwoPszAnbxtd6_9s,6590
|
|
381
|
-
hestia_earth/models/pooreNemecek2018/excretaKgN.py,sha256=
|
|
382
|
-
hestia_earth/models/pooreNemecek2018/excretaKgVs.py,sha256=
|
|
387
|
+
hestia_earth/models/pooreNemecek2018/excretaKgN.py,sha256=kB4C1mSA9h8uUJXXaf-39ZwhzAmmvapkfA7v0nUN_Qg,6418
|
|
388
|
+
hestia_earth/models/pooreNemecek2018/excretaKgVs.py,sha256=5rK3wfI8JO2feaFRv23-s9bH09DIl4LLLcjHS3cf-Ow,8424
|
|
383
389
|
hestia_earth/models/pooreNemecek2018/freshwaterWithdrawalsDuringCycle.py,sha256=HB_9q5eE6al2Te3v29hC5wqxsYe4P46ZAPwdWNzx3v0,3939
|
|
384
390
|
hestia_earth/models/pooreNemecek2018/landOccupationDuringCycle.py,sha256=jE110XgPMgfnBMUXyKIL5SL9yZWYhdGr5NrfHcqn2h0,2785
|
|
385
391
|
hestia_earth/models/pooreNemecek2018/longFallowDuration.py,sha256=Wdm6QyOttCFP9Y3OjbaYrvdMmivOmMIT-m5Eg9SM9rY,1511
|
|
@@ -400,6 +406,8 @@ hestia_earth/models/pooreNemecek2018/plantationProductiveLifespan.py,sha256=Q54w
|
|
|
400
406
|
hestia_earth/models/pooreNemecek2018/rotationDuration.py,sha256=j5hW_NEKYQbeMcdsqp2nQIDXCnUdZIKURzAmPCiegQk,1525
|
|
401
407
|
hestia_earth/models/pooreNemecek2018/saplings.py,sha256=LS0zepV51-LlVmPBAjj5nlfgaJFnQF6wo40sgoFCr3Y,2258
|
|
402
408
|
hestia_earth/models/pooreNemecek2018/utils.py,sha256=to2vtONKCbuG1gVSDvsUcG7EnlahELfG_57gzIAHlv0,1710
|
|
409
|
+
hestia_earth/models/poschEtAl2008/__init__.py,sha256=nvyyGglxCTV4PpxcOjY7jJb0v8Bjzj435Zt1j6VcryM,414
|
|
410
|
+
hestia_earth/models/poschEtAl2008/terrestrialAcidificationPotentialAccumulatedExceedance.py,sha256=gbD8fgvdHANXsuPPWRx4Flcqhk3fPD5ROrrb2LMgmS8,1279
|
|
403
411
|
hestia_earth/models/recipe2016Egalitarian/__init__.py,sha256=OvZoSgfaMe6DWIdqr-Sx3ouzXlp994oro7Mi0Xid18Q,422
|
|
404
412
|
hestia_earth/models/recipe2016Egalitarian/damageToFreshwaterEcosystemsSpeciesYear.py,sha256=b1UZAsy3yGlHYxH2YhBhhSnjm5zzQl8Z32DcQBjgWNE,1123
|
|
405
413
|
hestia_earth/models/recipe2016Egalitarian/damageToHumanHealth.py,sha256=dJ8WinGe52wFQCMKtT_B7c1MFM_GbBo8aqfw0n2pw94,1087
|
|
@@ -472,7 +480,7 @@ hestia_earth/models/site/brackishWater.py,sha256=vLEhIZv5PUKwzwvIuYrWi7K---fq7ZX
|
|
|
472
480
|
hestia_earth/models/site/cationExchangeCapacityPerKgSoil.py,sha256=0eH4A-tXJ0hvIkiYXWxlx8TfrdbIKUGYUDk97-yQJgg,3653
|
|
473
481
|
hestia_earth/models/site/flowingWater.py,sha256=v3g5722GIA4zQAUQI9yGFiZvFvI1QAVZqlQrY-6_B3A,1731
|
|
474
482
|
hestia_earth/models/site/freshWater.py,sha256=FXs3Vt8V4e-wn325_dwSTOKlZtn5ksNUpvYGDeLJShY,1255
|
|
475
|
-
hestia_earth/models/site/management.py,sha256=
|
|
483
|
+
hestia_earth/models/site/management.py,sha256=ik1fUHUIqVeSHdUMohig_5w8I9E0EPsiYQOtUeKDrKY,11296
|
|
476
484
|
hestia_earth/models/site/netPrimaryProduction.py,sha256=UIIQkYd911qVzrWjxBLrC37e-RARIVgDwLdARY9BuLw,1849
|
|
477
485
|
hestia_earth/models/site/organicCarbonPerHa.py,sha256=F2ShinHf0m9qKa1nCYBspsDkRY6jzOl0wM8mSDre22I,14916
|
|
478
486
|
hestia_earth/models/site/organicCarbonPerKgSoil.py,sha256=t--wAshiAKS-JvEKhLFRadGvgSBv5NFZ68jdyms_wh4,1945
|
|
@@ -491,13 +499,13 @@ hestia_earth/models/site/temperatureAnnual.py,sha256=Q3b1RH2_hpA0JWwOYA5nKgMGcXH
|
|
|
491
499
|
hestia_earth/models/site/temperatureMonthly.py,sha256=yXwpFCGT2tUqvVBNedaPyBmN_KlzZqo5yv2TWem1pBk,1890
|
|
492
500
|
hestia_earth/models/site/totalNitrogenPerKgSoil.py,sha256=8ERrTZpN_yCRUyFg_EYaX4abE9jLcyX3lx3MO4Bi6CE,1938
|
|
493
501
|
hestia_earth/models/site/utils.py,sha256=b5y6jNmTclC1Vs8FzwW22u3sVyFsvs5if3NJzvLZQLs,3176
|
|
494
|
-
hestia_earth/models/site/waterDepth.py,sha256=
|
|
502
|
+
hestia_earth/models/site/waterDepth.py,sha256=jlphpSAHp-xBlTQsl_j_3xEH50HD7YrvvB7HHuSww-M,1244
|
|
495
503
|
hestia_earth/models/site/measurement/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
496
504
|
hestia_earth/models/site/measurement/value.py,sha256=7IhUbIj7n5vB7yXoNxXsWbliEJjg1Ww3T5g_P2IyNCU,1661
|
|
497
505
|
hestia_earth/models/site/post_checks/__init__.py,sha256=CkExxesk1GuG8NjrbKfix1iDuVUgU-9i1ccM_X7MZn4,284
|
|
498
506
|
hestia_earth/models/site/post_checks/cache.py,sha256=_MZsNsclecUdHDT2MsYx4cEsVUXydIasddgZNA6SU4k,284
|
|
499
507
|
hestia_earth/models/site/pre_checks/__init__.py,sha256=fjv6nU5fiL-CLyaa-cBpiLB-xujgPzeK7i7ZJuTOjCI,394
|
|
500
|
-
hestia_earth/models/site/pre_checks/cache_geospatialDatabase.py,sha256=
|
|
508
|
+
hestia_earth/models/site/pre_checks/cache_geospatialDatabase.py,sha256=gEceynsvPAB6lN36t73yRAAaIn0wLvvK3NK0vXKM7mY,5654
|
|
501
509
|
hestia_earth/models/site/pre_checks/cache_sources.py,sha256=13kbIzCGox3IEsnCwpRi_ioHFcc1NhMm8yeW_8MOSGw,794
|
|
502
510
|
hestia_earth/models/site/pre_checks/cache_years.py,sha256=qGwTaHlWxnVT7iVxXVcpJ-oG6M-VH4ZpCDTdTixUHR4,883
|
|
503
511
|
hestia_earth/models/stehfestBouwman2006/__init__.py,sha256=EhvD4NK6oEPevusLb1WdYV3GT_fCtQx4gvdMhK_dEIQ,420
|
|
@@ -551,7 +559,7 @@ hestia_earth/models/utils/feedipedia.py,sha256=ImUAURcwJDtSvu1s4MDeM1VpbU8mVTp9j
|
|
|
551
559
|
hestia_earth/models/utils/fertiliser.py,sha256=DBO4OBNgnQJ0fCQMDkIk_ZGZX-uKGaTFZCEXfAnJciY,690
|
|
552
560
|
hestia_earth/models/utils/fuel.py,sha256=r1MKMMxg-PYiVlRutP83RuvY2rsdCQ1iN6ekSGGQGpA,1379
|
|
553
561
|
hestia_earth/models/utils/impact_assessment.py,sha256=H1_cvLwC8nb3A5ckS9uvWrLqUDU_9i9BdQiPpn52xIg,6890
|
|
554
|
-
hestia_earth/models/utils/indicator.py,sha256=
|
|
562
|
+
hestia_earth/models/utils/indicator.py,sha256=IFrVIUYpmdVLOR1SKkrTReDbG1Tzq2b6daVvLMYpCs4,537
|
|
555
563
|
hestia_earth/models/utils/inorganicFertiliser.py,sha256=_dLBY-otGkLr8PobR5dQ89bF2uwc2PB4JPrHFSksMEQ,1900
|
|
556
564
|
hestia_earth/models/utils/input.py,sha256=YycsAbSBfVDMu6PftDsisMFGnEp87wOj-3rrnHnOgzo,4927
|
|
557
565
|
hestia_earth/models/utils/liveAnimal.py,sha256=GnajBPZw5d94raf80KtLloaOqlfqGAPwUtP9bRlGWeE,1754
|
|
@@ -566,13 +574,13 @@ hestia_earth/models/utils/property.py,sha256=_9Wy0oZIBLsa-jOiGLokKehYLNdz-_7LfLa
|
|
|
566
574
|
hestia_earth/models/utils/site.py,sha256=zEj2PtIghk-L_vVJidlXM6_ed7HTc2-ogP0sQSh49vw,3874
|
|
567
575
|
hestia_earth/models/utils/source.py,sha256=Y-CcO5Y3q5Hz4A4RdX35C1EUjL9w1NKnOrzVfOWQ7nU,1748
|
|
568
576
|
hestia_earth/models/utils/temperature.py,sha256=ljlG4-yCgFFb6LRZweb18cZKLrr7K2mqd4E4Hz_D1f8,476
|
|
569
|
-
hestia_earth/models/utils/term.py,sha256=
|
|
577
|
+
hestia_earth/models/utils/term.py,sha256=YslK2utjWOO3ovQjkUnQol1KNPg5EvsaS7VX_RKzTTk,19241
|
|
570
578
|
hestia_earth/models/utils/transformation.py,sha256=nyT5Mz4_VgFwhkL8JoNX9kxxow0zuxzsYl3W8xOu2p0,370
|
|
571
579
|
hestia_earth/models/webbEtAl2012AndSintermannEtAl2012/__init__.py,sha256=Niv7ZFMBCwThlbCKGOwA17QdkpOUDFrqrFItGNqnZAA,434
|
|
572
580
|
hestia_earth/models/webbEtAl2012AndSintermannEtAl2012/nh3ToAirOrganicFertiliser.py,sha256=TGXyusrRd9shT842iqbrI6MkQhICgw7uYdrl4jsDrg8,4193
|
|
573
581
|
tests/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
574
|
-
tests/models/test_cache_sites.py,sha256=
|
|
575
|
-
tests/models/test_ecoinventV3.py,sha256=
|
|
582
|
+
tests/models/test_cache_sites.py,sha256=R35GdQtQ7gObX3BbH1Y2SDq3lBriXP1SC-1fNNkjN-U,2140
|
|
583
|
+
tests/models/test_ecoinventV3.py,sha256=_BqfWiYFaw-Y7A-EeabHEnja3d7yb4Ed7gGGvu3Srpw,1936
|
|
576
584
|
tests/models/test_ecoinventV3AndEmberClimate.py,sha256=_EOxdrdavXP6L5_LtvaVbXb_-56UJXSaiPhpGntmwVc,801
|
|
577
585
|
tests/models/test_emissionNotRelevant.py,sha256=YXTdRfcdR_JepHuj2P3Y3r0aFMKNOmsXQHY48tmLTQo,1316
|
|
578
586
|
tests/models/agribalyse2016/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -611,6 +619,7 @@ tests/models/cycle/test_concentrateFeed.py,sha256=tgkThL4g293CexLvb89ftO9UqUbHhN
|
|
|
611
619
|
tests/models/cycle/test_cropResidueManagement.py,sha256=vQWl7rDYLJjiKyBQlCiOA76LpzM4dI2t7JJ30uF8H9M,2020
|
|
612
620
|
tests/models/cycle/test_croppingIntensity.py,sha256=o5nA5tGbnk1IFdOhlN_Dh9oKcSq_yzSwkbBJzYfmYMg,1565
|
|
613
621
|
tests/models/cycle/test_cycleDuration.py,sha256=2KExiliuOa7_j88rJuPObJKZqq0xsRnFAb0ZEqc5KEM,846
|
|
622
|
+
tests/models/cycle/test_endDate.py,sha256=4OKaPAkIQmsEZHhuC6o1ZnC1RkVPbhrZ7DIrn4286JM,537
|
|
614
623
|
tests/models/cycle/test_energyContentLowerHeatingValue.py,sha256=ZvHigQrtneKrRc8qr7rN8aj6tuA0ds0V6Brh0UzN_T8,1204
|
|
615
624
|
tests/models/cycle/test_excretaKgMass.py,sha256=xpuq0k5HKvnGmWdJy0GmIv6A4xYk2VDFB4BMb8J2Z0g,2925
|
|
616
625
|
tests/models/cycle/test_excretaKgN.py,sha256=xoe0PF-DwhVkihN-1BonUa7u_QNM9lr7CmGXsOozQ0Y,1090
|
|
@@ -621,6 +630,7 @@ tests/models/cycle/test_irrigatedTypeUnspecified.py,sha256=9YGwpDO_RHMaldvjJZ0xd
|
|
|
621
630
|
tests/models/cycle/test_liveAnimal.py,sha256=7fRPgEnIwcir-tYwUNnr6gc2e5_vnZi-t8EuuiPioeM,2139
|
|
622
631
|
tests/models/cycle/test_longFallowRatio.py,sha256=sztr1pysldwedTC78JWUHAVWl2oL0jTIQ13c6Nxzlso,1512
|
|
623
632
|
tests/models/cycle/test_milkYield.py,sha256=7e5JJzLkc47OnQf3xni1Nkyq7N4xi1RglnE8caE9TfY,1778
|
|
633
|
+
tests/models/cycle/test_otherSitesUnusedDuration.py,sha256=zQejrYNwq14Pwe3d0zmfhxjdif5s_udbdVCiZcTuC8w,1635
|
|
624
634
|
tests/models/cycle/test_pastureGrass.py,sha256=hNRjBLYXGybzHPMfBOCgcRjGkDBmW0k_G6tn9TLrycY,1025
|
|
625
635
|
tests/models/cycle/test_pastureSystem.py,sha256=VlPn4mlaNimiu3liV5EMELJueUCqSSJ1l82yMV0UK90,1590
|
|
626
636
|
tests/models/cycle/test_post_checks.py,sha256=yeUm-uZ4Om8poct2TgpFQEy-Hg72LNacyQcQ2Qh4Yyw,286
|
|
@@ -632,9 +642,10 @@ tests/models/cycle/test_residueLeftOnField.py,sha256=_8CoSp-7z3BBLGN5Hv067FRYz8y
|
|
|
632
642
|
tests/models/cycle/test_residueRemoved.py,sha256=R5v8lwGyz_4a9_X_LnugBEmgVgcisS5LTM5GFCtKIco,1278
|
|
633
643
|
tests/models/cycle/test_siteDuration.py,sha256=43Hjb0f2lXCRGqj-UmfLVmk7OGJswawtcA2q5wlffXk,1712
|
|
634
644
|
tests/models/cycle/test_siteUnusedDuration.py,sha256=5h9R3guw6ErU_sE5omoiK9Fpke74SmQWsJYWYURE9Fo,1532
|
|
635
|
-
tests/models/cycle/test_startDate.py,sha256
|
|
645
|
+
tests/models/cycle/test_startDate.py,sha256=-U1_XIx8v5zxK3oK5fCIIsS7GFKymNh3m0SgJ0J2iZ8,1223
|
|
636
646
|
tests/models/cycle/test_startDateDefinition.py,sha256=42BmsT1I7Jq_YMVN-VNU7a0fIZ2w3i5jgwy4H_r4dNM,920
|
|
637
647
|
tests/models/cycle/test_transformations.py,sha256=Ws_8KhNqeHogGFXTQ4qZXQ5Ph2I3ZUaY0yO1itFUHLk,464
|
|
648
|
+
tests/models/cycle/test_unknownPreSeasonWaterRegime.py,sha256=4JSSpDvBQEQrDoytNVzuIcm9UVio4TzZpZm52iMWBVA,1220
|
|
638
649
|
tests/models/cycle/animal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
639
650
|
tests/models/cycle/animal/test_milkYield.py,sha256=e3FX8ikrS7nNeOuy8K7rNLs577odN5xrFohUWQw-tag,1323
|
|
640
651
|
tests/models/cycle/animal/test_properties.py,sha256=ND9ltZQie1xXtQvAzoDUkBYGV_N3rw5D5W-irARvO0s,715
|
|
@@ -675,6 +686,8 @@ tests/models/dammgen2009/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
675
686
|
tests/models/dammgen2009/test_noxToAirExcreta.py,sha256=RWd9QvzmJtN9M6UC6KDHkXwtKvwv0aAfMuI9HtsJLvk,1213
|
|
676
687
|
tests/models/deRuijterEtAl2010/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
677
688
|
tests/models/deRuijterEtAl2010/test_nh3ToAirCropResidueDecomposition.py,sha256=kS1nUBVohOSCb386g6Wq7iVclmx0haekUDYo7VQ4NCA,2030
|
|
689
|
+
tests/models/edip2003/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
690
|
+
tests/models/edip2003/test_ozoneDepletionPotential.py,sha256=dZAAwlhEtkhvLzJMksOIIW9YZiS7eXnwffWyY4TTU_g,1575
|
|
678
691
|
tests/models/emepEea2019/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
679
692
|
tests/models/emepEea2019/test_co2ToAirFuelCombustion.py,sha256=z1H17R_Erox2dMg8xylGB0qt9BMZSwfLAoEMVv9z878,1518
|
|
680
693
|
tests/models/emepEea2019/test_n2OToAirFuelCombustionDirect.py,sha256=4uemriZAyJBSn-xMttRpxqVHOFNBXlboVODHQYl65zQ,1524
|
|
@@ -702,7 +715,7 @@ tests/models/faostat2018/product/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
|
|
|
702
715
|
tests/models/faostat2018/product/test_price.py,sha256=vUTT-FZVbXnDrwQVOgq8PWTDuFK_gAT6aqJ9ZK6Qcsc,3493
|
|
703
716
|
tests/models/geospatialDatabase/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
704
717
|
tests/models/geospatialDatabase/test_aware.py,sha256=tbBBvXrOqdO0cMPJTa02UfhlwfosH8iNoJLzZNFs1NU,857
|
|
705
|
-
tests/models/geospatialDatabase/test_clayContent.py,sha256=
|
|
718
|
+
tests/models/geospatialDatabase/test_clayContent.py,sha256=GqFAPIOkXfDpJFkI-vK6l3hK0Ap36lLCWGhXCly-DME,1797
|
|
706
719
|
tests/models/geospatialDatabase/test_croppingIntensity.py,sha256=p7OQZOKuxcEhokFqIE4jj6GU3YwR9GtQqNwlhOGy7uI,1006
|
|
707
720
|
tests/models/geospatialDatabase/test_drainageClass.py,sha256=X75v6f8N5i40grULUNMvNOu_UC27VoahuW6BaQb19LY,1015
|
|
708
721
|
tests/models/geospatialDatabase/test_ecoClimateZone.py,sha256=ad0BBOhjl6uMUP_-QhAHEG3kTo7x3EaXuEahbbnx10E,1119
|
|
@@ -712,7 +725,7 @@ tests/models/geospatialDatabase/test_heavyWinterPrecipitation.py,sha256=1xv7L_b3
|
|
|
712
725
|
tests/models/geospatialDatabase/test_histosol.py,sha256=Jc4N7Qt2zx09L8lj9Kjmr1q36T96MBNlasxGB0jD4EQ,1102
|
|
713
726
|
tests/models/geospatialDatabase/test_longFallowRatio.py,sha256=VoYURFuOnlC8ozxcMLTzv99MGlymlVXd596T5MKVvOU,1004
|
|
714
727
|
tests/models/geospatialDatabase/test_nutrientLossToAquaticEnvironment.py,sha256=ZtoNdI_dB3Nk79Ts9JJrlda7z6HRE2cwCQHC2DiWCsY,1034
|
|
715
|
-
tests/models/geospatialDatabase/test_organicCarbonPerKgSoil.py,sha256=
|
|
728
|
+
tests/models/geospatialDatabase/test_organicCarbonPerKgSoil.py,sha256=sx9raq5YGuyVjZ5GfNeo36LXNT5zfvn3W-kDWeoaJWI,1636
|
|
716
729
|
tests/models/geospatialDatabase/test_potentialEvapotranspirationAnnual.py,sha256=6s4XDmKi__njKE_3tFMIAHr0a1w7X4t8uFRtihN_cm4,706
|
|
717
730
|
tests/models/geospatialDatabase/test_potentialEvapotranspirationLongTermAnnualMean.py,sha256=KzIXuYeO5IZ8l4tKsIEaWcFeV_vSPDSpR6xiuvt_x4o,1003
|
|
718
731
|
tests/models/geospatialDatabase/test_potentialEvapotranspirationMonthly.py,sha256=iu8HWAwl52fWDQJ_Nz5AZIAzbuMAjQfiQwxCHlciI-o,762
|
|
@@ -720,15 +733,15 @@ tests/models/geospatialDatabase/test_precipitationAnnual.py,sha256=OhN7dbLZUG8of
|
|
|
720
733
|
tests/models/geospatialDatabase/test_precipitationLongTermAnnualMean.py,sha256=wGGKXGemg3OEgDRRXy52oFf5p8jU57iraTgQMWDzusQ,1033
|
|
721
734
|
tests/models/geospatialDatabase/test_precipitationMonthly.py,sha256=FTmnMXqwxuV_FwNzx8ZJsF5DCdaOdXPNV9UQ5gFKALs,748
|
|
722
735
|
tests/models/geospatialDatabase/test_region.py,sha256=5q3q5TK7yzvoZI2gknf-TPNcmDqVkMo0D3-KY401J2k,882
|
|
723
|
-
tests/models/geospatialDatabase/test_sandContent.py,sha256=
|
|
724
|
-
tests/models/geospatialDatabase/test_siltContent.py,sha256=
|
|
736
|
+
tests/models/geospatialDatabase/test_sandContent.py,sha256=7H-GNxyn4EGQJd3J3r_SdtSfpPMqR-IlmLo188KAWSU,1797
|
|
737
|
+
tests/models/geospatialDatabase/test_siltContent.py,sha256=DNXa7Ih4TWe3zmBJIAgzZpdyjSRo77hwErkoBluIGaw,1194
|
|
725
738
|
tests/models/geospatialDatabase/test_slope.py,sha256=OQBjH1K1VDgbZ5B9hSy-oPzPnaqYU8Bkb2Cvd-KMqa0,1007
|
|
726
739
|
tests/models/geospatialDatabase/test_slopeLength.py,sha256=56iCm-qn41NpeVHU9dKtAUIrbuEYGbQMOa3sg5dJ5X0,1013
|
|
727
|
-
tests/models/geospatialDatabase/test_soilPh.py,sha256=
|
|
740
|
+
tests/models/geospatialDatabase/test_soilPh.py,sha256=sTKmdZajx-wnyvDLbemJor_fXmqGtcUybfshl-pfO40,1636
|
|
728
741
|
tests/models/geospatialDatabase/test_temperatureAnnual.py,sha256=1hW0fHUlFOAWiPqYZm4ZbTGqjpOAmLb1mkucnAaTrIQ,742
|
|
729
742
|
tests/models/geospatialDatabase/test_temperatureLongTermAnnualMean.py,sha256=Wrz9dbDvXM0OgBA3mXpzY0WZk-yqIp980JRKenxFqno,1031
|
|
730
743
|
tests/models/geospatialDatabase/test_temperatureMonthly.py,sha256=eUaI1TZ-9sXFxWR2UoKBbca8dzW21zp5jGcfbooTt3M,746
|
|
731
|
-
tests/models/geospatialDatabase/test_totalNitrogenPerKgSoil.py,sha256=
|
|
744
|
+
tests/models/geospatialDatabase/test_totalNitrogenPerKgSoil.py,sha256=fZuFjIJ_-bF8HqoNfzA0odmABiSgnttlGQw2Rphqu70,1632
|
|
732
745
|
tests/models/geospatialDatabase/test_totalPhosphorusPerKgSoil.py,sha256=N5Vqf3YKlxHxWRe1PP3Kpbd30bhPOsB8eYr2IGS7quk,1026
|
|
733
746
|
tests/models/geospatialDatabase/test_utils.py,sha256=2AOTtxs7KjPUVQXyErHsm7578523a5WNODVbbuxafAY,758
|
|
734
747
|
tests/models/geospatialDatabase/test_waterDepth.py,sha256=v1y6OcEdSOKu5wlIOYD9UctAx2k7ODP3eLf0WHZZz5w,954
|
|
@@ -738,15 +751,16 @@ tests/models/haversineFormula/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
|
|
|
738
751
|
tests/models/haversineFormula/transport/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
739
752
|
tests/models/haversineFormula/transport/test_distance.py,sha256=hqzIOA1nGao8uiBE16J0ou52McwV4w30ZLpEAqtfi9k,970
|
|
740
753
|
tests/models/hyde32/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
741
|
-
tests/models/hyde32/test_landTransformationFromCropland100YearAverageDuringCycle.py,sha256=
|
|
742
|
-
tests/models/hyde32/test_landTransformationFromCropland20YearAverageDuringCycle.py,sha256=
|
|
743
|
-
tests/models/hyde32/test_landTransformationFromForest100YearAverageDuringCycle.py,sha256=
|
|
744
|
-
tests/models/hyde32/test_landTransformationFromForest20YearAverageDuringCycle.py,sha256=
|
|
745
|
-
tests/models/hyde32/test_landTransformationFromOtherNaturalVegetation100YearAverageDuringCycle.py,sha256=
|
|
746
|
-
tests/models/hyde32/test_landTransformationFromOtherNaturalVegetation20YearAverageDuringCycle.py,sha256=
|
|
747
|
-
tests/models/hyde32/test_landTransformationFromPermanentPasture100YearAverageDuringCycle.py,sha256=
|
|
748
|
-
tests/models/hyde32/test_landTransformationFromPermanentPasture20YearAverageDuringCycle.py,sha256=
|
|
754
|
+
tests/models/hyde32/test_landTransformationFromCropland100YearAverageDuringCycle.py,sha256=tOwcToAZLgIvVEx0i3S67EDaTBi_gXKy-XZCnw1Akl8,797
|
|
755
|
+
tests/models/hyde32/test_landTransformationFromCropland20YearAverageDuringCycle.py,sha256=Fw1goOLe6xPUA7J65MojAyvuEBWnsypHzfjopER9wWo,796
|
|
756
|
+
tests/models/hyde32/test_landTransformationFromForest100YearAverageDuringCycle.py,sha256=A5ZYNmu7vThE51g6BXZkL8-xsv5EEgFn5a9zxN6T1bw,795
|
|
757
|
+
tests/models/hyde32/test_landTransformationFromForest20YearAverageDuringCycle.py,sha256=mx90anMpzRLVjdOoU6aCghSl7mQNGCO4C-rRnMyVzAQ,794
|
|
758
|
+
tests/models/hyde32/test_landTransformationFromOtherNaturalVegetation100YearAverageDuringCycle.py,sha256=D4EcjiN0-O38VumO7EnnohH6c7adThXWfwiwat2jKT4,819
|
|
759
|
+
tests/models/hyde32/test_landTransformationFromOtherNaturalVegetation20YearAverageDuringCycle.py,sha256=C9caq_xP8NZgtA-WWVArWZ0dzT8k4OmXocCYYrGHxGE,810
|
|
760
|
+
tests/models/hyde32/test_landTransformationFromPermanentPasture100YearAverageDuringCycle.py,sha256=uGrwTFGkOK-s19gFxOC3BGoCTlUkqVxVN18GgbFhDLE,805
|
|
761
|
+
tests/models/hyde32/test_landTransformationFromPermanentPasture20YearAverageDuringCycle.py,sha256=iPSrq8lwEZK4Vzwvr06TRJ_rcLuxTUznRoSw1Xxn--g,804
|
|
749
762
|
tests/models/impact_assessment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
763
|
+
tests/models/impact_assessment/test_allocationMethod.py,sha256=HkUt6oWdEyFSdxMpx8y_Oxk0nO2Fi9B_kUZcVte9tzg,1223
|
|
750
764
|
tests/models/impact_assessment/test_emissions.py,sha256=nygoe5JeuQ1rbMQSqAr8oBSm6jC4ygZb2XNHyEx85lo,990
|
|
751
765
|
tests/models/impact_assessment/test_irrigated.py,sha256=3elSWEN1NE05JO1OMfJ7uf0JmU-fqLpazCvS6FVxMQE,377
|
|
752
766
|
tests/models/impact_assessment/test_oganic.py,sha256=Ei73bkB2MzKlr3jZmg8Cimxw_ImJSBdB3xKBn6ZCRx8,375
|
|
@@ -950,6 +964,8 @@ tests/models/pooreNemecek2018/test_plantationLifespan.py,sha256=Pcbnhbt_HVfEet12
|
|
|
950
964
|
tests/models/pooreNemecek2018/test_plantationProductiveLifespan.py,sha256=ifvjTXJxmbS3GH4a7S9T2mgPseajX8WL4KQ5lT_2Rus,935
|
|
951
965
|
tests/models/pooreNemecek2018/test_rotationDuration.py,sha256=tD2E91beAXdyT-xf5QSqc7kp5UPDDEaCE-FgsoSGorg,923
|
|
952
966
|
tests/models/pooreNemecek2018/test_saplings.py,sha256=uJyUWUocvrcPndv-YFLs0WfxGEAG1kM8HEWZwutRhvs,1621
|
|
967
|
+
tests/models/poschEtAl2008/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
968
|
+
tests/models/poschEtAl2008/test_terrestrialAcidificationPotentialAccumulatedExceedance.py,sha256=NJ_W-ypWwjBuGiaXUeJvaQ9ZufoqlSWk1NYE9tt94ZA,1612
|
|
953
969
|
tests/models/recipe2016Egalitarian/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
954
970
|
tests/models/recipe2016Egalitarian/test_damageToFreshwaterEcosystemsSpeciesYear.py,sha256=OC8WjzPuyz5fd_E-LxFbOg3sasVc6LMJ9UK-jAKO7LU,697
|
|
955
971
|
tests/models/recipe2016Egalitarian/test_damageToHumanHealth.py,sha256=fWjzC9r6itihyW6AdmDkotbhML_0KavXernOpnK1SmY,677
|
|
@@ -1096,12 +1112,12 @@ tests/models/utils/test_practice.py,sha256=ILaxkb3qICor9AquAGYiOtA-YKnq0hppmJQzN
|
|
|
1096
1112
|
tests/models/utils/test_product.py,sha256=kwvgAeeEoRgkeStX0zQcFd-4DJhoUhX6Apaks0MU2L0,2305
|
|
1097
1113
|
tests/models/utils/test_property.py,sha256=t2npw86IK7C6G4ypiPtanFi0db4PB7G5VBR1GjRGl34,618
|
|
1098
1114
|
tests/models/utils/test_site.py,sha256=9MXbP5JXl0mYaH-yVHJINnZu_MYwj-ogsJWZ3XTHxas,1196
|
|
1099
|
-
tests/models/utils/test_source.py,sha256=
|
|
1115
|
+
tests/models/utils/test_source.py,sha256=_Ol-OrJs2Tt9iZAZ_RY2qRuSbnE4yz5OuEGkDSbZPyI,631
|
|
1100
1116
|
tests/models/utils/test_term.py,sha256=M5Sa26v2gzQYbZ4H_fo7DspnaCx__-WtL-MULGapCWk,3509
|
|
1101
1117
|
tests/models/webbEtAl2012AndSintermannEtAl2012/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1102
1118
|
tests/models/webbEtAl2012AndSintermannEtAl2012/test_nh3ToAirOrganicFertiliser.py,sha256=qi2FNXS5Af2WDtm7nq_FsprH3BfCF0XxnE0XHmC4aIY,2244
|
|
1103
|
-
hestia_earth_models-0.
|
|
1104
|
-
hestia_earth_models-0.
|
|
1105
|
-
hestia_earth_models-0.
|
|
1106
|
-
hestia_earth_models-0.
|
|
1107
|
-
hestia_earth_models-0.
|
|
1119
|
+
hestia_earth_models-0.64.1.dist-info/LICENSE,sha256=AC7h7GAgCZGJK_Tzh6LUCrML9gQEfowWwecEw2w54QM,1154
|
|
1120
|
+
hestia_earth_models-0.64.1.dist-info/METADATA,sha256=2I5vnl3mTZYWnqfJFd_A_KY0KomvUj2GMXm7GLaEPGo,3343
|
|
1121
|
+
hestia_earth_models-0.64.1.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
|
1122
|
+
hestia_earth_models-0.64.1.dist-info/top_level.txt,sha256=1dqA9TqpOLTEgpqa-YBsmbCmmNU1y56AtfFGEceZ2A0,19
|
|
1123
|
+
hestia_earth_models-0.64.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from hestia_earth.models.cycle.endDate import _should_run, run
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def test_should_run():
|
|
5
|
+
# no endDate => no run
|
|
6
|
+
cycle = {}
|
|
7
|
+
should_run = _should_run(cycle)
|
|
8
|
+
assert not should_run
|
|
9
|
+
|
|
10
|
+
# with endDate with days => no run
|
|
11
|
+
cycle['endDate'] = '2020-01-01'
|
|
12
|
+
should_run = _should_run(cycle)
|
|
13
|
+
assert not should_run
|
|
14
|
+
|
|
15
|
+
# with endDate no days => run
|
|
16
|
+
cycle['endDate'] = '2020-01'
|
|
17
|
+
should_run = _should_run(cycle)
|
|
18
|
+
assert should_run is True
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def test_run():
|
|
22
|
+
assert run({'endDate': '2020-01'}) == '2020-01-14'
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import json
|
|
2
|
+
import pytest
|
|
3
|
+
from tests.utils import fixtures_path
|
|
4
|
+
|
|
5
|
+
from hestia_earth.models.cycle.otherSitesUnusedDuration import MODEL, MODEL_KEY, _should_run, run
|
|
6
|
+
|
|
7
|
+
fixtures_folder = f"{fixtures_path}/{MODEL}/{MODEL_KEY}"
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@pytest.mark.parametrize(
|
|
11
|
+
'test_name,cycle,expected_should_run',
|
|
12
|
+
[
|
|
13
|
+
(
|
|
14
|
+
'no otherSites => no run',
|
|
15
|
+
{},
|
|
16
|
+
False
|
|
17
|
+
),
|
|
18
|
+
(
|
|
19
|
+
'with otherSites => no run',
|
|
20
|
+
{
|
|
21
|
+
'otherSites': [{'siteType': 'cropland'}, {'siteType': 'permanent pasture'}]
|
|
22
|
+
},
|
|
23
|
+
False
|
|
24
|
+
),
|
|
25
|
+
(
|
|
26
|
+
'with otherSites and otherSitesDuration => no run',
|
|
27
|
+
{
|
|
28
|
+
'otherSites': [{'siteType': 'cropland'}, {'siteType': 'permanent pasture'}],
|
|
29
|
+
'otherSitesDuration': [200, 300]
|
|
30
|
+
},
|
|
31
|
+
False
|
|
32
|
+
),
|
|
33
|
+
(
|
|
34
|
+
'with siteDuration and otherSitesDuration and longFallowRatio => run',
|
|
35
|
+
{
|
|
36
|
+
'otherSites': [{'@id': '1', 'siteType': 'cropland'}, {'@id': '2', 'siteType': 'permanent pasture'}],
|
|
37
|
+
'otherSitesDuration': [200, 300],
|
|
38
|
+
'practices': [{'term': {'@id': 'longFallowRatio'}, 'value': [10], 'site': {'@id': '1'}}]
|
|
39
|
+
},
|
|
40
|
+
True
|
|
41
|
+
)
|
|
42
|
+
]
|
|
43
|
+
)
|
|
44
|
+
def test_should_run_animal(test_name, cycle, expected_should_run):
|
|
45
|
+
should_run, *args = _should_run(cycle)
|
|
46
|
+
assert should_run == expected_should_run, test_name
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def test_run():
|
|
50
|
+
with open(f"{fixtures_folder}/cycle.jsonld", encoding='utf-8') as f:
|
|
51
|
+
data = json.load(f)
|
|
52
|
+
|
|
53
|
+
value = run(data)
|
|
54
|
+
assert value == [50, None]
|
|
@@ -1,22 +1,40 @@
|
|
|
1
|
-
from hestia_earth.models.cycle.startDate import
|
|
1
|
+
from hestia_earth.models.cycle.startDate import _should_run_by_cycleDuration, _should_run_by_startDate, run
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
def
|
|
4
|
+
def test_should_run_by_cycleDuration():
|
|
5
5
|
# no endDate => no run
|
|
6
6
|
cycle = {'cycleDuration': 365}
|
|
7
|
-
should_run =
|
|
7
|
+
should_run = _should_run_by_cycleDuration(cycle)
|
|
8
8
|
assert not should_run
|
|
9
9
|
|
|
10
10
|
# with startDate missing days => not run
|
|
11
11
|
cycle['endDate'] = '2020-01'
|
|
12
|
-
should_run =
|
|
12
|
+
should_run = _should_run_by_cycleDuration(cycle)
|
|
13
13
|
assert not should_run
|
|
14
14
|
|
|
15
15
|
# with endDate full date => run
|
|
16
16
|
cycle['endDate'] = '2020-01-01'
|
|
17
|
-
should_run =
|
|
17
|
+
should_run = _should_run_by_cycleDuration(cycle)
|
|
18
|
+
assert should_run is True
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def test_should_run_by_startDate():
|
|
22
|
+
# no startDate => no run
|
|
23
|
+
cycle = {}
|
|
24
|
+
should_run = _should_run_by_startDate(cycle)
|
|
25
|
+
assert not should_run
|
|
26
|
+
|
|
27
|
+
# with startDate with days => no run
|
|
28
|
+
cycle['startDate'] = '2020-01-01'
|
|
29
|
+
should_run = _should_run_by_startDate(cycle)
|
|
30
|
+
assert not should_run
|
|
31
|
+
|
|
32
|
+
# with startDate no days => run
|
|
33
|
+
cycle['startDate'] = '2020-01'
|
|
34
|
+
should_run = _should_run_by_startDate(cycle)
|
|
18
35
|
assert should_run is True
|
|
19
36
|
|
|
20
37
|
|
|
21
38
|
def test_run():
|
|
22
39
|
assert run({'endDate': '2020-01-01', 'cycleDuration': 365}) == '2019-01-01'
|
|
40
|
+
assert run({'startDate': '2020-01'}) == '2020-01-15'
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from unittest.mock import patch
|
|
2
|
+
import json
|
|
3
|
+
from tests.utils import fake_new_practice, fixtures_path
|
|
4
|
+
|
|
5
|
+
from hestia_earth.models.cycle.unknownPreSeasonWaterRegime import MODEL, TERM_ID, _should_run, run
|
|
6
|
+
|
|
7
|
+
class_path = f"hestia_earth.models.{MODEL}.{TERM_ID}"
|
|
8
|
+
fixtures_folder = f"{fixtures_path}/{MODEL}/{TERM_ID}"
|
|
9
|
+
|
|
10
|
+
_PRACTICE_TERM_ID = 'nonFloodedPreSeasonLessThan180Days'
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@patch(f"{class_path}.get_flooded_pre_season_terms", return_value=[_PRACTICE_TERM_ID])
|
|
14
|
+
def test_should_run(*args):
|
|
15
|
+
# with the practice => no run
|
|
16
|
+
cycle = {'practices': [{'term': {'@id': _PRACTICE_TERM_ID}}]}
|
|
17
|
+
should_run = _should_run(cycle)
|
|
18
|
+
assert not should_run
|
|
19
|
+
|
|
20
|
+
# without the practice => run
|
|
21
|
+
cycle = {'practices': []}
|
|
22
|
+
should_run = _should_run(cycle)
|
|
23
|
+
assert should_run is True
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@patch(f"{class_path}.get_flooded_pre_season_terms", return_value=[_PRACTICE_TERM_ID])
|
|
27
|
+
@patch(f"{class_path}._new_practice", side_effect=fake_new_practice)
|
|
28
|
+
def test_run(*args):
|
|
29
|
+
with open(f"{fixtures_folder}/cycle.jsonld", encoding='utf-8') as f:
|
|
30
|
+
data = json.load(f)
|
|
31
|
+
|
|
32
|
+
with open(f"{fixtures_folder}/result.jsonld", encoding='utf-8') as f:
|
|
33
|
+
expected = json.load(f)
|
|
34
|
+
|
|
35
|
+
result = run(data)
|
|
36
|
+
assert result == expected
|
|
File without changes
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
from unittest.mock import patch
|
|
2
|
+
import json
|
|
3
|
+
|
|
4
|
+
from hestia_earth.models.utils.lookup import factor_value
|
|
5
|
+
from tests.utils import fixtures_path, fake_new_indicator
|
|
6
|
+
|
|
7
|
+
from hestia_earth.models.edip2003.ozoneDepletionPotential import MODEL, TERM_ID, run
|
|
8
|
+
|
|
9
|
+
class_path = f"hestia_earth.models.{MODEL}.{TERM_ID}"
|
|
10
|
+
fixtures_folder = f"{fixtures_path}/{MODEL}/{TERM_ID}"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@patch(f"{class_path}._new_indicator", side_effect=fake_new_indicator)
|
|
14
|
+
def test_run(*args):
|
|
15
|
+
with open(f"{fixtures_folder}/impactassessment.jsonld", encoding='utf-8') as f:
|
|
16
|
+
impactassessment = json.load(f)
|
|
17
|
+
|
|
18
|
+
with open(f"{fixtures_folder}/result.jsonld", encoding='utf-8') as f:
|
|
19
|
+
expected = json.load(f)
|
|
20
|
+
|
|
21
|
+
value = run(impactassessment)
|
|
22
|
+
assert value == expected
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@patch(f"{class_path}._new_indicator", side_effect=fake_new_indicator)
|
|
26
|
+
def test_run_empty_input(*args):
|
|
27
|
+
"""
|
|
28
|
+
Test with impact-assessment.jsonld that does NOT contain any "emissionsResourceUse".
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
with open(f"{fixtures_path}/impact_assessment/emissions/impact-assessment.jsonld", encoding='utf-8') as f:
|
|
32
|
+
impactassessment = json.load(f)
|
|
33
|
+
|
|
34
|
+
result = run(impactassessment)
|
|
35
|
+
assert result['value'] is None
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def test_known_ozone_depletion_lookup_value(*args):
|
|
39
|
+
lookup_result = factor_value(
|
|
40
|
+
'edip2003', 'ozoneDepletionPotential', 'emission.csv', 'ozoneDepletionPotential')(
|
|
41
|
+
data={
|
|
42
|
+
'@type': 'Emission',
|
|
43
|
+
'term': {'@type': 'Term', '@id': '112TrichlorotrifluoroethaneToAirInputsProduction'},
|
|
44
|
+
'value': [1],
|
|
45
|
+
})
|
|
46
|
+
assert lookup_result == 0.81
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from unittest.mock import patch
|
|
1
|
+
from unittest.mock import patch, call
|
|
2
2
|
import json
|
|
3
3
|
from tests.utils import fixtures_path, fake_new_measurement
|
|
4
4
|
|
|
@@ -32,4 +32,18 @@ def test_run(mock_download, *args):
|
|
|
32
32
|
site = json.load(f)
|
|
33
33
|
|
|
34
34
|
run(site)
|
|
35
|
-
|
|
35
|
+
base_params = {'ee_type': 'raster', 'reducer': 'mean'}
|
|
36
|
+
mock_download.assert_has_calls([
|
|
37
|
+
call(TERM_ID, site, base_params | {
|
|
38
|
+
'collection': 'T_CLAY_v2_depth_1', 'depthUpper': 0, 'depthLower': 20
|
|
39
|
+
}),
|
|
40
|
+
call(TERM_ID, site, base_params | {
|
|
41
|
+
'collection': 'T_CLAY_v2_depth_2', 'depthUpper': 20, 'depthLower': 40
|
|
42
|
+
}),
|
|
43
|
+
call(TERM_ID, site, base_params | {
|
|
44
|
+
'collection': 'T_CLAY_v2_depth_3', 'depthUpper': 40, 'depthLower': 60
|
|
45
|
+
}),
|
|
46
|
+
call(TERM_ID, site, base_params | {
|
|
47
|
+
'collection': 'T_CLAY_v2_depth_4', 'depthUpper': 60, 'depthLower': 80
|
|
48
|
+
})
|
|
49
|
+
])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from unittest.mock import patch
|
|
1
|
+
from unittest.mock import patch, call
|
|
2
2
|
import json
|
|
3
3
|
from tests.utils import fixtures_path, fake_new_measurement
|
|
4
4
|
|
|
@@ -26,4 +26,18 @@ def test_run(mock_download, *args):
|
|
|
26
26
|
site = json.load(f)
|
|
27
27
|
|
|
28
28
|
run(site)
|
|
29
|
-
|
|
29
|
+
base_params = {'ee_type': 'raster', 'reducer': 'mean'}
|
|
30
|
+
mock_download.assert_has_calls([
|
|
31
|
+
call(TERM_ID, site, base_params | {
|
|
32
|
+
'collection': 'T_OC_v2_depth_1', 'depthUpper': 0, 'depthLower': 20
|
|
33
|
+
}),
|
|
34
|
+
call(TERM_ID, site, base_params | {
|
|
35
|
+
'collection': 'T_OC_v2_depth_2', 'depthUpper': 20, 'depthLower': 40
|
|
36
|
+
}),
|
|
37
|
+
call(TERM_ID, site, base_params | {
|
|
38
|
+
'collection': 'T_OC_v2_depth_3', 'depthUpper': 40, 'depthLower': 60
|
|
39
|
+
}),
|
|
40
|
+
call(TERM_ID, site, base_params | {
|
|
41
|
+
'collection': 'T_OC_v2_depth_4', 'depthUpper': 60, 'depthLower': 80
|
|
42
|
+
})
|
|
43
|
+
])
|