hestia-earth-models 0.74.15__py3-none-any.whl → 0.74.17__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.

Files changed (22) hide show
  1. hestia_earth/models/cache_nodes.py +9 -6
  2. hestia_earth/models/config/ImpactAssessment.json +0 -22
  3. hestia_earth/models/cycle/completeness/material.py +2 -3
  4. hestia_earth/models/hestia/resourceUse_utils.py +49 -20
  5. hestia_earth/models/ipcc2019/burning_utils.py +37 -0
  6. hestia_earth/models/ipcc2019/co2ToAirAboveGroundBiomassStockChange.py +10 -15
  7. hestia_earth/models/ipcc2019/co2ToAirBelowGroundBiomassStockChange.py +11 -16
  8. hestia_earth/models/ipcc2019/co2ToAirBiocharStockChange.py +7 -17
  9. hestia_earth/models/ipcc2019/co2ToAirCarbonStockChange_utils.py +119 -55
  10. hestia_earth/models/ipcc2019/co2ToAirSoilOrganicCarbonStockChange.py +10 -15
  11. hestia_earth/models/ipcc2019/nonCo2EmissionsToAirNaturalVegetationBurning.py +85 -109
  12. hestia_earth/models/ipcc2019/pastureGrass_utils.py +1 -1
  13. hestia_earth/models/log.py +4 -0
  14. hestia_earth/models/mocking/search-results.json +1 -1
  15. hestia_earth/models/utils/property.py +8 -6
  16. hestia_earth/models/version.py +1 -1
  17. {hestia_earth_models-0.74.15.dist-info → hestia_earth_models-0.74.17.dist-info}/METADATA +14 -6
  18. {hestia_earth_models-0.74.15.dist-info → hestia_earth_models-0.74.17.dist-info}/RECORD +22 -21
  19. {hestia_earth_models-0.74.15.dist-info → hestia_earth_models-0.74.17.dist-info}/WHEEL +1 -1
  20. tests/models/hestia/test_landTransformation20YearAverageDuringCycle.py +4 -8
  21. {hestia_earth_models-0.74.15.dist-info → hestia_earth_models-0.74.17.dist-info/licenses}/LICENSE +0 -0
  22. {hestia_earth_models-0.74.15.dist-info → hestia_earth_models-0.74.17.dist-info}/top_level.txt +0 -0
@@ -1,3 +1,4 @@
1
+ from functools import lru_cache
1
2
  from hestia_earth.schema import SchemaType, TermTermType
2
3
  from hestia_earth.utils.lookup import download_lookup, extract_grouped_data, get_table_value, column_name
3
4
  from hestia_earth.utils.model import find_term_match, linked_node
@@ -99,11 +100,10 @@ def node_has_property(term_id: str):
99
100
  return lambda product: find_term_match(product.get('properties', []), term_id, None) is not None
100
101
 
101
102
 
102
- def node_property_lookup_value(model: str, node_term: dict, prop_id: str, default=None, **log_args):
103
- # as the lookup table might not exist, we are making sure we return `0` in thise case
103
+ @lru_cache()
104
+ def node_property_lookup_value(model: str, term_id: str, term_type: str, prop_id: str, default=None, **log_args):
104
105
  try:
105
- lookup_name = f"{node_term.get('termType')}-property.csv"
106
- term_id = node_term.get('@id')
106
+ lookup_name = f"{term_type}-property.csv"
107
107
  lookup_value = get_table_value(download_lookup(lookup_name), 'termid', term_id, column_name(prop_id))
