hestia-earth-models 0.62.6__py3-none-any.whl → 0.64.0__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/longFallowRatio.py +9 -9
- hestia_earth/models/cycle/unknownPreSeasonWaterRegime.py +51 -0
- hestia_earth/models/ecoinventV3/__init__.py +18 -2
- 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 +60 -18
- hestia_earth/models/pooreNemecek2018/{longFallowPeriod.py → longFallowDuration.py} +2 -2
- hestia_earth/models/pooreNemecek2018/rotationDuration.py +5 -5
- hestia_earth/models/site/management.py +15 -1
- hestia_earth/models/site/pre_checks/cache_geospatialDatabase.py +23 -16
- hestia_earth/models/utils/cycle.py +2 -2
- 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.62.6.dist-info → hestia_earth_models-0.64.0.dist-info}/METADATA +2 -2
- {hestia_earth_models-0.62.6.dist-info → hestia_earth_models-0.64.0.dist-info}/RECORD +59 -55
- tests/models/cycle/test_longFallowRatio.py +5 -5
- tests/models/cycle/test_unknownPreSeasonWaterRegime.py +36 -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/pooreNemecek2018/{test_longFallowPeriod.py → test_longFallowDuration.py} +1 -1
- 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.62.6.dist-info → hestia_earth_models-0.64.0.dist-info}/LICENSE +0 -0
- {hestia_earth_models-0.62.6.dist-info → hestia_earth_models-0.64.0.dist-info}/WHEEL +0 -0
- {hestia_earth_models-0.62.6.dist-info → hestia_earth_models-0.64.0.dist-info}/top_level.txt +0 -0
|
@@ -5,7 +5,9 @@ from hestia_earth.utils.model import linked_node
|
|
|
5
5
|
from . import _term_id, _include_methodModel
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
def _new_indicator(term, model=None):
|
|
8
|
+
def _new_indicator(term, model=None, land_cover_id=None):
|
|
9
9
|
node = {'@type': SchemaType.INDICATOR.value}
|
|
10
10
|
node['term'] = linked_node(term if isinstance(term, dict) else download_hestia(_term_id(term)))
|
|
11
|
+
if land_cover_id:
|
|
12
|
+
node['landCover'] = linked_node(download_hestia(land_cover_id))
|
|
11
13
|
return _include_methodModel(node, model)
|
|
@@ -252,6 +252,40 @@ def get_rice_paddy_terms():
|
|
|
252
252
|
return [n['@id'] for n in terms if 'depth' not in n['@id'].lower()]
|
|
253
253
|
|
|
254
254
|
|
|
255
|
+
def get_flooded_pre_season_terms():
|
|
256
|
+
"""
|
|
257
|
+
Find all `landUseManagement` terms of "flooded pre season" from the Glossary:
|
|
258
|
+
https://hestia.earth/glossary?termType=landUseManagement&query=flooded%20pre-season
|
|
259
|
+
|
|
260
|
+
Returns
|
|
261
|
+
-------
|
|
262
|
+
list
|
|
263
|
+
List of matching term `@id` as `str`.
|
|
264
|
+
"""
|
|
265
|
+
terms = search({
|
|
266
|
+
"bool": {
|
|
267
|
+
"must": [
|
|
268
|
+
{
|
|
269
|
+
"match": {
|
|
270
|
+
"@type": SchemaType.TERM.value
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"match": {
|
|
275
|
+
"termType": TermTermType.LANDUSEMANAGEMENT.value
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"match_phrase": {
|
|
280
|
+
"name": "flooded pre-season"
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
]
|
|
284
|
+
}
|
|
285
|
+
}, limit=LIMIT)
|
|
286
|
+
return list(map(lambda n: n['@id'], terms))
|
|
287
|
+
|
|
288
|
+
|
|
255
289
|
def get_crop_residue_terms():
|
|
256
290
|
"""
|
|
257
291
|
Find all `cropResidue` terms from the Glossary:
|
hestia_earth/models/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION = '0.
|
|
1
|
+
VERSION = '0.64.0'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hestia-earth-models
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.64.0
|
|
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
|
|
@@ -11,7 +11,7 @@ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.6
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
License-File: LICENSE
|
|
14
|
-
Requires-Dist: hestia-earth.schema==
|
|
14
|
+
Requires-Dist: hestia-earth.schema==30.*
|
|
15
15
|
Requires-Dist: hestia-earth.utils>=0.13.3
|
|
16
16
|
Requires-Dist: python-dateutil>=2.8.1
|
|
17
17
|
Requires-Dist: CurrencyConverter==0.16.8
|
|
@@ -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=IlwP1zg2m0DBprtBStQbPB5MvpS31n9yBC5AOs4qSfo,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
|
|
@@ -48,7 +48,7 @@ hestia_earth/models/cycle/excretaKgVs.py,sha256=ed-DcQoQXZgWF8UZDs2N-G6EBIOPmpXu
|
|
|
48
48
|
hestia_earth/models/cycle/inorganicFertiliser.py,sha256=Yt5NcP9FQEzWwlritrPGbhh2W9wR378OM3lDPBzDiL4,6967
|
|
49
49
|
hestia_earth/models/cycle/irrigatedTypeUnspecified.py,sha256=KlIa5eDvT47Twz6Q1kpw0rMlRjCK25CExaW58DEvc9w,2125
|
|
50
50
|
hestia_earth/models/cycle/liveAnimal.py,sha256=LWAMnNKRoLDdChrGApVIN-Ns7em0Lspz5UtLbf7PPLY,3988
|
|
51
|
-
hestia_earth/models/cycle/longFallowRatio.py,sha256=
|
|
51
|
+
hestia_earth/models/cycle/longFallowRatio.py,sha256=_h0kub99sACO87IfjMeiu8IgdK2jaeBlgGA9A9-ViZA,1683
|
|
52
52
|
hestia_earth/models/cycle/milkYield.py,sha256=RhzePjkvEAGicTzRA4eatc0K_4NSGHhyEhYF0EbbGXw,5820
|
|
53
53
|
hestia_earth/models/cycle/pastureGrass.py,sha256=7PrmDMJPtsbKGa8WIOh_4NXNtbH3Pxb23pmjawQuY9o,1226
|
|
54
54
|
hestia_earth/models/cycle/pastureSystem.py,sha256=uksVgl_3bp_t2niwZ5BvS3VT-Kndx26Se6GpzqG0bX8,2709
|
|
@@ -62,6 +62,7 @@ hestia_earth/models/cycle/siteUnusedDuration.py,sha256=HvVyok1HPt0_WsTPZq2PklsFT
|
|
|
62
62
|
hestia_earth/models/cycle/startDate.py,sha256=OnuMf4TkDb0WwCntjXNy3ipLS-b4drMWSkXWeXU142Q,1507
|
|
63
63
|
hestia_earth/models/cycle/startDateDefinition.py,sha256=nCFeKjZjC3MoYNFH0N66WNW4HJUzKD_UkznvTMl_KfM,2244
|
|
64
64
|
hestia_earth/models/cycle/transformation.py,sha256=06KTfVubh2I47dfnG9Iv6AbuUBbURM8BAVOkRu7XmHw,1255
|
|
65
|
+
hestia_earth/models/cycle/unknownPreSeasonWaterRegime.py,sha256=9EP8FMXO5fHqmhVNSqR_Dfe38KxwyPOCF6kMewiI_VE,1478
|
|
65
66
|
hestia_earth/models/cycle/utils.py,sha256=ZcVwvRwVNK48jZfnhrHl2ai4a96YzcmRgO-eQXwQNjo,1408
|
|
66
67
|
hestia_earth/models/cycle/animal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
67
68
|
hestia_earth/models/cycle/animal/milkYield.py,sha256=bx8oNw9tZkqSgcRlbxIL6V2nEHx-p0KJc31v7PaLKxI,2926
|
|
@@ -112,7 +113,7 @@ hestia_earth/models/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
112
113
|
hestia_earth/models/data/ecoinventV3/__init__.py,sha256=oevyurRuioXy_CsQCtG-S_FXEpiEDeQ-UK5a0jPBXcI,1155
|
|
113
114
|
hestia_earth/models/deRuijterEtAl2010/__init__.py,sha256=lbH6mB98dmZZlwdZctNYtEmVwAow957l80Dv7JSPDsI,418
|
|
114
115
|
hestia_earth/models/deRuijterEtAl2010/nh3ToAirCropResidueDecomposition.py,sha256=2z10WqMsGUDDO8xJ3lmXvSUHgzz2t6PPRDha5NHoT5s,3291
|
|
115
|
-
hestia_earth/models/ecoinventV3/__init__.py,sha256=
|
|
116
|
+
hestia_earth/models/ecoinventV3/__init__.py,sha256=FctfsXFgEz23KbKNig1bY-fhoTN2QJz_eVy6AFwxG7g,6062
|
|
116
117
|
hestia_earth/models/ecoinventV3/utils.py,sha256=HqtD8MzK9C_RCJ-ME-5G4J1KoCn5FqmAx4l0kjsCDbM,1577
|
|
117
118
|
hestia_earth/models/ecoinventV3AndEmberClimate/__init__.py,sha256=XYFDUNpQpzbjPgLus0YlM3UdiXX7LLwn-XJqjrH9ywM,5801
|
|
118
119
|
hestia_earth/models/ecoinventV3AndEmberClimate/utils.py,sha256=INWB7gyhzk49GQ0KAcBS-Kzwdoyd5MQJcsCtuT6XxZA,1352
|
|
@@ -135,17 +136,17 @@ hestia_earth/models/epa2014/no3ToGroundwaterExcreta.py,sha256=fN4fOOcjBg3tl0lzNe
|
|
|
135
136
|
hestia_earth/models/faostat2018/__init__.py,sha256=ecN-pKF1pkFnzmooBrg1VAxJkG76q9v4piiaKGP_vbo,412
|
|
136
137
|
hestia_earth/models/faostat2018/coldCarcassWeightPerHead.py,sha256=y1ouj5FBrnGWxd4dIC7luG6iQwiMrm1CGgYbXCcKS8E,3139
|
|
137
138
|
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=
|
|
139
|
+
hestia_earth/models/faostat2018/landTransformationFromCropland100YearAverage.py,sha256=yFQdfHnMifPtwnBUbedXq1FY7qlzv1EieU-UA83MFcE,2647
|
|
140
|
+
hestia_earth/models/faostat2018/landTransformationFromCropland20YearAverage.py,sha256=MmMer9DJkDFO_VsWBwHywwUdqvBaKNkfuix--PeL1kU,2640
|
|
140
141
|
hestia_earth/models/faostat2018/liveweightPerHead.py,sha256=flI3_TyG-7xoWp6cU6pZAFiXyHyFkfRz7Lmb7cQAffI,5140
|
|
141
142
|
hestia_earth/models/faostat2018/readyToCookWeightPerHead.py,sha256=b1_GZQ3oFl88w6TY5DqLSqXNaYX6TcRBK4R9M2cWSjM,3165
|
|
142
143
|
hestia_earth/models/faostat2018/seed.py,sha256=ts9PKs9UnZnJ9nPFlL7etL1Qb9uIWIES8Mz8W7FWbOw,2917
|
|
143
|
-
hestia_earth/models/faostat2018/utils.py,sha256=
|
|
144
|
+
hestia_earth/models/faostat2018/utils.py,sha256=Ud2vu_8ze5VFfeBFBzUKdJTWRfxVJO4VUTdgwaLJU-w,3715
|
|
144
145
|
hestia_earth/models/faostat2018/product/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
145
146
|
hestia_earth/models/faostat2018/product/price.py,sha256=X7Zxa-rXthzYdgw2lzybbHc-oKGE5nyXpBn-BfZC_7w,7753
|
|
146
147
|
hestia_earth/models/geospatialDatabase/__init__.py,sha256=TH-FW3aoL7r1GquRChr7rde7uQonKQRDR00udG8tDrQ,957
|
|
147
148
|
hestia_earth/models/geospatialDatabase/aware.py,sha256=cbxFnShXW8QUCIjU4uuO1DdK9KhYiLf41ZVjS9hSppI,1358
|
|
148
|
-
hestia_earth/models/geospatialDatabase/clayContent.py,sha256=
|
|
149
|
+
hestia_earth/models/geospatialDatabase/clayContent.py,sha256=u8SQKx-zu3vhMQ-XOJgqyUn-tlCCIy-VG7zpl5AyjtY,3386
|
|
149
150
|
hestia_earth/models/geospatialDatabase/croppingIntensity.py,sha256=4HVrl7Hayg6IpdCrz19Xq_clKdcS_0Sw9uiA4kjKJ40,2509
|
|
150
151
|
hestia_earth/models/geospatialDatabase/drainageClass.py,sha256=CVagB2wxLnHgQQauDyYCJCfJw21OPB7Ry8BVyt2uPak,1883
|
|
151
152
|
hestia_earth/models/geospatialDatabase/ecoClimateZone.py,sha256=hzK9Je_4NvbLtgAM48G7yf-6jrcMpsDzqSlLkVP3oYg,3625
|
|
@@ -155,7 +156,7 @@ hestia_earth/models/geospatialDatabase/heavyWinterPrecipitation.py,sha256=54pvHO
|
|
|
155
156
|
hestia_earth/models/geospatialDatabase/histosol.py,sha256=5zwKdF1t9aOjTzBoear62T0Kzpjco-IJXu4oRYrUFQ8,2387
|
|
156
157
|
hestia_earth/models/geospatialDatabase/longFallowRatio.py,sha256=OXInoU4uYlgLwpAF3PetIDQ2ck4rOdf9_EyjXEtzD4Q,2505
|
|
157
158
|
hestia_earth/models/geospatialDatabase/nutrientLossToAquaticEnvironment.py,sha256=uEsoYJ1mzgUo6fQhUrcJ-ATcFw1j9oEgqMXKbQuFRxQ,1973
|
|
158
|
-
hestia_earth/models/geospatialDatabase/organicCarbonPerKgSoil.py,sha256=
|
|
159
|
+
hestia_earth/models/geospatialDatabase/organicCarbonPerKgSoil.py,sha256=O_3GdoyY3FrwAq37MHleb0kiXZhsqpuAcik9TYpAvU4,2830
|
|
159
160
|
hestia_earth/models/geospatialDatabase/potentialEvapotranspirationAnnual.py,sha256=UlCBvAD-6H-4sdryfPuX1YDlOsGPOI8T9y0q4O0Tau8,2544
|
|
160
161
|
hestia_earth/models/geospatialDatabase/potentialEvapotranspirationLongTermAnnualMean.py,sha256=YywD9wCkGFF1q60LocXNvLr-tQ2_9km2PrVnXRgN83E,2125
|
|
161
162
|
hestia_earth/models/geospatialDatabase/potentialEvapotranspirationMonthly.py,sha256=3VmoobXfTVP77vyBrxkplTToe3RnLeTrNStA2r6sdzY,3357
|
|
@@ -163,17 +164,17 @@ hestia_earth/models/geospatialDatabase/precipitationAnnual.py,sha256=8_lMKVUPCln
|
|
|
163
164
|
hestia_earth/models/geospatialDatabase/precipitationLongTermAnnualMean.py,sha256=fS5knfil5f2QP8-gxFdXuoGTxXpzoJQZ9h4UjWIWjCA,2376
|
|
164
165
|
hestia_earth/models/geospatialDatabase/precipitationMonthly.py,sha256=D2HNR7cIP2Dd47uxmXp6p_wPhmxR6i-4trX83WpH3z4,3407
|
|
165
166
|
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=
|
|
167
|
+
hestia_earth/models/geospatialDatabase/sandContent.py,sha256=dzaefKcnMeBRu7b1X11MG_-I6iDuXkHVCrkdbawB3Tw,3386
|
|
168
|
+
hestia_earth/models/geospatialDatabase/siltContent.py,sha256=rFUlQ3SlwCJFcMYQd5F6t3bnDMjcRilsXk2rShoa5Tk,3786
|
|
168
169
|
hestia_earth/models/geospatialDatabase/slope.py,sha256=g1SpuYks60injv2w-CMjESNfu8KM1JsiYnRT9XZfSuY,1859
|
|
169
170
|
hestia_earth/models/geospatialDatabase/slopeLength.py,sha256=6pGr1qR0EiiUKkeflpYut7eI6UsnXAzHDoHhAzXKFJk,1864
|
|
170
|
-
hestia_earth/models/geospatialDatabase/soilPh.py,sha256=
|
|
171
|
+
hestia_earth/models/geospatialDatabase/soilPh.py,sha256=f-jZhIpbsVDe_lGm0rfA7K0vRRTy0M5adKA-_-W11LU,2799
|
|
171
172
|
hestia_earth/models/geospatialDatabase/temperatureAnnual.py,sha256=UCTr8zvz9AH13nd-ynqjYZ1gABn8cw5PHXS29SzbhyE,2712
|
|
172
173
|
hestia_earth/models/geospatialDatabase/temperatureLongTermAnnualMean.py,sha256=j5vsDYZeEQYqgOzBGepD5oGFtRvjhk__uZ7ux37gapQ,2229
|
|
173
174
|
hestia_earth/models/geospatialDatabase/temperatureMonthly.py,sha256=hJjbnTgefBtRwL5IJHaaPFtRvzTDv7l5nDI8vdadMCg,3353
|
|
174
|
-
hestia_earth/models/geospatialDatabase/totalNitrogenPerKgSoil.py,sha256=
|
|
175
|
+
hestia_earth/models/geospatialDatabase/totalNitrogenPerKgSoil.py,sha256=DrjiPyakM1SJ1XO-arhvjLDj2qb3M-i58gJ1kFFM6kI,2821
|
|
175
176
|
hestia_earth/models/geospatialDatabase/totalPhosphorusPerKgSoil.py,sha256=5oasLMYgfnPwSse0D8EEe_pV57AMusac853BgVSUh5E,2070
|
|
176
|
-
hestia_earth/models/geospatialDatabase/utils.py,sha256=
|
|
177
|
+
hestia_earth/models/geospatialDatabase/utils.py,sha256=RAmdiv2WTKzdiCF1c2KjNoE5v7EjOdO-ZEJdJfi8rB0,6419
|
|
177
178
|
hestia_earth/models/geospatialDatabase/waterDepth.py,sha256=Xy2UxwAJrgdOkcw59NetEHMt5vgRYE6qg4fgXb1ptlU,1643
|
|
178
179
|
hestia_earth/models/globalCropWaterModel2008/__init__.py,sha256=vQxexzFCl2Uv2RiIJfcppkRi9RgzBsJ68yhVDK4GvAU,425
|
|
179
180
|
hestia_earth/models/globalCropWaterModel2008/rootingDepth.py,sha256=pajS-6UWxqIqnzW0IjkgNm-2Vl3bMor2UZOQtQQERuc,4096
|
|
@@ -181,17 +182,18 @@ hestia_earth/models/haversineFormula/__init__.py,sha256=o155nR-XI67iCSBVNYIu4sPR
|
|
|
181
182
|
hestia_earth/models/haversineFormula/transport/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
182
183
|
hestia_earth/models/haversineFormula/transport/distance.py,sha256=163KrmKzlEQuKYT1ZvpPgmKlv_-mmvxp0A1_uKya99w,4203
|
|
183
184
|
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=
|
|
185
|
+
hestia_earth/models/hyde32/landTransformationFromCropland100YearAverageDuringCycle.py,sha256=7ZqhExZORiYIzvkQhLhPdTPzyY2NnSKrat76poGn5tc,2392
|
|
186
|
+
hestia_earth/models/hyde32/landTransformationFromCropland20YearAverageDuringCycle.py,sha256=RDMzmxz236nMSd5IYASXFMk8wL4HyeMi2zNdhhjkTs0,2388
|
|
187
|
+
hestia_earth/models/hyde32/landTransformationFromForest100YearAverageDuringCycle.py,sha256=HRl901VmW9YkbY5FjfNFTJCCP99BAtnnR8fUvDEkkeY,2389
|
|
188
|
+
hestia_earth/models/hyde32/landTransformationFromForest20YearAverageDuringCycle.py,sha256=rxpMfnqe1mzDZnJvTuLDq2wkNwo8pr7HP3iSa6sLrkI,2380
|
|
189
|
+
hestia_earth/models/hyde32/landTransformationFromOtherNaturalVegetation100YearAverageDuringCycle.py,sha256=hDBgoUxWkTn3xzmjGWwDIhltNwXdLcnwCTq3MQ-o1dk,2469
|
|
190
|
+
hestia_earth/models/hyde32/landTransformationFromOtherNaturalVegetation20YearAverageDuringCycle.py,sha256=Yi6Jnh4G4hILUoV2fgkDBNzT9Q7BY5wCUHEB-OUejys,2460
|
|
191
|
+
hestia_earth/models/hyde32/landTransformationFromPermanentPasture100YearAverageDuringCycle.py,sha256=ZkRn4toDe3flLtJG6iptE6cCFEkexVQ4lg2nr779Do8,2442
|
|
192
|
+
hestia_earth/models/hyde32/landTransformationFromPermanentPasture20YearAverageDuringCycle.py,sha256=wz2YMJ_qG1_2BosqsI6TDKAPqvVE6a3Ejuikz-cv-Z0,2433
|
|
193
|
+
hestia_earth/models/hyde32/utils.py,sha256=9HoTiNi52iSopIh0Q_6l7kObr4MPxrBkAvQf6T-zm1U,3383
|
|
193
194
|
hestia_earth/models/impact_assessment/__init__.py,sha256=gTR_PhWps593fPhm-V826VLLrZVH8CNQTqxExB7GGNI,418
|
|
194
|
-
hestia_earth/models/impact_assessment/
|
|
195
|
+
hestia_earth/models/impact_assessment/allocationMethod.py,sha256=Qz41nTtMpDCcPy7PjhVtafE13dfJLX_D3Rg3yNhdY_Q,1279
|
|
196
|
+
hestia_earth/models/impact_assessment/emissions.py,sha256=mJsTasM-5AFtZeKzQ9Q38SDLcnl_lQwfjQ52ro2Pjmg,3444
|
|
195
197
|
hestia_earth/models/impact_assessment/irrigated.py,sha256=qopAYbD91uu1Q2hJ3aB5Xl3br2Nzh7LoMTRCFOXmOv0,783
|
|
196
198
|
hestia_earth/models/impact_assessment/organic.py,sha256=vgY-Wwt_gE6t2EQSFDY6XvDjI0TXb7YeMxH7gty-u6Q,759
|
|
197
199
|
hestia_earth/models/impact_assessment/post_checks/__init__.py,sha256=rkHO4Z3Zz8LCT1OoDgHmUuGURvXsdzh2nQqgU2M4tjU,304
|
|
@@ -373,7 +375,7 @@ hestia_earth/models/linkedImpactAssessment/landTransformationFromPermanentPastur
|
|
|
373
375
|
hestia_earth/models/linkedImpactAssessment/utils.py,sha256=dGwGc2d-8_WQElTpfyPmz5vQtL-LHQRmiZnCTuPXMDs,1876
|
|
374
376
|
hestia_earth/models/mocking/__init__.py,sha256=n3Fkkrvh8zHNWiJZmnfQ7WZ91JRzAO9P6pSG1JpwtXo,687
|
|
375
377
|
hestia_earth/models/mocking/mock_search.py,sha256=qgABw-sZK37XtsALKt8AHF2VJPUrZSnHv5Qj1Dn93oA,2405
|
|
376
|
-
hestia_earth/models/mocking/search-results.json,sha256=
|
|
378
|
+
hestia_earth/models/mocking/search-results.json,sha256=lyNM5NhYqniHhPP31dnp8G3rQlXIq-pLhSmhe_4txlU,47245
|
|
377
379
|
hestia_earth/models/pooreNemecek2018/__init__.py,sha256=nPboL7ULJzL5nJD5q7q9VOZt_fxbKVm8fmn1Az5YkVY,417
|
|
378
380
|
hestia_earth/models/pooreNemecek2018/aboveGroundCropResidueTotal.py,sha256=Qt-mel4dkhK6N5uUOutNOinCTFjbjtGzITaaI0LvYc4,2396
|
|
379
381
|
hestia_earth/models/pooreNemecek2018/belowGroundCropResidue.py,sha256=JT0RybbvWVlo01FO8K0Yj41HrEaJT3Kj1xfayr2X-xw,2315
|
|
@@ -382,7 +384,7 @@ hestia_earth/models/pooreNemecek2018/excretaKgN.py,sha256=kLWtv49c1sD3YrporqRcmw
|
|
|
382
384
|
hestia_earth/models/pooreNemecek2018/excretaKgVs.py,sha256=nlnZSDx-bIvtukL79Syhon0cSQ8o4OC1YKtAG6haGhI,8500
|
|
383
385
|
hestia_earth/models/pooreNemecek2018/freshwaterWithdrawalsDuringCycle.py,sha256=HB_9q5eE6al2Te3v29hC5wqxsYe4P46ZAPwdWNzx3v0,3939
|
|
384
386
|
hestia_earth/models/pooreNemecek2018/landOccupationDuringCycle.py,sha256=jE110XgPMgfnBMUXyKIL5SL9yZWYhdGr5NrfHcqn2h0,2785
|
|
385
|
-
hestia_earth/models/pooreNemecek2018/
|
|
387
|
+
hestia_earth/models/pooreNemecek2018/longFallowDuration.py,sha256=Wdm6QyOttCFP9Y3OjbaYrvdMmivOmMIT-m5Eg9SM9rY,1511
|
|
386
388
|
hestia_earth/models/pooreNemecek2018/n2OToAirAquacultureSystemsDirect.py,sha256=HJ7IstImGyasIKosK2lQZ-v6Lqt3_aEfZhoiC4CY0rM,2586
|
|
387
389
|
hestia_earth/models/pooreNemecek2018/n2ToAirAquacultureSystems.py,sha256=SoZlogDd7_4kq5S9gc8KmVeIXacWWhaUkWlKTuho_OA,2431
|
|
388
390
|
hestia_earth/models/pooreNemecek2018/nh3ToAirAquacultureSystems.py,sha256=4TDILoagYMVBSBbVXEecIOv-pzQ-W2Hg6rpL58t1-J4,4001
|
|
@@ -397,7 +399,7 @@ hestia_earth/models/pooreNemecek2018/nurseryDuration.py,sha256=_k8OCZxCiT5hrWGLx
|
|
|
397
399
|
hestia_earth/models/pooreNemecek2018/plantationDensity.py,sha256=-y-zXHFPet0LdIgSG-o2hV_sdIOLeuWoRikW2DPi3kk,957
|
|
398
400
|
hestia_earth/models/pooreNemecek2018/plantationLifespan.py,sha256=FudC-csC1IkiFOJ_uD0s6_rwsgqVrUN6Ej7A03JXDsM,959
|
|
399
401
|
hestia_earth/models/pooreNemecek2018/plantationProductiveLifespan.py,sha256=Q54woX67eUab0qEEAuW2naFGhnVPJHrMas3bG92KNeg,1740
|
|
400
|
-
hestia_earth/models/pooreNemecek2018/rotationDuration.py,sha256=
|
|
402
|
+
hestia_earth/models/pooreNemecek2018/rotationDuration.py,sha256=j5hW_NEKYQbeMcdsqp2nQIDXCnUdZIKURzAmPCiegQk,1525
|
|
401
403
|
hestia_earth/models/pooreNemecek2018/saplings.py,sha256=LS0zepV51-LlVmPBAjj5nlfgaJFnQF6wo40sgoFCr3Y,2258
|
|
402
404
|
hestia_earth/models/pooreNemecek2018/utils.py,sha256=to2vtONKCbuG1gVSDvsUcG7EnlahELfG_57gzIAHlv0,1710
|
|
403
405
|
hestia_earth/models/recipe2016Egalitarian/__init__.py,sha256=OvZoSgfaMe6DWIdqr-Sx3ouzXlp994oro7Mi0Xid18Q,422
|
|
@@ -472,7 +474,7 @@ hestia_earth/models/site/brackishWater.py,sha256=vLEhIZv5PUKwzwvIuYrWi7K---fq7ZX
|
|
|
472
474
|
hestia_earth/models/site/cationExchangeCapacityPerKgSoil.py,sha256=0eH4A-tXJ0hvIkiYXWxlx8TfrdbIKUGYUDk97-yQJgg,3653
|
|
473
475
|
hestia_earth/models/site/flowingWater.py,sha256=v3g5722GIA4zQAUQI9yGFiZvFvI1QAVZqlQrY-6_B3A,1731
|
|
474
476
|
hestia_earth/models/site/freshWater.py,sha256=FXs3Vt8V4e-wn325_dwSTOKlZtn5ksNUpvYGDeLJShY,1255
|
|
475
|
-
hestia_earth/models/site/management.py,sha256=
|
|
477
|
+
hestia_earth/models/site/management.py,sha256=ik1fUHUIqVeSHdUMohig_5w8I9E0EPsiYQOtUeKDrKY,11296
|
|
476
478
|
hestia_earth/models/site/netPrimaryProduction.py,sha256=UIIQkYd911qVzrWjxBLrC37e-RARIVgDwLdARY9BuLw,1849
|
|
477
479
|
hestia_earth/models/site/organicCarbonPerHa.py,sha256=F2ShinHf0m9qKa1nCYBspsDkRY6jzOl0wM8mSDre22I,14916
|
|
478
480
|
hestia_earth/models/site/organicCarbonPerKgSoil.py,sha256=t--wAshiAKS-JvEKhLFRadGvgSBv5NFZ68jdyms_wh4,1945
|
|
@@ -497,7 +499,7 @@ hestia_earth/models/site/measurement/value.py,sha256=7IhUbIj7n5vB7yXoNxXsWbliEJj
|
|
|
497
499
|
hestia_earth/models/site/post_checks/__init__.py,sha256=CkExxesk1GuG8NjrbKfix1iDuVUgU-9i1ccM_X7MZn4,284
|
|
498
500
|
hestia_earth/models/site/post_checks/cache.py,sha256=_MZsNsclecUdHDT2MsYx4cEsVUXydIasddgZNA6SU4k,284
|
|
499
501
|
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=
|
|
502
|
+
hestia_earth/models/site/pre_checks/cache_geospatialDatabase.py,sha256=gEceynsvPAB6lN36t73yRAAaIn0wLvvK3NK0vXKM7mY,5654
|
|
501
503
|
hestia_earth/models/site/pre_checks/cache_sources.py,sha256=13kbIzCGox3IEsnCwpRi_ioHFcc1NhMm8yeW_8MOSGw,794
|
|
502
504
|
hestia_earth/models/site/pre_checks/cache_years.py,sha256=qGwTaHlWxnVT7iVxXVcpJ-oG6M-VH4ZpCDTdTixUHR4,883
|
|
503
505
|
hestia_earth/models/stehfestBouwman2006/__init__.py,sha256=EhvD4NK6oEPevusLb1WdYV3GT_fCtQx4gvdMhK_dEIQ,420
|
|
@@ -542,7 +544,7 @@ hestia_earth/models/utils/crop.py,sha256=kG054fryqPSBpmzvJFBy_CLiOdjrt7RMk5uTItO
|
|
|
542
544
|
hestia_earth/models/utils/cropResidue.py,sha256=_0Q35CrliJeo31xGHsPWe8A2oHxijdIsOrf3gBEqhlA,612
|
|
543
545
|
hestia_earth/models/utils/cropResidueManagement.py,sha256=nIDFjf39rDD10UHSVudfDyu-EiL261g8jyrgS-2aDKw,347
|
|
544
546
|
hestia_earth/models/utils/currency.py,sha256=f_ArJANb--pZq4LL49SXQ1AMX_oKroqwBXKRRQqZwsM,578
|
|
545
|
-
hestia_earth/models/utils/cycle.py,sha256=
|
|
547
|
+
hestia_earth/models/utils/cycle.py,sha256=W-VIReb1OVooV6EIj-P6gUlr-W17_6USdnnj4ihMTTc,16741
|
|
546
548
|
hestia_earth/models/utils/descriptive_stats.py,sha256=qOyG8_TpWYmaxZ0h99n9L71gDLLiVMrMf0ChtxnZLjw,8559
|
|
547
549
|
hestia_earth/models/utils/ecoClimateZone.py,sha256=NHFt-A9EiWXC6tUNIxkgOWUZOjj4I4uwJIP9ddDZegw,1112
|
|
548
550
|
hestia_earth/models/utils/emission.py,sha256=5Dz8Z4P6QXbYSvOzVcqJy3R_oZMrp77_Iwj5xZsxsKc,3769
|
|
@@ -551,7 +553,7 @@ hestia_earth/models/utils/feedipedia.py,sha256=ImUAURcwJDtSvu1s4MDeM1VpbU8mVTp9j
|
|
|
551
553
|
hestia_earth/models/utils/fertiliser.py,sha256=DBO4OBNgnQJ0fCQMDkIk_ZGZX-uKGaTFZCEXfAnJciY,690
|
|
552
554
|
hestia_earth/models/utils/fuel.py,sha256=r1MKMMxg-PYiVlRutP83RuvY2rsdCQ1iN6ekSGGQGpA,1379
|
|
553
555
|
hestia_earth/models/utils/impact_assessment.py,sha256=H1_cvLwC8nb3A5ckS9uvWrLqUDU_9i9BdQiPpn52xIg,6890
|
|
554
|
-
hestia_earth/models/utils/indicator.py,sha256=
|
|
556
|
+
hestia_earth/models/utils/indicator.py,sha256=IFrVIUYpmdVLOR1SKkrTReDbG1Tzq2b6daVvLMYpCs4,537
|
|
555
557
|
hestia_earth/models/utils/inorganicFertiliser.py,sha256=_dLBY-otGkLr8PobR5dQ89bF2uwc2PB4JPrHFSksMEQ,1900
|
|
556
558
|
hestia_earth/models/utils/input.py,sha256=YycsAbSBfVDMu6PftDsisMFGnEp87wOj-3rrnHnOgzo,4927
|
|
557
559
|
hestia_earth/models/utils/liveAnimal.py,sha256=GnajBPZw5d94raf80KtLloaOqlfqGAPwUtP9bRlGWeE,1754
|
|
@@ -566,13 +568,13 @@ hestia_earth/models/utils/property.py,sha256=_9Wy0oZIBLsa-jOiGLokKehYLNdz-_7LfLa
|
|
|
566
568
|
hestia_earth/models/utils/site.py,sha256=zEj2PtIghk-L_vVJidlXM6_ed7HTc2-ogP0sQSh49vw,3874
|
|
567
569
|
hestia_earth/models/utils/source.py,sha256=Y-CcO5Y3q5Hz4A4RdX35C1EUjL9w1NKnOrzVfOWQ7nU,1748
|
|
568
570
|
hestia_earth/models/utils/temperature.py,sha256=ljlG4-yCgFFb6LRZweb18cZKLrr7K2mqd4E4Hz_D1f8,476
|
|
569
|
-
hestia_earth/models/utils/term.py,sha256=
|
|
571
|
+
hestia_earth/models/utils/term.py,sha256=YslK2utjWOO3ovQjkUnQol1KNPg5EvsaS7VX_RKzTTk,19241
|
|
570
572
|
hestia_earth/models/utils/transformation.py,sha256=nyT5Mz4_VgFwhkL8JoNX9kxxow0zuxzsYl3W8xOu2p0,370
|
|
571
573
|
hestia_earth/models/webbEtAl2012AndSintermannEtAl2012/__init__.py,sha256=Niv7ZFMBCwThlbCKGOwA17QdkpOUDFrqrFItGNqnZAA,434
|
|
572
574
|
hestia_earth/models/webbEtAl2012AndSintermannEtAl2012/nh3ToAirOrganicFertiliser.py,sha256=TGXyusrRd9shT842iqbrI6MkQhICgw7uYdrl4jsDrg8,4193
|
|
573
575
|
tests/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
574
|
-
tests/models/test_cache_sites.py,sha256=
|
|
575
|
-
tests/models/test_ecoinventV3.py,sha256=
|
|
576
|
+
tests/models/test_cache_sites.py,sha256=R35GdQtQ7gObX3BbH1Y2SDq3lBriXP1SC-1fNNkjN-U,2140
|
|
577
|
+
tests/models/test_ecoinventV3.py,sha256=_BqfWiYFaw-Y7A-EeabHEnja3d7yb4Ed7gGGvu3Srpw,1936
|
|
576
578
|
tests/models/test_ecoinventV3AndEmberClimate.py,sha256=_EOxdrdavXP6L5_LtvaVbXb_-56UJXSaiPhpGntmwVc,801
|
|
577
579
|
tests/models/test_emissionNotRelevant.py,sha256=YXTdRfcdR_JepHuj2P3Y3r0aFMKNOmsXQHY48tmLTQo,1316
|
|
578
580
|
tests/models/agribalyse2016/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -619,7 +621,7 @@ tests/models/cycle/test_feedConversionRatio.py,sha256=V6zpZvUmBN0LciJW5YbHHaRQX6
|
|
|
619
621
|
tests/models/cycle/test_inorganicFertiliser.py,sha256=c-JDYC0qDK4JWlYDaGX53AcKfetz_YifSfdhy-v-WMo,642
|
|
620
622
|
tests/models/cycle/test_irrigatedTypeUnspecified.py,sha256=9YGwpDO_RHMaldvjJZ0xdrdfUzYDnLPt6nMJ2eRXSTI,2151
|
|
621
623
|
tests/models/cycle/test_liveAnimal.py,sha256=7fRPgEnIwcir-tYwUNnr6gc2e5_vnZi-t8EuuiPioeM,2139
|
|
622
|
-
tests/models/cycle/test_longFallowRatio.py,sha256=
|
|
624
|
+
tests/models/cycle/test_longFallowRatio.py,sha256=sztr1pysldwedTC78JWUHAVWl2oL0jTIQ13c6Nxzlso,1512
|
|
623
625
|
tests/models/cycle/test_milkYield.py,sha256=7e5JJzLkc47OnQf3xni1Nkyq7N4xi1RglnE8caE9TfY,1778
|
|
624
626
|
tests/models/cycle/test_pastureGrass.py,sha256=hNRjBLYXGybzHPMfBOCgcRjGkDBmW0k_G6tn9TLrycY,1025
|
|
625
627
|
tests/models/cycle/test_pastureSystem.py,sha256=VlPn4mlaNimiu3liV5EMELJueUCqSSJ1l82yMV0UK90,1590
|
|
@@ -635,6 +637,7 @@ tests/models/cycle/test_siteUnusedDuration.py,sha256=5h9R3guw6ErU_sE5omoiK9Fpke7
|
|
|
635
637
|
tests/models/cycle/test_startDate.py,sha256=cGhqeZWkJdp6PNxmT0rJ5ZVsTAKm_8CyZKivAzRwSeI,592
|
|
636
638
|
tests/models/cycle/test_startDateDefinition.py,sha256=42BmsT1I7Jq_YMVN-VNU7a0fIZ2w3i5jgwy4H_r4dNM,920
|
|
637
639
|
tests/models/cycle/test_transformations.py,sha256=Ws_8KhNqeHogGFXTQ4qZXQ5Ph2I3ZUaY0yO1itFUHLk,464
|
|
640
|
+
tests/models/cycle/test_unknownPreSeasonWaterRegime.py,sha256=4JSSpDvBQEQrDoytNVzuIcm9UVio4TzZpZm52iMWBVA,1220
|
|
638
641
|
tests/models/cycle/animal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
639
642
|
tests/models/cycle/animal/test_milkYield.py,sha256=e3FX8ikrS7nNeOuy8K7rNLs577odN5xrFohUWQw-tag,1323
|
|
640
643
|
tests/models/cycle/animal/test_properties.py,sha256=ND9ltZQie1xXtQvAzoDUkBYGV_N3rw5D5W-irARvO0s,715
|
|
@@ -702,7 +705,7 @@ tests/models/faostat2018/product/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
|
|
|
702
705
|
tests/models/faostat2018/product/test_price.py,sha256=vUTT-FZVbXnDrwQVOgq8PWTDuFK_gAT6aqJ9ZK6Qcsc,3493
|
|
703
706
|
tests/models/geospatialDatabase/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
704
707
|
tests/models/geospatialDatabase/test_aware.py,sha256=tbBBvXrOqdO0cMPJTa02UfhlwfosH8iNoJLzZNFs1NU,857
|
|
705
|
-
tests/models/geospatialDatabase/test_clayContent.py,sha256=
|
|
708
|
+
tests/models/geospatialDatabase/test_clayContent.py,sha256=GqFAPIOkXfDpJFkI-vK6l3hK0Ap36lLCWGhXCly-DME,1797
|
|
706
709
|
tests/models/geospatialDatabase/test_croppingIntensity.py,sha256=p7OQZOKuxcEhokFqIE4jj6GU3YwR9GtQqNwlhOGy7uI,1006
|
|
707
710
|
tests/models/geospatialDatabase/test_drainageClass.py,sha256=X75v6f8N5i40grULUNMvNOu_UC27VoahuW6BaQb19LY,1015
|
|
708
711
|
tests/models/geospatialDatabase/test_ecoClimateZone.py,sha256=ad0BBOhjl6uMUP_-QhAHEG3kTo7x3EaXuEahbbnx10E,1119
|
|
@@ -712,7 +715,7 @@ tests/models/geospatialDatabase/test_heavyWinterPrecipitation.py,sha256=1xv7L_b3
|
|
|
712
715
|
tests/models/geospatialDatabase/test_histosol.py,sha256=Jc4N7Qt2zx09L8lj9Kjmr1q36T96MBNlasxGB0jD4EQ,1102
|
|
713
716
|
tests/models/geospatialDatabase/test_longFallowRatio.py,sha256=VoYURFuOnlC8ozxcMLTzv99MGlymlVXd596T5MKVvOU,1004
|
|
714
717
|
tests/models/geospatialDatabase/test_nutrientLossToAquaticEnvironment.py,sha256=ZtoNdI_dB3Nk79Ts9JJrlda7z6HRE2cwCQHC2DiWCsY,1034
|
|
715
|
-
tests/models/geospatialDatabase/test_organicCarbonPerKgSoil.py,sha256=
|
|
718
|
+
tests/models/geospatialDatabase/test_organicCarbonPerKgSoil.py,sha256=sx9raq5YGuyVjZ5GfNeo36LXNT5zfvn3W-kDWeoaJWI,1636
|
|
716
719
|
tests/models/geospatialDatabase/test_potentialEvapotranspirationAnnual.py,sha256=6s4XDmKi__njKE_3tFMIAHr0a1w7X4t8uFRtihN_cm4,706
|
|
717
720
|
tests/models/geospatialDatabase/test_potentialEvapotranspirationLongTermAnnualMean.py,sha256=KzIXuYeO5IZ8l4tKsIEaWcFeV_vSPDSpR6xiuvt_x4o,1003
|
|
718
721
|
tests/models/geospatialDatabase/test_potentialEvapotranspirationMonthly.py,sha256=iu8HWAwl52fWDQJ_Nz5AZIAzbuMAjQfiQwxCHlciI-o,762
|
|
@@ -720,15 +723,15 @@ tests/models/geospatialDatabase/test_precipitationAnnual.py,sha256=OhN7dbLZUG8of
|
|
|
720
723
|
tests/models/geospatialDatabase/test_precipitationLongTermAnnualMean.py,sha256=wGGKXGemg3OEgDRRXy52oFf5p8jU57iraTgQMWDzusQ,1033
|
|
721
724
|
tests/models/geospatialDatabase/test_precipitationMonthly.py,sha256=FTmnMXqwxuV_FwNzx8ZJsF5DCdaOdXPNV9UQ5gFKALs,748
|
|
722
725
|
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=
|
|
726
|
+
tests/models/geospatialDatabase/test_sandContent.py,sha256=7H-GNxyn4EGQJd3J3r_SdtSfpPMqR-IlmLo188KAWSU,1797
|
|
727
|
+
tests/models/geospatialDatabase/test_siltContent.py,sha256=DNXa7Ih4TWe3zmBJIAgzZpdyjSRo77hwErkoBluIGaw,1194
|
|
725
728
|
tests/models/geospatialDatabase/test_slope.py,sha256=OQBjH1K1VDgbZ5B9hSy-oPzPnaqYU8Bkb2Cvd-KMqa0,1007
|
|
726
729
|
tests/models/geospatialDatabase/test_slopeLength.py,sha256=56iCm-qn41NpeVHU9dKtAUIrbuEYGbQMOa3sg5dJ5X0,1013
|
|
727
|
-
tests/models/geospatialDatabase/test_soilPh.py,sha256=
|
|
730
|
+
tests/models/geospatialDatabase/test_soilPh.py,sha256=sTKmdZajx-wnyvDLbemJor_fXmqGtcUybfshl-pfO40,1636
|
|
728
731
|
tests/models/geospatialDatabase/test_temperatureAnnual.py,sha256=1hW0fHUlFOAWiPqYZm4ZbTGqjpOAmLb1mkucnAaTrIQ,742
|
|
729
732
|
tests/models/geospatialDatabase/test_temperatureLongTermAnnualMean.py,sha256=Wrz9dbDvXM0OgBA3mXpzY0WZk-yqIp980JRKenxFqno,1031
|
|
730
733
|
tests/models/geospatialDatabase/test_temperatureMonthly.py,sha256=eUaI1TZ-9sXFxWR2UoKBbca8dzW21zp5jGcfbooTt3M,746
|
|
731
|
-
tests/models/geospatialDatabase/test_totalNitrogenPerKgSoil.py,sha256=
|
|
734
|
+
tests/models/geospatialDatabase/test_totalNitrogenPerKgSoil.py,sha256=fZuFjIJ_-bF8HqoNfzA0odmABiSgnttlGQw2Rphqu70,1632
|
|
732
735
|
tests/models/geospatialDatabase/test_totalPhosphorusPerKgSoil.py,sha256=N5Vqf3YKlxHxWRe1PP3Kpbd30bhPOsB8eYr2IGS7quk,1026
|
|
733
736
|
tests/models/geospatialDatabase/test_utils.py,sha256=2AOTtxs7KjPUVQXyErHsm7578523a5WNODVbbuxafAY,758
|
|
734
737
|
tests/models/geospatialDatabase/test_waterDepth.py,sha256=v1y6OcEdSOKu5wlIOYD9UctAx2k7ODP3eLf0WHZZz5w,954
|
|
@@ -738,15 +741,16 @@ tests/models/haversineFormula/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
|
|
|
738
741
|
tests/models/haversineFormula/transport/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
739
742
|
tests/models/haversineFormula/transport/test_distance.py,sha256=hqzIOA1nGao8uiBE16J0ou52McwV4w30ZLpEAqtfi9k,970
|
|
740
743
|
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=
|
|
744
|
+
tests/models/hyde32/test_landTransformationFromCropland100YearAverageDuringCycle.py,sha256=tOwcToAZLgIvVEx0i3S67EDaTBi_gXKy-XZCnw1Akl8,797
|
|
745
|
+
tests/models/hyde32/test_landTransformationFromCropland20YearAverageDuringCycle.py,sha256=Fw1goOLe6xPUA7J65MojAyvuEBWnsypHzfjopER9wWo,796
|
|
746
|
+
tests/models/hyde32/test_landTransformationFromForest100YearAverageDuringCycle.py,sha256=A5ZYNmu7vThE51g6BXZkL8-xsv5EEgFn5a9zxN6T1bw,795
|
|
747
|
+
tests/models/hyde32/test_landTransformationFromForest20YearAverageDuringCycle.py,sha256=mx90anMpzRLVjdOoU6aCghSl7mQNGCO4C-rRnMyVzAQ,794
|
|
748
|
+
tests/models/hyde32/test_landTransformationFromOtherNaturalVegetation100YearAverageDuringCycle.py,sha256=D4EcjiN0-O38VumO7EnnohH6c7adThXWfwiwat2jKT4,819
|
|
749
|
+
tests/models/hyde32/test_landTransformationFromOtherNaturalVegetation20YearAverageDuringCycle.py,sha256=C9caq_xP8NZgtA-WWVArWZ0dzT8k4OmXocCYYrGHxGE,810
|
|
750
|
+
tests/models/hyde32/test_landTransformationFromPermanentPasture100YearAverageDuringCycle.py,sha256=uGrwTFGkOK-s19gFxOC3BGoCTlUkqVxVN18GgbFhDLE,805
|
|
751
|
+
tests/models/hyde32/test_landTransformationFromPermanentPasture20YearAverageDuringCycle.py,sha256=iPSrq8lwEZK4Vzwvr06TRJ_rcLuxTUznRoSw1Xxn--g,804
|
|
749
752
|
tests/models/impact_assessment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
753
|
+
tests/models/impact_assessment/test_allocationMethod.py,sha256=HkUt6oWdEyFSdxMpx8y_Oxk0nO2Fi9B_kUZcVte9tzg,1223
|
|
750
754
|
tests/models/impact_assessment/test_emissions.py,sha256=nygoe5JeuQ1rbMQSqAr8oBSm6jC4ygZb2XNHyEx85lo,990
|
|
751
755
|
tests/models/impact_assessment/test_irrigated.py,sha256=3elSWEN1NE05JO1OMfJ7uf0JmU-fqLpazCvS6FVxMQE,377
|
|
752
756
|
tests/models/impact_assessment/test_oganic.py,sha256=Ei73bkB2MzKlr3jZmg8Cimxw_ImJSBdB3xKBn6ZCRx8,375
|
|
@@ -933,7 +937,7 @@ tests/models/pooreNemecek2018/test_excretaKgN.py,sha256=lKM-Q7TjQoxjvjY9tCcmJxoW
|
|
|
933
937
|
tests/models/pooreNemecek2018/test_excretaKgVs.py,sha256=LIoLevR0tHrZwazuGprt6SCFtmDrj4NBq1s1SJEhQCA,3252
|
|
934
938
|
tests/models/pooreNemecek2018/test_freshwaterWithdrawalsDuringCycle.py,sha256=5QxDU6VzcwWup3Nuhn32kJoIlAkqcSggGr4CmoRqrFA,1623
|
|
935
939
|
tests/models/pooreNemecek2018/test_landOccupationDuringCycle.py,sha256=XbsApbRIuzq4GeaN7PrzlMA7grU7y6j_HPesgQIf_Uw,1650
|
|
936
|
-
tests/models/pooreNemecek2018/
|
|
940
|
+
tests/models/pooreNemecek2018/test_longFallowDuration.py,sha256=kelZajIbKyvVm1vX_grRZy0IUrtejGI5GPn03qbElnw,925
|
|
937
941
|
tests/models/pooreNemecek2018/test_n2OToAirAquacultureSystemsDirect.py,sha256=4YAoUhIwfEmRe2B5BvNg247VeB7UXHNeZqr2mRtJA7Y,2207
|
|
938
942
|
tests/models/pooreNemecek2018/test_n2ToAirAquacultureSystems.py,sha256=YqwAvbYfLVamfkUJUwGTEWEnz8ts66jVF8831QcWNkg,2200
|
|
939
943
|
tests/models/pooreNemecek2018/test_nh3ToAirAquacultureSystems.py,sha256=aTXdtjp3j3vZkRF3C8aHcFwnWZH-FkfTWVdIIZYBaK8,2945
|
|
@@ -1096,12 +1100,12 @@ tests/models/utils/test_practice.py,sha256=ILaxkb3qICor9AquAGYiOtA-YKnq0hppmJQzN
|
|
|
1096
1100
|
tests/models/utils/test_product.py,sha256=kwvgAeeEoRgkeStX0zQcFd-4DJhoUhX6Apaks0MU2L0,2305
|
|
1097
1101
|
tests/models/utils/test_property.py,sha256=t2npw86IK7C6G4ypiPtanFi0db4PB7G5VBR1GjRGl34,618
|
|
1098
1102
|
tests/models/utils/test_site.py,sha256=9MXbP5JXl0mYaH-yVHJINnZu_MYwj-ogsJWZ3XTHxas,1196
|
|
1099
|
-
tests/models/utils/test_source.py,sha256=
|
|
1103
|
+
tests/models/utils/test_source.py,sha256=_Ol-OrJs2Tt9iZAZ_RY2qRuSbnE4yz5OuEGkDSbZPyI,631
|
|
1100
1104
|
tests/models/utils/test_term.py,sha256=M5Sa26v2gzQYbZ4H_fo7DspnaCx__-WtL-MULGapCWk,3509
|
|
1101
1105
|
tests/models/webbEtAl2012AndSintermannEtAl2012/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1102
1106
|
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.
|
|
1107
|
+
hestia_earth_models-0.64.0.dist-info/LICENSE,sha256=AC7h7GAgCZGJK_Tzh6LUCrML9gQEfowWwecEw2w54QM,1154
|
|
1108
|
+
hestia_earth_models-0.64.0.dist-info/METADATA,sha256=tyTyf2TquQ4gi_WG81o9Up-3us02Yz1Nc5ILz_UwI-g,3343
|
|
1109
|
+
hestia_earth_models-0.64.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
|
1110
|
+
hestia_earth_models-0.64.0.dist-info/top_level.txt,sha256=1dqA9TqpOLTEgpqa-YBsmbCmmNU1y56AtfFGEceZ2A0,19
|
|
1111
|
+
hestia_earth_models-0.64.0.dist-info/RECORD,,
|
|
@@ -13,19 +13,19 @@ fixtures_folder = f"{fixtures_path}/{MODEL}/{TERM_ID}"
|
|
|
13
13
|
'test_name,cycle,expected_should_run',
|
|
14
14
|
[
|
|
15
15
|
(
|
|
16
|
-
'no
|
|
16
|
+
'no longFallowDuration => no run',
|
|
17
17
|
{'practices': []},
|
|
18
18
|
False
|
|
19
19
|
),
|
|
20
20
|
(
|
|
21
|
-
'with
|
|
22
|
-
{'practices': [{'term': {'@id': '
|
|
21
|
+
'with longFallowDuration no rotationDuration => no run',
|
|
22
|
+
{'practices': [{'term': {'@id': 'longFallowDuration'}, 'value': [10]}]},
|
|
23
23
|
False
|
|
24
24
|
),
|
|
25
25
|
(
|
|
26
|
-
'with
|
|
26
|
+
'with longFallowDuration and rotationDuration => run',
|
|
27
27
|
{'practices': [
|
|
28
|
-
{'term': {'@id': '
|
|
28
|
+
{'term': {'@id': 'longFallowDuration'}, 'value': [10]},
|
|
29
29
|
{'term': {'@id': 'rotationDuration'}, 'value': [10]}
|
|
30
30
|
]},
|
|
31
31
|
True
|
|
@@ -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
|
|
@@ -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
|
+
])
|
|
@@ -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_SAND_v2_depth_1', 'depthUpper': 0, 'depthLower': 20
|
|
39
|
+
}),
|
|
40
|
+
call(TERM_ID, site, base_params | {
|
|
41
|
+
'collection': 'T_SAND_v2_depth_2', 'depthUpper': 20, 'depthLower': 40
|
|
42
|
+
}),
|
|
43
|
+
call(TERM_ID, site, base_params | {
|
|
44
|
+
'collection': 'T_SAND_v2_depth_3', 'depthUpper': 40, 'depthLower': 60
|
|
45
|
+
}),
|
|
46
|
+
call(TERM_ID, site, base_params | {
|
|
47
|
+
'collection': 'T_SAND_v2_depth_4', 'depthUpper': 60, 'depthLower': 80
|
|
48
|
+
})
|
|
49
|
+
])
|
|
@@ -17,8 +17,8 @@ def test_should_run():
|
|
|
17
17
|
|
|
18
18
|
# with measumrents => run
|
|
19
19
|
site['measurements'] = [
|
|
20
|
-
{'term': {'@id': 'clayContent'}, 'value': [10]},
|
|
21
|
-
{'term': {'@id': 'sandContent'}, 'value': [20]}
|
|
20
|
+
{'term': {'@id': 'clayContent'}, 'value': [10], 'depthUpper': 0, 'depthLower': 20},
|
|
21
|
+
{'term': {'@id': 'sandContent'}, 'value': [20], 'depthUpper': 0, 'depthLower': 20}
|
|
22
22
|
]
|
|
23
23
|
should_run, *_ = _should_run(site)
|
|
24
24
|
assert should_run is True
|
|
@@ -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_PH_H2O_v2_depth_1', 'depthUpper': 0, 'depthLower': 20
|
|
33
|
+
}),
|
|
34
|
+
call(TERM_ID, site, base_params | {
|
|
35
|
+
'collection': 'T_PH_H2O_v2_depth_2', 'depthUpper': 20, 'depthLower': 40
|
|
36
|
+
}),
|
|
37
|
+
call(TERM_ID, site, base_params | {
|
|
38
|
+
'collection': 'T_PH_H2O_v2_depth_3', 'depthUpper': 40, 'depthLower': 60
|
|
39
|
+
}),
|
|
40
|
+
call(TERM_ID, site, base_params | {
|
|
41
|
+
'collection': 'T_PH_H2O_v2_depth_4', 'depthUpper': 60, 'depthLower': 80
|
|
42
|
+
})
|
|
43
|
+
])
|
|
@@ -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_N_v2_depth_1', 'depthUpper': 0, 'depthLower': 20
|
|
33
|
+
}),
|
|
34
|
+
call(TERM_ID, site, base_params | {
|
|
35
|
+
'collection': 'T_N_v2_depth_2', 'depthUpper': 20, 'depthLower': 40
|
|
36
|
+
}),
|
|
37
|
+
call(TERM_ID, site, base_params | {
|
|
38
|
+
'collection': 'T_N_v2_depth_3', 'depthUpper': 40, 'depthLower': 60
|
|
39
|
+
}),
|
|
40
|
+
call(TERM_ID, site, base_params | {
|
|
41
|
+
'collection': 'T_N_v2_depth_4', 'depthUpper': 60, 'depthLower': 80
|
|
42
|
+
})
|
|
43
|
+
])
|
|
@@ -8,6 +8,7 @@ class_path = f"hestia_earth.models.hyde32.{TERM_ID}"
|
|
|
8
8
|
fixtures_folder = f"{fixtures_path}/hyde32/{TERM_ID}"
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
@patch('hestia_earth.models.hyde32.utils.get_land_cover_term_id', return_value='cropland')
|
|
11
12
|
@patch('hestia_earth.models.hyde32.utils._new_indicator', side_effect=fake_new_indicator)
|
|
12
13
|
def test_run(*args):
|
|
13
14
|
with open(f"{fixtures_folder}/impact-assessment.jsonld", encoding='utf-8') as f:
|