hestia-earth-models 0.73.1__py3-none-any.whl → 0.73.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hestia_earth/models/akagiEtAl2011/utils.py +3 -1
- hestia_earth/models/config/Cycle.json +35 -37
- hestia_earth/models/config/Site.json +26 -24
- hestia_earth/models/geospatialDatabase/utils.py +7 -6
- hestia_earth/models/hestia/aboveGroundCropResidue.py +6 -5
- hestia_earth/models/hestia/cropResidueManagement.py +3 -2
- hestia_earth/models/ipcc2019/aboveGroundBiomass.py +2 -4
- hestia_earth/models/ipcc2019/belowGroundBiomass.py +2 -4
- hestia_earth/models/ipcc2019/biomass_utils.py +1 -1
- hestia_earth/models/ipcc2019/ch4ToAirOrganicSoilCultivation.py +3 -4
- hestia_earth/models/ipcc2019/co2ToAirCarbonStockChange_utils.py +2 -4
- hestia_earth/models/ipcc2019/co2ToAirOrganicSoilCultivation.py +2 -3
- hestia_earth/models/ipcc2019/nonCo2EmissionsToAirNaturalVegetationBurning.py +2 -3
- hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_1.py +2 -3
- hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_2.py +3 -4
- hestia_earth/models/ipcc2019/organicCarbonPerHa_utils.py +2 -3
- hestia_earth/models/mocking/search-results.json +660 -660
- hestia_earth/models/version.py +1 -1
- {hestia_earth_models-0.73.1.dist-info → hestia_earth_models-0.73.2.dist-info}/METADATA +3 -2
- {hestia_earth_models-0.73.1.dist-info → hestia_earth_models-0.73.2.dist-info}/RECORD +26 -31
- tests/models/geospatialDatabase/test_utils.py +12 -1
- tests/models/ipcc2019/test_organicCarbonPerHa_tier_2.py +1 -1
- tests/models/utils/test_array_builders.py +1 -1
- hestia_earth/models/utils/array_builders.py +0 -590
- hestia_earth/models/utils/descriptive_stats.py +0 -49
- hestia_earth/models/utils/stats.py +0 -429
- tests/models/utils/test_descriptive_stats.py +0 -50
- tests/models/utils/test_stats.py +0 -186
- {hestia_earth_models-0.73.1.dist-info → hestia_earth_models-0.73.2.dist-info}/LICENSE +0 -0
- {hestia_earth_models-0.73.1.dist-info → hestia_earth_models-0.73.2.dist-info}/WHEEL +0 -0
- {hestia_earth_models-0.73.1.dist-info → hestia_earth_models-0.73.2.dist-info}/top_level.txt +0 -0
hestia_earth/models/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
VERSION = '0.73.
|
1
|
+
VERSION = '0.73.2'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: hestia-earth-models
|
3
|
-
Version: 0.73.
|
3
|
+
Version: 0.73.2
|
4
4
|
Summary: HESTIA's set of modules for filling gaps in the activity data using external datasets (e.g. populating soil properties with a geospatial dataset using provided coordinates) and internal lookups (e.g. populating machinery use from fuel use). Includes rules for when gaps should be filled versus not (e.g. never gap fill yield, gap fill crop residue if yield provided etc.).
|
5
5
|
Home-page: https://gitlab.com/hestia-earth/hestia-engine-models
|
6
6
|
Author: HESTIA Team
|
@@ -12,11 +12,12 @@ Classifier: Programming Language :: Python :: 3.6
|
|
12
12
|
Description-Content-Type: text/markdown
|
13
13
|
License-File: LICENSE
|
14
14
|
Requires-Dist: hestia-earth-schema==33.*
|
15
|
-
Requires-Dist: hestia-earth-utils>=0.14.
|
15
|
+
Requires-Dist: hestia-earth-utils>=0.14.7
|
16
16
|
Requires-Dist: python-dateutil>=2.8.1
|
17
17
|
Requires-Dist: CurrencyConverter==0.16.8
|
18
18
|
Requires-Dist: haversine>=2.7.0
|
19
19
|
Requires-Dist: pydash
|
20
|
+
Requires-Dist: area
|
20
21
|
Provides-Extra: spatial
|
21
22
|
Requires-Dist: hestia-earth-earth-engine>=0.5.0; extra == "spatial"
|
22
23
|
|
@@ -5,7 +5,7 @@ hestia_earth/models/cache_sites.py,sha256=XpXnkYt823PQzrswgP__L4CT8xZG_n7a41CIHK
|
|
5
5
|
hestia_earth/models/log.py,sha256=eRuH86v7Thuw-QXdKqaqVmA_MkwnOCo0UBEwtuDq4Oc,3554
|
6
6
|
hestia_earth/models/preload_requests.py,sha256=vK_G1UzhNMhYy7ymnCtHUz_vv3cfApCSKqv29VREEBQ,1943
|
7
7
|
hestia_earth/models/requirements.py,sha256=eU4yT443fx7BnaokhrLB_PCizJI7Y6m4auyo8vQauNg,17363
|
8
|
-
hestia_earth/models/version.py,sha256=
|
8
|
+
hestia_earth/models/version.py,sha256=6unV9BrcVtZBSQYzcEEo3l9MxEWoCRevShyTP8qA1uM,19
|
9
9
|
hestia_earth/models/agribalyse2016/__init__.py,sha256=WvK0qCQbnYtg9oZxrACd1wGormZyXibPtpCnIQeDqbw,415
|
10
10
|
hestia_earth/models/agribalyse2016/fuelElectricity.py,sha256=1ngl8pdxeNhlVV8keAeWRwGorr_1uFXM9EoPUWx-uSc,4382
|
11
11
|
hestia_earth/models/agribalyse2016/machineryInfrastructureDepreciatedAmountPerCycle.py,sha256=queToXuzq0tQ9_XuUJ2pJgSywXmbt9uX3ZoIKgqkROM,2660
|
@@ -15,7 +15,7 @@ hestia_earth/models/akagiEtAl2011/nh3ToAirCropResidueBurning.py,sha256=MUVyLifn5
|
|
15
15
|
hestia_earth/models/akagiEtAl2011/noxToAirCropResidueBurning.py,sha256=aFot00A68gFM6Sp1cGkzruB4nIyc-BNGX7T75sb_CCw,791
|
16
16
|
hestia_earth/models/akagiEtAl2011/pm25ToAirCropResidueBurning.py,sha256=88LaJnezcbfOO_GCKz41zt39yhCFOFFmC9TTo1TAOMU,792
|
17
17
|
hestia_earth/models/akagiEtAl2011/so2ToAirCropResidueBurning.py,sha256=hoymFUx3TxzwhlOV65RzOx43IK-CGM8jYfWLH6ibHNo,791
|
18
|
-
hestia_earth/models/akagiEtAl2011/utils.py,sha256=
|
18
|
+
hestia_earth/models/akagiEtAl2011/utils.py,sha256=j5X5s7V0c89cipaKco5yVXuyE_nViB7v0UGA8nwTo_Q,1932
|
19
19
|
hestia_earth/models/aware/__init__.py,sha256=F8XRo9nRiX-fHAqyeMARYtFmJWRPs-hnIaCiHcZhyMw,406
|
20
20
|
hestia_earth/models/aware/scarcityWeightedWaterUse.py,sha256=HO3ic8xFXs_ez13N7kG1JuYit2S8YTi5WgeP9cOyOqc,3936
|
21
21
|
hestia_earth/models/chaudharyBrooks2018/__init__.py,sha256=LKxQu7-6gyWPpdXaYHDTawzsBNm7CpDrk98I5_TTLhA,420
|
@@ -35,9 +35,9 @@ hestia_earth/models/cml2001Baseline/terrestrialAcidificationPotentialIncludingFa
|
|
35
35
|
hestia_earth/models/cml2001NonBaseline/__init__.py,sha256=vI8wp8Og_e8DiJqYYvp33YoI3t4ffAC31LWlnV20JTg,419
|
36
36
|
hestia_earth/models/cml2001NonBaseline/eutrophicationPotentialIncludingFateAverageEurope.py,sha256=lcgyRHY08KCBFPERJNqV4DYGEJCvyHBDnJXD0kEkVqM,1097
|
37
37
|
hestia_earth/models/cml2001NonBaseline/terrestrialAcidificationPotentialExcludingFate.py,sha256=xcrxfs9UoV_EWvV-XzMt35oPWCUsTzqg2SGA3j2MFIw,1091
|
38
|
-
hestia_earth/models/config/Cycle.json,sha256=
|
38
|
+
hestia_earth/models/config/Cycle.json,sha256=3fsz2dNEKA4noEjqrp25Or3_scDxqFS7c_7v911Gpno,59078
|
39
39
|
hestia_earth/models/config/ImpactAssessment.json,sha256=ubAHJRHOFdX-fIYkOEBuD0CYvNZtFYSr8GSgKliVL8g,60968
|
40
|
-
hestia_earth/models/config/Site.json,sha256=
|
40
|
+
hestia_earth/models/config/Site.json,sha256=TnWIoaTspA0SUERWGpwuVf5o6x34N2riGftqzcvpCho,14086
|
41
41
|
hestia_earth/models/config/__init__.py,sha256=l1WqL7ezlank86ABP4zUia_hIvM9ba-sOE3z6wNrea8,2333
|
42
42
|
hestia_earth/models/config/run-calculations.json,sha256=e3nJ4M6CP1iFzfv8ou_ZUFbFxYkDxJgwuNDXTm4PBDc,615
|
43
43
|
hestia_earth/models/config/trigger-calculations.json,sha256=3dmn2bRuj6QEtSTOLdIy31ho7thgUXyDsnqZzPV9rAQ,623
|
@@ -177,7 +177,7 @@ hestia_earth/models/geospatialDatabase/temperatureLongTermAnnualMean.py,sha256=y
|
|
177
177
|
hestia_earth/models/geospatialDatabase/temperatureMonthly.py,sha256=E2k2kkhVDtmeFEB4_AZhhq5od57lRDMWu6AqaurgqvQ,3194
|
178
178
|
hestia_earth/models/geospatialDatabase/totalNitrogenPerKgSoil.py,sha256=eajSzMCX201k_xrfZZSHtTzEIH29hqgJdztQgQeewig,2853
|
179
179
|
hestia_earth/models/geospatialDatabase/totalPhosphorusPerKgSoil.py,sha256=fL8wNpx-3WdD3k9riy6AaUnpdRMFNMzzc338jRIqfw8,2102
|
180
|
-
hestia_earth/models/geospatialDatabase/utils.py,sha256=
|
180
|
+
hestia_earth/models/geospatialDatabase/utils.py,sha256=0jpP4xLhWXu4XfLpQrbuer1DQmLY6NpVVNI0zTxvMTQ,6884
|
181
181
|
hestia_earth/models/geospatialDatabase/waterDepth.py,sha256=Xy2UxwAJrgdOkcw59NetEHMt5vgRYE6qg4fgXb1ptlU,1643
|
182
182
|
hestia_earth/models/globalCropWaterModel2008/__init__.py,sha256=vQxexzFCl2Uv2RiIJfcppkRi9RgzBsJ68yhVDK4GvAU,425
|
183
183
|
hestia_earth/models/globalCropWaterModel2008/rootingDepth.py,sha256=UuFzMbDrvmll3LL6T887DZ76CHt3wrK-2hl9ymmg2FI,4089
|
@@ -185,14 +185,14 @@ hestia_earth/models/haversineFormula/__init__.py,sha256=o155nR-XI67iCSBVNYIu4sPR
|
|
185
185
|
hestia_earth/models/haversineFormula/transport/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
186
186
|
hestia_earth/models/haversineFormula/transport/distance.py,sha256=l00mmyRgWsHWFtk4OTFrhqyOmc-73C4Wkfn5WKM99TA,3990
|
187
187
|
hestia_earth/models/hestia/__init__.py,sha256=o5vAmPzSaK9XPgL8GCne3-lugfCOgZhHELYolNgqyyY,407
|
188
|
-
hestia_earth/models/hestia/aboveGroundCropResidue.py,sha256=
|
188
|
+
hestia_earth/models/hestia/aboveGroundCropResidue.py,sha256=S3_ADmOyIBIVMGLgKXzSbsDhx7eS6r0LT5LxtND6CAw,6045
|
189
189
|
hestia_earth/models/hestia/aboveGroundCropResidueTotal.py,sha256=NcaHzSLTmTP0yTO_2mqqouNzkCVYRkDm31LZqOCiFD4,2715
|
190
190
|
hestia_earth/models/hestia/brackishWater.py,sha256=V9WhV1Mwix1dqdEepMiz9ZNYufx1mKX4C5sdQ96MH9s,1292
|
191
191
|
hestia_earth/models/hestia/cationExchangeCapacityPerKgSoil.py,sha256=GtF-X2ogdXLX0dKed8d2L3baI5MfpN6UXZbZm2aG3Es,3660
|
192
192
|
hestia_earth/models/hestia/coldCarcassWeightPerHead.py,sha256=IkOyrLYqSNidrTfuuZcAGXaT5XEDBFmRWPNxAEAORNU,2962
|
193
193
|
hestia_earth/models/hestia/coldDressedCarcassWeightPerHead.py,sha256=NE1aw4-rmKsslwsyQkRl2TT9Zng-8NNsYXsajHHmU30,3076
|
194
194
|
hestia_earth/models/hestia/concentrateFeed.py,sha256=HnuG3zAECtFVdPRbTATGz5ImO2Ve1NruqD8brbrO2c4,6647
|
195
|
-
hestia_earth/models/hestia/cropResidueManagement.py,sha256=
|
195
|
+
hestia_earth/models/hestia/cropResidueManagement.py,sha256=VlubB0q5MtvBM2dQSWdrENBMOYpvFbGu36TEwxoDl7A,2301
|
196
196
|
hestia_earth/models/hestia/croppingIntensity.py,sha256=xev3GOE06nBJ8ZY3XtbnE0eR2YR_kqAFPnrTuKFtLrQ,1777
|
197
197
|
hestia_earth/models/hestia/default_emissions.py,sha256=GiO9zQ_shIcdLsZAhW3uKX9vouKuhS2xxq65oG2VzkA,3408
|
198
198
|
hestia_earth/models/hestia/default_resourceUse.py,sha256=M5_mC3_t_rzvfNoyKJjZ1tSrV1V9Ci_40LIv0iawVB4,3693
|
@@ -283,22 +283,22 @@ hestia_earth/models/ipcc2013ExcludingFeedbacks/gwp100.py,sha256=2fFEHTXxel_XPiMX
|
|
283
283
|
hestia_earth/models/ipcc2013IncludingFeedbacks/__init__.py,sha256=VJ16KIGQQHybzZiTvu3mpZy_3j0xcd06RHHCfPrCMgU,427
|
284
284
|
hestia_earth/models/ipcc2013IncludingFeedbacks/gwp100.py,sha256=HR2vnOc64mg_fxe9m5NmqxBZ8-aFuKb44gmItyuRL1s,1041
|
285
285
|
hestia_earth/models/ipcc2019/__init__.py,sha256=LdRpu8KbEc-MroIwXfKDjfj-xbgmfUYgctjKVvtpRfQ,409
|
286
|
-
hestia_earth/models/ipcc2019/aboveGroundBiomass.py,sha256=
|
286
|
+
hestia_earth/models/ipcc2019/aboveGroundBiomass.py,sha256=T50NcJoyGrHYUSzJBXJKAOVUWHvFwUeUCZxuDZKqoO0,20416
|
287
287
|
hestia_earth/models/ipcc2019/aboveGroundCropResidueTotal.py,sha256=lT2QVV5c2LvQqZRfPEvFT_bMTayMXgIsFLnx8I6iYzw,3089
|
288
|
-
hestia_earth/models/ipcc2019/belowGroundBiomass.py,sha256=
|
288
|
+
hestia_earth/models/ipcc2019/belowGroundBiomass.py,sha256=WN3R5kUIc5Ij4HxMFcTGKeNRoPChRY6ws0x3nQNeEMw,19421
|
289
289
|
hestia_earth/models/ipcc2019/belowGroundCropResidue.py,sha256=qbfsLBPaMIt4oQzYAzbsZdkJozTbwuztNr48TLYC5-Y,3507
|
290
|
-
hestia_earth/models/ipcc2019/biomass_utils.py,sha256=
|
290
|
+
hestia_earth/models/ipcc2019/biomass_utils.py,sha256=NkTPGMl-0tqvhUZKZ1rxW0XTBnZOvgFJki_IPzEEyu0,15796
|
291
291
|
hestia_earth/models/ipcc2019/carbonContent.py,sha256=XhXDu6DRQxANBsRsCEgw4f0UJDOgWsvhVyEwK1-4YT0,7263
|
292
292
|
hestia_earth/models/ipcc2019/ch4ToAirAquacultureSystems.py,sha256=JeyF4tUPn3KIDbXwgM_MFp18hnTZjLBBqMFMH_ciZ1Q,3529
|
293
293
|
hestia_earth/models/ipcc2019/ch4ToAirEntericFermentation.py,sha256=b9FIMIGMGcpOhYHhD6yFsiatHsPe_KoF5yB3Rm6AKwA,12525
|
294
294
|
hestia_earth/models/ipcc2019/ch4ToAirExcreta.py,sha256=4GI_d4sTlskQiSK7xR2f1EaFhBt5Mu7sx0Xq9eUhiJk,6608
|
295
295
|
hestia_earth/models/ipcc2019/ch4ToAirFloodedRice.py,sha256=26WZtckmb7b3sbUN7hpshEdaSdvJpL3-Oer60III_KU,10225
|
296
|
-
hestia_earth/models/ipcc2019/ch4ToAirOrganicSoilCultivation.py,sha256=
|
296
|
+
hestia_earth/models/ipcc2019/ch4ToAirOrganicSoilCultivation.py,sha256=oXK35mLD6rkHG0Zv5F0Atyn0OxQgwuUs6Pkr7E7_qcg,9544
|
297
297
|
hestia_earth/models/ipcc2019/co2ToAirAboveGroundBiomassStockChange.py,sha256=YRNjJgi_aBKwi-nDd0b20w3ebQ33vNgdf4zCLyTFcBw,6516
|
298
298
|
hestia_earth/models/ipcc2019/co2ToAirBelowGroundBiomassStockChange.py,sha256=5HdFdHkvMdwmA4ppSqbrAoASQaSX-Znq7WZqAaekqjk,6564
|
299
|
-
hestia_earth/models/ipcc2019/co2ToAirCarbonStockChange_utils.py,sha256=
|
299
|
+
hestia_earth/models/ipcc2019/co2ToAirCarbonStockChange_utils.py,sha256=xatfT3BQU4mHW8aIk4uJwWtsOyAIH2VtlKS46xSPWCU,58508
|
300
300
|
hestia_earth/models/ipcc2019/co2ToAirLimeHydrolysis.py,sha256=X3-M4Mn3fdGsUR7ZGjBXXWrPFBGD1ipV8_4O94lB7Z8,2487
|
301
|
-
hestia_earth/models/ipcc2019/co2ToAirOrganicSoilCultivation.py,sha256=
|
301
|
+
hestia_earth/models/ipcc2019/co2ToAirOrganicSoilCultivation.py,sha256=PvWxWlIQiDy-PvaZH9GqKD8GYiE6Vrkypkr-zWKY2bY,7609
|
302
302
|
hestia_earth/models/ipcc2019/co2ToAirSoilOrganicCarbonStockChange.py,sha256=4aRBzNpDNSw20IKNzz7zOq28sorrJUB5gxmHemgOZT0,6576
|
303
303
|
hestia_earth/models/ipcc2019/co2ToAirUreaHydrolysis.py,sha256=P6OxdUbvONaTVGchvogEnGeNxox-X1FaZ08yOdqqm6k,3879
|
304
304
|
hestia_earth/models/ipcc2019/croppingDuration.py,sha256=X2fuBCr-mspLwJUGOlVis9lnyzdZ92vYqgDA6dgL5eo,3088
|
@@ -320,13 +320,13 @@ hestia_earth/models/ipcc2019/no3ToGroundwaterCropResidueDecomposition.py,sha256=
|
|
320
320
|
hestia_earth/models/ipcc2019/no3ToGroundwaterExcreta.py,sha256=kf8KzTALAQ_pRVNEfpAG-aM94UgP6Q9T47UrXfOp_go,4517
|
321
321
|
hestia_earth/models/ipcc2019/no3ToGroundwaterInorganicFertiliser.py,sha256=eyPfyIi8EqigOTsEA0BSyoUePyy_AjMlQNJ6Z8yyJ_Q,3413
|
322
322
|
hestia_earth/models/ipcc2019/no3ToGroundwaterOrganicFertiliser.py,sha256=px2SN-uaus2cftXzlsYCUAxLuon6BnDXmaFI9xhQrgU,3347
|
323
|
-
hestia_earth/models/ipcc2019/nonCo2EmissionsToAirNaturalVegetationBurning.py,sha256
|
323
|
+
hestia_earth/models/ipcc2019/nonCo2EmissionsToAirNaturalVegetationBurning.py,sha256=-IwHMQvCEDCyDamNegyxFvLk6B72b5BK6XaEQCAokuQ,34636
|
324
324
|
hestia_earth/models/ipcc2019/noxToAirInorganicFertiliser.py,sha256=fmmFgjtvOD2TrrLY03jYly_KvDnCsAXqhL_tmZQQt-A,4480
|
325
325
|
hestia_earth/models/ipcc2019/noxToAirOrganicFertiliser.py,sha256=9dx_MRTwJGxJRq6mj2EJQMdQ2w6j7lw0fQk0If_cIGc,4152
|
326
326
|
hestia_earth/models/ipcc2019/organicCarbonPerHa.py,sha256=D8Lph5clGjXb5F7sk-jlnqE30C2lokhqndpA0hUMwTk,7791
|
327
|
-
hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_1.py,sha256=
|
328
|
-
hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_2.py,sha256=
|
329
|
-
hestia_earth/models/ipcc2019/organicCarbonPerHa_utils.py,sha256=
|
327
|
+
hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_1.py,sha256=kuLVIW5rJ7UuPepTplxC5HDX9u9ko-DPD9M9ODCtXM4,79137
|
328
|
+
hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_2.py,sha256=vvrwSI9oZIVlLLGMyPoSKW3lOgc2VmF8G-HJJHbgYRc,69220
|
329
|
+
hestia_earth/models/ipcc2019/organicCarbonPerHa_utils.py,sha256=DumXAbH8P97tDyP1nAbtgVrDEceFy0b_xRNZG2h0kbQ,9843
|
330
330
|
hestia_earth/models/ipcc2019/organicSoilCultivation_utils.py,sha256=mJCKYZxqk5vFknckjIjGw478BjZbvKC_xQ-zYpvJ8xM,5628
|
331
331
|
hestia_earth/models/ipcc2019/pastureGrass.py,sha256=_EwlAooSfrkcSy4rl_rk4PpeX1pcIiQcb7HE2lQkyn8,9847
|
332
332
|
hestia_earth/models/ipcc2019/pastureGrass_utils.py,sha256=so5AFrr_0eKXkUoyBpYhHgSXhTQ5z2XADahm2At4RR0,14285
|
@@ -448,7 +448,7 @@ hestia_earth/models/linkedImpactAssessment/utils.py,sha256=7M-E7u35fIF0uMoA1hwcr
|
|
448
448
|
hestia_earth/models/mocking/__init__.py,sha256=9VX50c-grz-snfd-7MBS0KfF7AadtbKuj7kK6PqtsgE,687
|
449
449
|
hestia_earth/models/mocking/build_mock_search.py,sha256=p15ccEUmkmLp1RiGNznxMz3OFHbI8P1-29ExuohiQN8,1355
|
450
450
|
hestia_earth/models/mocking/mock_search.py,sha256=ccFe_WrI73JElFmxp4hPNLCX7eeU--lBC1JFR901KJY,1069
|
451
|
-
hestia_earth/models/mocking/search-results.json,sha256=
|
451
|
+
hestia_earth/models/mocking/search-results.json,sha256=uDp2q9czBpM_hJ9m852MWbA9Bh1l2GdcA-_ovagVR6s,162621
|
452
452
|
hestia_earth/models/pooreNemecek2018/__init__.py,sha256=nPboL7ULJzL5nJD5q7q9VOZt_fxbKVm8fmn1Az5YkVY,417
|
453
453
|
hestia_earth/models/pooreNemecek2018/aboveGroundCropResidueTotal.py,sha256=oXillpppAas1q9GKmODxe1YXyno3EzV-j12xhzkqtTc,2404
|
454
454
|
hestia_earth/models/pooreNemecek2018/belowGroundCropResidue.py,sha256=_pQMPSvI--Xm00H6vXDA4ct_pQXKRGrLE2f-2tQE6y4,2323
|
@@ -594,7 +594,6 @@ hestia_earth/models/utils/__init__.py,sha256=hXSBcHSMYWjg_Fe_H5IVsxu_OmVCTummZ20
|
|
594
594
|
hestia_earth/models/utils/aggregated.py,sha256=G7FNJfHqJ_eoXB66kGdjLyZGDOI_gsF56o7VnyW3bqA,4801
|
595
595
|
hestia_earth/models/utils/animalProduct.py,sha256=M5IunAKGY6oZv3j1Ascl34ywyeLWApqOIlBzbtlA2FE,721
|
596
596
|
hestia_earth/models/utils/aquacultureManagement.py,sha256=dxrbC1Xf140cohxTbSw6TxLAnAASWTdNZwBBam4yQnw,171
|
597
|
-
hestia_earth/models/utils/array_builders.py,sha256=ko1pDZKaUudZqxOZ99vJamKAdoR6ND4ZmxVrYH6YjPc,19498
|
598
597
|
hestia_earth/models/utils/background_emissions.py,sha256=54zuH4yFNc_cle3uYGtK_EjhkG0XGaG5L6eGKiTyOG4,3100
|
599
598
|
hestia_earth/models/utils/blank_node.py,sha256=o1MzCz6FXuJ4Iit55EeGrHbrGM9VUfdAF1RNqTBU89Y,56070
|
600
599
|
hestia_earth/models/utils/cache_sources.py,sha256=MBkrPpjwNiC4ApDjeYVHZjWBbpvAerXRDrMHpjasAZ0,377
|
@@ -605,7 +604,6 @@ hestia_earth/models/utils/cropResidue.py,sha256=6rwC2Fw4ZwuQwvb38ZYUfL1UIZ7eEIy1
|
|
605
604
|
hestia_earth/models/utils/cropResidueManagement.py,sha256=nIDFjf39rDD10UHSVudfDyu-EiL261g8jyrgS-2aDKw,347
|
606
605
|
hestia_earth/models/utils/currency.py,sha256=f_ArJANb--pZq4LL49SXQ1AMX_oKroqwBXKRRQqZwsM,578
|
607
606
|
hestia_earth/models/utils/cycle.py,sha256=FJWDPQ0utjtSTq-0SnewpqP_ateixs2XXCqN85l07Qw,16210
|
608
|
-
hestia_earth/models/utils/descriptive_stats.py,sha256=EMVwFvg2OnZgKRAfireAoWY2EbrSvqR0V0bK9B53p28,1583
|
609
607
|
hestia_earth/models/utils/ecoClimateZone.py,sha256=kJmXtRiq8-vWF7S1rNIA6WpWkPtt8JoNfWgG9azM_ts,4269
|
610
608
|
hestia_earth/models/utils/emission.py,sha256=vzQQ4eKiC8KlmwFqT00lSV1V2dmTGMSzddOYNgFyka8,3636
|
611
609
|
hestia_earth/models/utils/excretaManagement.py,sha256=PNZoaf6nvdt1t7B8Apa638rU8T4hI5VW2fy1fAoC64k,2265
|
@@ -630,7 +628,6 @@ hestia_earth/models/utils/productivity.py,sha256=947w8LzR7HqAQlM7AGibHbqton8RmeX
|
|
630
628
|
hestia_earth/models/utils/property.py,sha256=glfINBxB59d6dRRfN09C9U3CxfFyM_dTEWdlPi6_l0c,5422
|
631
629
|
hestia_earth/models/utils/site.py,sha256=5S-53PHQnstr4LVveRuNhk4kpvGJtR8oc-t3OsxRyms,4128
|
632
630
|
hestia_earth/models/utils/source.py,sha256=D_QlW7Ul_NV1iOucMNE3szT64b1RdSdecIEm6OukYhw,2459
|
633
|
-
hestia_earth/models/utils/stats.py,sha256=-0vvhSDAhp4ZYXD1l6sO2hdok8_HgUM6OjCSYGSTHqU,15291
|
634
631
|
hestia_earth/models/utils/temperature.py,sha256=ljlG4-yCgFFb6LRZweb18cZKLrr7K2mqd4E4Hz_D1f8,476
|
635
632
|
hestia_earth/models/utils/term.py,sha256=EJFj7Vt5Yjz1OSYQGXo9sDVrKLVvmYEJVVSg1aCi334,21473
|
636
633
|
hestia_earth/models/utils/time_series.py,sha256=vuv033qUZ1gAw3T3wlLNG7vJmXCCsHEzciYbxw_b_NI,3223
|
@@ -818,7 +815,7 @@ tests/models/geospatialDatabase/test_temperatureLongTermAnnualMean.py,sha256=Wrz
|
|
818
815
|
tests/models/geospatialDatabase/test_temperatureMonthly.py,sha256=eUaI1TZ-9sXFxWR2UoKBbca8dzW21zp5jGcfbooTt3M,746
|
819
816
|
tests/models/geospatialDatabase/test_totalNitrogenPerKgSoil.py,sha256=fZuFjIJ_-bF8HqoNfzA0odmABiSgnttlGQw2Rphqu70,1632
|
820
817
|
tests/models/geospatialDatabase/test_totalPhosphorusPerKgSoil.py,sha256=N5Vqf3YKlxHxWRe1PP3Kpbd30bhPOsB8eYr2IGS7quk,1026
|
821
|
-
tests/models/geospatialDatabase/test_utils.py,sha256=
|
818
|
+
tests/models/geospatialDatabase/test_utils.py,sha256=IM7tBigyzMDEctSyXfR2H7GzaX15UtOCpROrbroN8sc,1182
|
822
819
|
tests/models/geospatialDatabase/test_waterDepth.py,sha256=v1y6OcEdSOKu5wlIOYD9UctAx2k7ODP3eLf0WHZZz5w,954
|
823
820
|
tests/models/globalCropWaterModel2008/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
824
821
|
tests/models/globalCropWaterModel2008/test_rootingDepth.py,sha256=lSjN_3AHoqajnQ2JfeuzLReL9au1d0uiCG2NZbvFXkM,2688
|
@@ -960,7 +957,7 @@ tests/models/ipcc2019/test_noxToAirInorganicFertiliser.py,sha256=NZBSBJLM_j2PEpH
|
|
960
957
|
tests/models/ipcc2019/test_noxToAirOrganicFertiliser.py,sha256=LR5pjV5vRbgSSQAw8kYRp_ij4CHInzgaDS6EggQuBiw,1104
|
961
958
|
tests/models/ipcc2019/test_organicCarbonPerHa.py,sha256=g_uOqzj6EiyvoAZRpd4PakMYQ7Vfn0QiDGLCTVz92A8,15607
|
962
959
|
tests/models/ipcc2019/test_organicCarbonPerHa_tier_1.py,sha256=lSGxHvfz84etnXbu6cJU0Fh06H_lI3yIlSiF3Wg9tec,20683
|
963
|
-
tests/models/ipcc2019/test_organicCarbonPerHa_tier_2.py,sha256=
|
960
|
+
tests/models/ipcc2019/test_organicCarbonPerHa_tier_2.py,sha256=VYNtsuFDURzqvKH1_5_6_lSQrqTxWnLdopN5ULfrzMg,5486
|
964
961
|
tests/models/ipcc2019/test_organicCarbonPerHa_utils.py,sha256=Zd2QlN_Q3k9djuByOH62A00tryVzlvNtsd46N79TTeU,1778
|
965
962
|
tests/models/ipcc2019/test_pastureGrass.py,sha256=6B8ZmuI1w4rA4wGduWx0l6e0BgGz8b2knTUIcT0GDOg,2725
|
966
963
|
tests/models/ipcc2019/animal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -1209,7 +1206,7 @@ tests/models/transformation/product/test_excreta.py,sha256=Q9OQpk8qVPv3alIz2i5XQ
|
|
1209
1206
|
tests/models/usetoxV2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1210
1207
|
tests/models/usetoxV2/test_freshwaterEcotoxicityPotentialCtue.py,sha256=eq7Gcmfya9g0eOKKkuBhz8vq7xi_CmZ_LTSxueBwZt4,835
|
1211
1208
|
tests/models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1212
|
-
tests/models/utils/test_array_builders.py,sha256=
|
1209
|
+
tests/models/utils/test_array_builders.py,sha256=_ZxbKVReS9U2s6PhnXRqSKCsa9j-2Bxl8p_Fr7KHMBk,8418
|
1213
1210
|
tests/models/utils/test_blank_node.py,sha256=F5pCV-5bKxqsrubjN1W-PACltBljF7z84_7lFBcDFJs,32871
|
1214
1211
|
tests/models/utils/test_cache_sources.py,sha256=xcGMVbYoV23YC4HLBTL_4qZP1ME2cp3DFebgJMxI2TE,721
|
1215
1212
|
tests/models/utils/test_crop.py,sha256=d508vQdtB_Q_6hEahNueXed5PaEiLeN7ScbwZIKCiDI,862
|
@@ -1217,7 +1214,6 @@ tests/models/utils/test_cropResidue.py,sha256=jBHXQSAoeu0e59KuoQiYd_ZSiwwlTBSe8c
|
|
1217
1214
|
tests/models/utils/test_cropResidueManagement.py,sha256=RQt8lexeJzCyxZceIutgDpw7BpcqmjsUB0C0yZC2QpY,930
|
1218
1215
|
tests/models/utils/test_currency.py,sha256=BPsojPsY9QW2aj8vgbjkPQXU8GU6wDwwtPZ3HdC4KTU,277
|
1219
1216
|
tests/models/utils/test_dataCompleteness.py,sha256=Dx3qRUfEW6xqXPdaitJBny8bkfE6rdZvRO9EynuaPMc,1727
|
1220
|
-
tests/models/utils/test_descriptive_stats.py,sha256=BpCuUBzvrqc_LjXutIGyyVPhsmbpKiZggTvLibuGjKA,1282
|
1221
1217
|
tests/models/utils/test_ecoClimateZone.py,sha256=Pzy1wuCqkz4Ftms-6eCxdYg1sdOVu8bobTNVd-TUm3U,4280
|
1222
1218
|
tests/models/utils/test_emission.py,sha256=N7Vk_CMsU5wy73nh_VoHtXDsp02R1oGalFwppYD8Bzo,1941
|
1223
1219
|
tests/models/utils/test_feedipedia.py,sha256=S7c1W4bJ5xWXPh42pPbl3R7lDX_iEeaEtFaPXgB7hgE,906
|
@@ -1231,7 +1227,6 @@ tests/models/utils/test_product.py,sha256=heEJiDMGP4h7iHEz0ukQ_7-5VxLLOJdSrQ9PFq
|
|
1231
1227
|
tests/models/utils/test_property.py,sha256=n69G6f2LimZopjh3l-0n4cjrKusy4GWH4XsOwOmfXKc,624
|
1232
1228
|
tests/models/utils/test_site.py,sha256=6jy4iCKAlxo_r1T0sXlkVTSIGT9C1r6qk9rfLCMmHo8,3115
|
1233
1229
|
tests/models/utils/test_source.py,sha256=P40VGf1Yr-cMUPQ4k3OT4AdWPsX2R5xTmhnRzGRQvo4,2018
|
1234
|
-
tests/models/utils/test_stats.py,sha256=S8MiRh_-VJ7bqpeVGFR4DxLhm_4WYq-1vK7Z_ryKCqI,7119
|
1235
1230
|
tests/models/utils/test_term.py,sha256=M5Sa26v2gzQYbZ4H_fo7DspnaCx__-WtL-MULGapCWk,3509
|
1236
1231
|
tests/models/utils/test_time_series.py,sha256=LMhRPf8rp3nAriKAC-2K3FDkrMWntRTUUCERw7Lt68g,2686
|
1237
1232
|
tests/models/webbEtAl2012AndSintermannEtAl2012/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -1254,8 +1249,8 @@ tests/orchestrator/strategies/run/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
|
|
1254
1249
|
tests/orchestrator/strategies/run/test_add_blank_node_if_missing.py,sha256=K4xg4UAXfNhSaLyknKVPO7MGBF44Z_gD7CuZ_pe28gU,3512
|
1255
1250
|
tests/orchestrator/strategies/run/test_add_key_if_missing.py,sha256=hKwvk1ohcBVnQUCTiDhRW99J0xEa29BpwFi1KC0yWLE,329
|
1256
1251
|
tests/orchestrator/strategies/run/test_always.py,sha256=w5-Dhp6yLzgZGAeMRz3OrqZbbAed9gZ1O266a3z9k7w,134
|
1257
|
-
hestia_earth_models-0.73.
|
1258
|
-
hestia_earth_models-0.73.
|
1259
|
-
hestia_earth_models-0.73.
|
1260
|
-
hestia_earth_models-0.73.
|
1261
|
-
hestia_earth_models-0.73.
|
1252
|
+
hestia_earth_models-0.73.2.dist-info/LICENSE,sha256=TD25LoiRJsA5CPUNrcyt1PXlGcbUGFMAeZoBcfCrCNE,1154
|
1253
|
+
hestia_earth_models-0.73.2.dist-info/METADATA,sha256=-qFMuoq_tC3pT_ddflIl5MkFus_PxMYGTkNsd02NYHo,4065
|
1254
|
+
hestia_earth_models-0.73.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
1255
|
+
hestia_earth_models-0.73.2.dist-info/top_level.txt,sha256=1dqA9TqpOLTEgpqa-YBsmbCmmNU1y56AtfFGEceZ2A0,19
|
1256
|
+
hestia_earth_models-0.73.2.dist-info/RECORD,,
|
@@ -1,9 +1,13 @@
|
|
1
|
+
import json
|
1
2
|
from unittest.mock import patch
|
2
3
|
from hestia_earth.schema import TermTermType
|
4
|
+
from tests.utils import fixtures_path
|
3
5
|
|
4
|
-
from hestia_earth.models.geospatialDatabase
|
6
|
+
from hestia_earth.models.geospatialDatabase import MODEL
|
7
|
+
from hestia_earth.models.geospatialDatabase.utils import get_region_factor, get_area_size, _get_boundary_area_size
|
5
8
|
|
6
9
|
class_path = 'hestia_earth.models.geospatialDatabase.utils'
|
10
|
+
fixtures_folder = f"{fixtures_path}/{MODEL}/utils"
|
7
11
|
|
8
12
|
AREA = 1000
|
9
13
|
COUNTRY = {
|
@@ -26,3 +30,10 @@ def test_get_area_size(*args):
|
|
26
30
|
site['boundary'] = {'type': 'Polygon'}
|
27
31
|
site['boundaryArea'] = AREA
|
28
32
|
assert get_area_size(site) == AREA
|
33
|
+
|
34
|
+
|
35
|
+
def test_get_boundary_area_size():
|
36
|
+
with open(f"{fixtures_folder}/site.jsonld", encoding='utf-8') as f:
|
37
|
+
site = json.load(f)
|
38
|
+
|
39
|
+
assert _get_boundary_area_size(boundary=site.get('boundary')) == 4896.1559583013795
|
@@ -3,7 +3,7 @@ from numpy.testing import assert_array_almost_equal
|
|
3
3
|
from numpy.typing import NDArray
|
4
4
|
from pytest import mark
|
5
5
|
|
6
|
-
from hestia_earth.
|
6
|
+
from hestia_earth.utils.stats import discrete_uniform_2d, repeat_single
|
7
7
|
|
8
8
|
from hestia_earth.models.ipcc2019.organicCarbonPerHa import MODEL, TERM_ID
|
9
9
|
from hestia_earth.models.ipcc2019.organicCarbonPerHa_tier_2 import (
|
@@ -3,7 +3,7 @@ from numpy.testing import assert_array_equal, assert_allclose
|
|
3
3
|
from numpy.typing import NDArray
|
4
4
|
from pytest import mark
|
5
5
|
|
6
|
-
from hestia_earth.
|
6
|
+
from hestia_earth.utils.stats import (
|
7
7
|
avg_run_in_columnwise, avg_run_in_rowwise, correlated_normal_2d, discrete_uniform_1d, discrete_uniform_2d,
|
8
8
|
gen_seed, grouped_avg, normal_1d, normal_2d, plus_minus_uncertainty_to_normal_1d,
|
9
9
|
plus_minus_uncertainty_to_normal_2d, repeat_1d_array_as_columns, repeat_array_as_columns, repeat_array_as_rows,
|