108
108
  value = extract_grouped_data(lookup_value, 'Avg') if (
109
109
  isinstance(lookup_value, str) and 'Avg' in lookup_value
@@ -111,16 +111,18 @@ def node_property_lookup_value(model: str, node_term: dict, prop_id: str, defaul
111
111
  debugMissingLookup(lookup_name, 'termid', term_id, prop_id, value, model=model, **log_args)
112
112
  return safe_parse_float(value, default=None)
113
113
  except Exception:
114
- return default
114
+ value = get_lookup_value({'@id': term_id, 'termType': term_type}, prop_id, skip_debug=True)
115
+ return default if value is None else value
115
116
 
116
117
 
117
118
  def get_node_property_value(model: str, node: dict, prop_id: str, default=None, handle_percents=True, **log_args):
118
119
  prop = get_node_property(node, prop_id, download_from_hestia=True)
119
120
  term = prop.get('term')
121
+ node_term = node.get('term', {})
120
122
  units = (term or {}).get('units')
121
123
  value = (
122
124
  prop['value'] if 'value' in prop else
123
- node_property_lookup_value(model, node.get('term', {}), prop_id, **log_args)
125
+ node_property_lookup_value(model, node_term.get('@id'), node_term.get('termType'), prop_id, **log_args)
124
126
  )
125
127
  return default if value is None else (value / 100 if units == '%' and handle_percents else value)
126
128
 
@@ -1 +1 @@
1
- VERSION = '0.74.15'
1
+ VERSION = '0.74.17'
@@ -1,12 +1,11 @@
1
- Metadata-Version: 2.1
2
- Name: hestia-earth-models
3
- Version: 0.74.15
1
+ Metadata-Version: 2.4
2
+ Name: hestia_earth_models
3
+ Version: 0.74.17
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
7
7
  Author-email: guillaumeroyer.mail@gmail.com
8
8
  License: MIT
9
- Platform: UNKNOWN
10
9
  Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
11
10
  Classifier: Programming Language :: Python :: 3.6
12
11
  Description-Content-Type: text/markdown
@@ -19,6 +18,17 @@ Requires-Dist: pydash
19
18
  Requires-Dist: area
20
19
  Provides-Extra: spatial
21
20
  Requires-Dist: hestia-earth-earth-engine>=0.5.0; extra == "spatial"
21
+ Dynamic: author
22
+ Dynamic: author-email
23
+ Dynamic: classifier
24
+ Dynamic: description
25
+ Dynamic: description-content-type
26
+ Dynamic: home-page
27
+ Dynamic: license
28
+ Dynamic: license-file
29
+ Dynamic: provides-extra
30
+ Dynamic: requires-dist
31
+ Dynamic: summary
22
32
 
23
33
  # HESTIA Engine Models
24
34
 
@@ -94,5 +104,3 @@ ecoinvent is a consistent, transparent, and well validated life cycle inventory
94
104
  We use ecoinvent data to ascertain the environmental impacts of activities that occur outside of our system boundary, for example data on the environmental impacts of extracting oil and producing diesel, or the impacts of manufacturing plastics.
95
105
 
96
106
  The `ecoinventV3` model requires a valid [license](https://ecoinvent.org/offerings/licences/) to run. We are currently working on a way to enable users of this code with a valid ecoinvent licence to run these models themselves, but for now, these models are only available on the public platform.
97
-
98
-
@@ -1,11 +1,11 @@
1
1
  hestia_earth/__init__.py,sha256=G-d438vPx7m_ks5e9XTtM3u7LDRO5dSSukibukWmyPM,56
2
2
  hestia_earth/models/__init__.py,sha256=qEFeq3yuf3lQKVseALmL8aPM8fpCS54B_5pry00M3hk,76
3
- hestia_earth/models/cache_nodes.py,sha256=CqcTkvT0SQw-MKExUJgM3wDRt2sgdxgVYb6ylNnfC4I,5423
3
+ hestia_earth/models/cache_nodes.py,sha256=wJj3IrxGlZ1Ro7mWZe3ad5yeWzBtroJoaKuvK2FFTrw,5449
4
4
  hestia_earth/models/cache_sites.py,sha256=0TK08ewVobQkXQ-qph_uB_mfoOhEqcPr4KKwlPWgUKs,6439
5
- hestia_earth/models/log.py,sha256=CGQw2VGbGzVw0ezjlzejTFFUpaHvTED2meLFDW589eo,6362
5
+ hestia_earth/models/log.py,sha256=8rZGVAztD5Cy-w9MJWVN7U3pKyxuYHTYnrtn_LmGebI,6524
6
6
  hestia_earth/models/preload_requests.py,sha256=-eb4TA4m-A4bLcdAwbKqr3TIsDteVSXhJGCp95mQCew,2504
7
7
  hestia_earth/models/requirements.py,sha256=eU4yT443fx7BnaokhrLB_PCizJI7Y6m4auyo8vQauNg,17363
8
- hestia_earth/models/version.py,sha256=vO9Eir4oHyHd47pkxODdM0pYKudLMviS6FXpd_kDsSI,20
8
+ hestia_earth/models/version.py,sha256=n9M5qoRbC1ljXdVuxsbtDxipj4mxNKYZTh_Uz-hBdFk,20
9
9
  hestia_earth/models/agribalyse2016/__init__.py,sha256=WvK0qCQbnYtg9oZxrACd1wGormZyXibPtpCnIQeDqbw,415
10
10
  hestia_earth/models/agribalyse2016/fuelElectricity.py,sha256=FraWAl06a8OSqbAiHYYLv9e4fYZkVw42S9wikfjeTdw,4377
11
11
  hestia_earth/models/agribalyse2016/machineryInfrastructureDepreciatedAmountPerCycle.py,sha256=qRkDqpEt3WwleMfHdxMi2nezLmCAxa1TlJZ0IPHDTtI,2584
@@ -38,7 +38,7 @@ hestia_earth/models/cml2001NonBaseline/__init__.py,sha256=vI8wp8Og_e8DiJqYYvp33Y
38
38
  hestia_earth/models/cml2001NonBaseline/eutrophicationPotentialIncludingFateAverageEurope.py,sha256=i6zOr4KAe0FYBEnT9M7Aj1bQqtNqVYDZKYOJ4LLhHlE,972
39
39
  hestia_earth/models/cml2001NonBaseline/terrestrialAcidificationPotentialExcludingFate.py,sha256=JAzphWh_hY437frP0WLobRjnysMsESNcCaNthvCnGd8,966
40
40
  hestia_earth/models/config/Cycle.json,sha256=3QSThmSDNw0dDREXKnHnxyi1Jb8yCMprTmdjI2HcSlI,61355
41
- hestia_earth/models/config/ImpactAssessment.json,sha256=X_CgEB1m8M4uEubhvcgQSovwMwuwSSTFWfkTXM6tChU,61069
41
+ hestia_earth/models/config/ImpactAssessment.json,sha256=0t8zv-zZXMwhYqjLhSgXPrIBu1KbEWskvW2Mrtn2EXk,60405
42
42
  hestia_earth/models/config/Site.json,sha256=ygHgsrrBHKlj7gY7p_9lGXOGPNFWjZnfnnCHkeLhdOM,14992
43
43
  hestia_earth/models/config/__init__.py,sha256=7ZqOGd4dO2Stonte6fbktVZqbY7vp8Ls_LifgofCu8I,3009
44
44
  hestia_earth/models/config/run-calculations.json,sha256=e3nJ4M6CP1iFzfv8ou_ZUFbFxYkDxJgwuNDXTm4PBDc,615
@@ -68,7 +68,7 @@ hestia_earth/models/cycle/completeness/cropResidue.py,sha256=7SNfYvP4erJ2keem3DH
68
68
  hestia_earth/models/cycle/completeness/electricityFuel.py,sha256=ZXljdjAxYgu75GdHioYjNYTgF97LClEP_1g3hFcvJYU,1927
69
69
  hestia_earth/models/cycle/completeness/excreta.py,sha256=wgrinfKnsXMG4I01g0iyFIpz2Ir-T69YB00pgrM_zvY,821
70
70
  hestia_earth/models/cycle/completeness/freshForage.py,sha256=4gKLpZN_WxYU9W6VNpRshSu5oJktBVzbU_7XPhUKByY,2224
71
- hestia_earth/models/cycle/completeness/material.py,sha256=cF33MJkVBUnoicmecdsR78Snrv1Zng097aUeEfYDfdc,1185
71
+ hestia_earth/models/cycle/completeness/material.py,sha256=_O_gZavBa3P_6HSVQpvZKHkQ-zeNxOTxjUh_DN5LJNQ,1096
72
72
  hestia_earth/models/cycle/completeness/seed.py,sha256=vufXOV-KZ860U5DdoTno1WTuM3AK5-ecCUkeKDMiFyE,1775
73
73
  hestia_earth/models/cycle/completeness/soilAmendment.py,sha256=RQPq1Y5VWJbz50tKFtcW54DdQ1YT48mQOteidW8sFcQ,1226
74
74
  hestia_earth/models/cycle/input/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -242,7 +242,7 @@ hestia_earth/models/hestia/residueBurnt.py,sha256=2r53JRfR-im2rfxs9hRKEG4qyNSGxH
242
242
  hestia_earth/models/hestia/residueIncorporated.py,sha256=3Y3l5aiA040YqRpeRE6ljCYSehsp5x7gUYSgj5XyeJk,2679
243
243
  hestia_earth/models/hestia/residueLeftOnField.py,sha256=YKTb_FLcBfHGvnjBf7IC6XvIR4Zum3mnXLMdUWIasTw,2091
244
244
  hestia_earth/models/hestia/residueRemoved.py,sha256=zCGIfdC1DE51rkvK5uUSYxw6jTWI9ahEsrbFRTabIq8,4933
245
- hestia_earth/models/hestia/resourceUse_utils.py,sha256=ctjeJBu2AJ2WJ9ZlFPFBcnmMiyygmz6PSZCX6vV0s3Q,6153
245
+ hestia_earth/models/hestia/resourceUse_utils.py,sha256=fWdK9EnXy3kTHEG1rR7rUk6VyWhNJo4yUztpVShp-qk,7036
246
246
  hestia_earth/models/hestia/salineWater.py,sha256=6P0L24tD0-r4VoFt0Uh8djiMgtivGAePXmHlT0zJPUI,1266
247
247
  hestia_earth/models/hestia/seed_emissions.py,sha256=UbWTnfI76FRX9XSno09bxVSBKxKkuMv6zU7xEyVpVWk,12454
248
248
  hestia_earth/models/hestia/slope.py,sha256=2LdcRvRecUkwmlGVqWBQIeaYfRMvsSWKfS9hWvV_DbU,1160
@@ -304,19 +304,20 @@ hestia_earth/models/ipcc2019/belowGroundBiomass.py,sha256=NOp8WaX1NJk0TawwJRGzdr
304
304
  hestia_earth/models/ipcc2019/belowGroundCropResidue.py,sha256=M9--7akmPWo7gfxEYnKobsJ0HyDzfAzRxLmrCt3Pg1Y,3505
305
305
  hestia_earth/models/ipcc2019/biocharOrganicCarbonPerHa.py,sha256=1N4dsiRY_pyLvPcq3g8uBiAiVwSScLFocS9FFBxRW1s,12580
306
306
  hestia_earth/models/ipcc2019/biomass_utils.py,sha256=NkTPGMl-0tqvhUZKZ1rxW0XTBnZOvgFJki_IPzEEyu0,15796
307
+ hestia_earth/models/ipcc2019/burning_utils.py,sha256=uq3ndASMuyMjDZLCqIcIRo2gHZnh0yi01HnLWhleaTA,1822
307
308
  hestia_earth/models/ipcc2019/carbonContent.py,sha256=XhXDu6DRQxANBsRsCEgw4f0UJDOgWsvhVyEwK1-4YT0,7263
308
309
  hestia_earth/models/ipcc2019/ch4ToAirAquacultureSystems.py,sha256=n1hG-p67BTXkJATvX1em6255WY0mJxk7SojzBwebtnQ,3385
309
310
  hestia_earth/models/ipcc2019/ch4ToAirEntericFermentation.py,sha256=piSmwF1G5mYO32_WWncq_k5PaJ0EWrYguVEl_vns6-Q,12167
310
311
  hestia_earth/models/ipcc2019/ch4ToAirExcreta.py,sha256=5Ujxec6f5lFZaPbKRcg7XMUBmyYeWcMdaR3ZQ6iStrQ,6489
311
312
  hestia_earth/models/ipcc2019/ch4ToAirFloodedRice.py,sha256=3173-WEI_4TpvPdl55VNpmXANPoM92o8hTqcGidj7ds,9979
312
313
  hestia_earth/models/ipcc2019/ch4ToAirOrganicSoilCultivation.py,sha256=0NX2SGFVXcT2bi-icSc-AiscLI2QqgVsOmWV05nOHpM,9552
313
- hestia_earth/models/ipcc2019/co2ToAirAboveGroundBiomassStockChange.py,sha256=HaqqfVT19OTp943QpPkdxv6R8eDSYmEddHq9J2fN6b0,4570
314
- hestia_earth/models/ipcc2019/co2ToAirBelowGroundBiomassStockChange.py,sha256=4kQ0jAnvr1tNS12_FCJpD3K5f9SCkMheNheXu2evaKE,4094
315
- hestia_earth/models/ipcc2019/co2ToAirBiocharStockChange.py,sha256=ngZcV_0Gyowccx5PXhYF56Q7YyxcvmfOjgXkU-Odyyw,3762
316
- hestia_earth/models/ipcc2019/co2ToAirCarbonStockChange_utils.py,sha256=Y9l9DZs9xsojplhFMLWdwNsvnzyMKijX_Y7fvFn3vwA,60998
314
+ hestia_earth/models/ipcc2019/co2ToAirAboveGroundBiomassStockChange.py,sha256=bt9JoG68MBg-u4tw_H7UdpOKj6MMz4QWLEa3ooerghw,4174
315
+ hestia_earth/models/ipcc2019/co2ToAirBelowGroundBiomassStockChange.py,sha256=DmvEDPjZeDv8ikby7vPGHVH-T_099-XbiNq-zHPX_1U,3699
316
+ hestia_earth/models/ipcc2019/co2ToAirBiocharStockChange.py,sha256=khkNR2Z5aFNiF098YLSqr0yQdVlXVXX2_ZagmCzB9PA,3509
317
+ hestia_earth/models/ipcc2019/co2ToAirCarbonStockChange_utils.py,sha256=TtE72p3TYsPYV1cdUCNO1gDK2y94JZG8Ra_wnNWTRt8,63246
317
318
  hestia_earth/models/ipcc2019/co2ToAirLimeHydrolysis.py,sha256=5ciisz0wFbjlwfshDzMlvRIjvw_E8NsphX0IulzVD3A,2479
318
319
  hestia_earth/models/ipcc2019/co2ToAirOrganicSoilCultivation.py,sha256=MZGAlJEGs7DiiFw40tGzx-e8ZMze7sgC-R2X-FZl3aE,7613
319
- hestia_earth/models/ipcc2019/co2ToAirSoilOrganicCarbonStockChange.py,sha256=Ti1koM7k_fV7iWklSFngYaBpAERf3yOaUM5BTbWmDxs,4106
320
+ hestia_earth/models/ipcc2019/co2ToAirSoilOrganicCarbonStockChange.py,sha256=CmKMmW0O6pDcg-uCUIhLXm2xf3c2AktxGS6Cl939xpY,3712
320
321
  hestia_earth/models/ipcc2019/co2ToAirUreaHydrolysis.py,sha256=IInWDQCfMQWd6rXDRZnLMQlaQGghVQJcwFSGtRMdkzo,3871
321
322
  hestia_earth/models/ipcc2019/croppingDuration.py,sha256=AEOnzVc8mbx0kHpm5BIEiXr1zP0IDUl9qKktNlgURnk,3080
322
323
  hestia_earth/models/ipcc2019/ligninContent.py,sha256=nAhwrl0b3pbGQnAycEESAzakdpXajONTnbhNwgPR7nw,7293
@@ -344,7 +345,7 @@ hestia_earth/models/ipcc2019/no3ToGroundwaterCropResidueDecomposition.py,sha256=
344
345
  hestia_earth/models/ipcc2019/no3ToGroundwaterExcreta.py,sha256=BV7kdeGlDbSQASBtYZuLNTQktrteaMWGJzIbG97flH0,4319
345
346
  hestia_earth/models/ipcc2019/no3ToGroundwaterInorganicFertiliser.py,sha256=zww-PDlLdz3XbrlXfW7F8nWzP3Iud1uLW-mRo8HZf2o,3250
346
347
  hestia_earth/models/ipcc2019/no3ToGroundwaterOrganicFertiliser.py,sha256=AHCYaj_al-cLFtvWHhxZLlrZfpjIyWg2rKR435qqGxM,3184
347
- hestia_earth/models/ipcc2019/nonCo2EmissionsToAirNaturalVegetationBurning.py,sha256=MSg_43Pybi5Tf2RVlSv_2pCBk2RSV6PiwoYlEm2Z0Hg,33455
348
+ hestia_earth/models/ipcc2019/nonCo2EmissionsToAirNaturalVegetationBurning.py,sha256=SFBZqhczOKsEQEm-xURnFwL9qL1a4W_JZgyiMR9cnhU,32446
348
349
  hestia_earth/models/ipcc2019/noxToAirInorganicFertiliser.py,sha256=nBBiKzGMUYtHkU49AKBxQ7OdD61cb9_Ehe7ixFWKHR4,4336
349
350
  hestia_earth/models/ipcc2019/noxToAirOrganicFertiliser.py,sha256=yONOR8ppiOXQlPPz68GQ2_3MFzvnOQTJTHpJ956ubW0,4008
350
351
  hestia_earth/models/ipcc2019/organicCarbonPerHa.py,sha256=qYR1iB95Uz841xPe727ZYUtrRhg_Unbktf1YEjZHqyU,8000
@@ -353,7 +354,7 @@ hestia_earth/models/ipcc2019/organicCarbonPerHa_tier_2.py,sha256=2kw9bhkR4o4ZSeC
353
354
  hestia_earth/models/ipcc2019/organicCarbonPerHa_utils.py,sha256=DDP3nY-QVRU10FkFihNbnF66-Oa6O6Tkn7ycnetN110,9924
354
355
  hestia_earth/models/ipcc2019/organicSoilCultivation_utils.py,sha256=S5XaM7142_ShxFFXPZ4HaOdofRzMYucWc--5udxuin4,5361
355
356
  hestia_earth/models/ipcc2019/pastureGrass.py,sha256=V1PRJ17dYw0p9lvuyRVFuYzJrpmNOs0FjhNUXOuUkyU,10202
356
- hestia_earth/models/ipcc2019/pastureGrass_utils.py,sha256=so5AFrr_0eKXkUoyBpYhHgSXhTQ5z2XADahm2At4RR0,14285
357
+ hestia_earth/models/ipcc2019/pastureGrass_utils.py,sha256=hAZQvG6VdY3KxVe2yiHoYNpGHRdnHApUZSuxUAZcGi0,14310
357
358
  hestia_earth/models/ipcc2019/utils.py,sha256=s3khA5nJ0rpFsrwWoIGW0y3OYrYA5Iw2GTxN86gO_K8,5890
358
359
  hestia_earth/models/ipcc2019/animal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
359
360
  hestia_earth/models/ipcc2019/animal/fatContent.py,sha256=rnFergteN5rwH9KLyVQR7iolh5Onj2gF785DnLIbIHI,994
@@ -472,7 +473,7 @@ hestia_earth/models/linkedImpactAssessment/utils.py,sha256=uxRu5thfTDGpCNIuv3Nak
472
473
  hestia_earth/models/mocking/__init__.py,sha256=-mJ_zrVWZSGc3awWW2YJfXAK3Nku77sAUgmmFa99Xmo,733
473
474
  hestia_earth/models/mocking/build_mock_search.py,sha256=p15ccEUmkmLp1RiGNznxMz3OFHbI8P1-29ExuohiQN8,1355
474
475
  hestia_earth/models/mocking/mock_search.py,sha256=uvklojTAbjDI7Jw43jGAUDcTHk1R3A3CWiYBJZI6rao,1493
475
- hestia_earth/models/mocking/search-results.json,sha256=Y38gcp5sPNm7P-Bd2dUk6XMpJGUKQAZNCOJRj37ZD70,103984
476
+ hestia_earth/models/mocking/search-results.json,sha256=ZwHwW0gAsv9_R3lbPXty_PqIRlytWx9UA5Qme2zZdL4,104039
476
477
  hestia_earth/models/pooreNemecek2018/__init__.py,sha256=nPboL7ULJzL5nJD5q7q9VOZt_fxbKVm8fmn1Az5YkVY,417
477
478
  hestia_earth/models/pooreNemecek2018/aboveGroundCropResidueTotal.py,sha256=FoiRk-bULfC9VbhT7L-wgjehrUkG_74XiG2WnW1Rc-U,2402
478
479
  hestia_earth/models/pooreNemecek2018/belowGroundCropResidue.py,sha256=r7Wqo5v29NrKfhDd0g1QCharR2k6H5XFyAsKZ6pvYKY,2321
@@ -649,7 +650,7 @@ hestia_earth/models/utils/pesticideAI.py,sha256=DQIAjgkWjKPyuMLUvnEgVkeQGCEOBjyJ
649
650
  hestia_earth/models/utils/practice.py,sha256=EceuaGZjClr6fvgIV2MvsuD9jXJayTBTKCzp98oTGnU,1079
650
651
  hestia_earth/models/utils/product.py,sha256=MfkTtuitTUbBJoM3AHymcjnYzWux6FxnIzS-Q4xXtkY,11767
651
652
  hestia_earth/models/utils/productivity.py,sha256=KIyrIuGcf8QgdBY54i7i038ZPXGqArM6mCzi2vwU3pI,601
652
- hestia_earth/models/utils/property.py,sha256=bgQNSXNdJsc0iqmm96LCHrq7In75xZyzYrnhcy8iHr8,5457
653
+ hestia_earth/models/utils/property.py,sha256=bJlMTCbxrH_WIo16h6uX_OdRAjJH7KAdNUOQj7jJZLE,5562
653
654
  hestia_earth/models/utils/site.py,sha256=5S-53PHQnstr4LVveRuNhk4kpvGJtR8oc-t3OsxRyms,4128
654
655
  hestia_earth/models/utils/source.py,sha256=D_QlW7Ul_NV1iOucMNE3szT64b1RdSdecIEm6OukYhw,2459
655
656
  hestia_earth/models/utils/temperature.py,sha256=ljlG4-yCgFFb6LRZweb18cZKLrr7K2mqd4E4Hz_D1f8,476
@@ -675,6 +676,7 @@ hestia_earth/orchestrator/strategies/run/__init__.py,sha256=At0V8CI4vyiSY-Vh2PHM
675
676
  hestia_earth/orchestrator/strategies/run/add_blank_node_if_missing.py,sha256=lAfL-NK-gh2YQnTis2lIyb1uI_fsnwFWS10qwbga43M,2756
676
677
  hestia_earth/orchestrator/strategies/run/add_key_if_missing.py,sha256=t3U-v87XpbtpsvjA_r0Ftm7MhNkGB0kcUSGFlKBIK_I,352
677
678
  hestia_earth/orchestrator/strategies/run/always.py,sha256=D0In6_kr28s-fgqspawgvj5cgFClxGvepZYqtYsjWVE,217
679
+ hestia_earth_models-0.74.17.dist-info/licenses/LICENSE,sha256=TD25LoiRJsA5CPUNrcyt1PXlGcbUGFMAeZoBcfCrCNE,1154
678
680
  tests/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
679
681
  tests/models/test_cache_nodes.py,sha256=lSSoBGFVXpNv_TePSetls6QbnhfLC7dNLmfiFqT6WuY,1043
680
682
  tests/models/test_cache_sites.py,sha256=eZkbgAhfA-67GhPgE4lk8byHnYvX2Ate1KPsE6jH1-c,2954
@@ -880,7 +882,7 @@ tests/models/hestia/test_landCover.py,sha256=dk5mnmCNv6gamx-xf0-_uUR31kBNavL8T9_
880
882
  tests/models/hestia/test_landCover_utils.py,sha256=o5LJ2PwTmUkxKvdHXQsdltrxeyt5kCxwtMtZXMrXqNA,6891
881
883
  tests/models/hestia/test_landOccupationDuringCycle.py,sha256=0IVJH7jL8q6Gu4gVo-ENYNw8aetOb-nhzvRXsFqMBEQ,2428
882
884
  tests/models/hestia/test_landTransformation100YearAverageDuringCycle.py,sha256=3qa4rWUFqP1VM5-vm_182rhiBYJDxPqJwWtBqJ5K028,956
883
- tests/models/hestia/test_landTransformation20YearAverageDuringCycle.py,sha256=bUByojQuVeuCfko1_2YtNJi1PT9yktHlcbPi_p-MPvk,1001
885
+ tests/models/hestia/test_landTransformation20YearAverageDuringCycle.py,sha256=mFCru8NoHGYD6j1qNmmfbzhzJQhTNrhqdn1yJdsnp8E,1038
884
886
  tests/models/hestia/test_liveAnimal.py,sha256=3K9cL1fwr6LlBl1_D8zIaeCOuiExqkDEU7BXx1JK_dk,2139
885
887
  tests/models/hestia/test_longFallowRatio.py,sha256=OVd6NByAXeCAOx9ux_m8IJwnEF-fqIaBOoKFSGWhyO0,1513
886
888
  tests/models/hestia/test_management.py,sha256=ROWfDX-2aeeQXaflLPzOpiC6Qi5lsbMldBbFAlWKAUQ,2755
@@ -1298,8 +1300,7 @@ tests/orchestrator/strategies/run/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
1298
1300
  tests/orchestrator/strategies/run/test_add_blank_node_if_missing.py,sha256=K4xg4UAXfNhSaLyknKVPO7MGBF44Z_gD7CuZ_pe28gU,3512
1299
1301
  tests/orchestrator/strategies/run/test_add_key_if_missing.py,sha256=hKwvk1ohcBVnQUCTiDhRW99J0xEa29BpwFi1KC0yWLE,329
1300
1302
  tests/orchestrator/strategies/run/test_always.py,sha256=w5-Dhp6yLzgZGAeMRz3OrqZbbAed9gZ1O266a3z9k7w,134
1301
- hestia_earth_models-0.74.15.dist-info/LICENSE,sha256=TD25LoiRJsA5CPUNrcyt1PXlGcbUGFMAeZoBcfCrCNE,1154
1302
- hestia_earth_models-0.74.15.dist-info/METADATA,sha256=4AtIGfEZBnRYTvkOa0N9lH7i7jNOr1JhKFIAJ0kg4cM,4039
1303
- hestia_earth_models-0.74.15.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1304
- hestia_earth_models-0.74.15.dist-info/top_level.txt,sha256=1dqA9TqpOLTEgpqa-YBsmbCmmNU1y56AtfFGEceZ2A0,19
1305
- hestia_earth_models-0.74.15.dist-info/RECORD,,
1303
+ hestia_earth_models-0.74.17.dist-info/METADATA,sha256=MQMZ5cIrnNeiLTJgCFHQEyOz_QJje2X7T_0ae25iK_U,4254
1304
+ hestia_earth_models-0.74.17.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
1305
+ hestia_earth_models-0.74.17.dist-info/top_level.txt,sha256=1dqA9TqpOLTEgpqa-YBsmbCmmNU1y56AtfFGEceZ2A0,19
1306
+ hestia_earth_models-0.74.17.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.45.1)
2
+ Generator: setuptools (79.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,3 +1,4 @@
1
+ import os
1
2
  import json
2
3
  from unittest.mock import patch, Mock
3
4
  import pytest
@@ -10,15 +11,10 @@ from hestia_earth.models.hestia.landTransformation20YearAverageDuringCycle impor
10
11
  class_path = f"hestia_earth.models.{MODEL}.{TERM_ID}"
11
12
  fixtures_folder = f"{fixtures_path}/{MODEL}/{TERM_ID}"
12
13
 
14
+ _folders = [d for d in os.listdir(fixtures_folder) if os.path.isdir(os.path.join(fixtures_folder, d))]
13
15
 
14
- @pytest.mark.parametrize(
15
- "subfolder",
16
- [
17
- "maize_brazil",
18
- "orange_iran",
19
- "aggregated"
20
- ]
21
- )
16
+
17
+ @pytest.mark.parametrize("subfolder", _folders)
22
18
  @patch("hestia_earth.models.hestia.resourceUse_utils._new_indicator", side_effect=fake_new_indicator)
23
19
  def test_run(mock_new_indicator: Mock, subfolder):
24
20
  folder = f"{fixtures_folder}/{subfolder}"