brightway-lca / ecoinvent_interface

Unofficial python interface to ecoinvent data
MIT License
12 stars 5 forks source link

Key error when using ep.select_process(attributes only with this Combination: '3.10 + cutoff not yet cached' #35

Closed Shhemant closed 1 day ago

Shhemant commented 2 months ago

This works fine:

ep.set_release(version="3.10", system_model="cutoff")
ep.select_process(dataset_id="7957")
ep.get_basic_info()

{'index': 7957,
 'version': '3.10',
 'system_model': 'cutoff',
 'activity_name': '1,1-difluoroethane production',
 'geography': {'comment': None,
  'short_name': 'RoW',
  'long_name': 'Rest-of-World'},
 'reference_product': '1,1-difluoroethane',
 'has_access': True,
 'unit': 'kg',
 'sector': 'Chemicals'}

This doesn't:

ep.select_process(
    attributes={
        "name": "1,1-difluoroethane production, HFC-152a",
        "location": "US",
        "reference product": "1,1-difluoroethane, HFC-152a",
    }
)
ep.dataset_id
KeyError: 'Combination 3.10 + cutoff not yet cached'

It also works with this combination: ep.set_release(version="3.7.1", system_model="apos")

cmutel commented 1 day ago

3.10 mappings were added in version 2.6.