brightway-lca / bw_hestia_bridge

Consume the HESTIA API in Brightway
https://docs.brightway.dev/projects/hestiabridge/
MIT License
1 stars 0 forks source link

Make sure linking entries are unique #61

Open tfardet opened 1 year ago

tfardet commented 1 year ago

Currently, linking strategy for "znex7uqxsfqn" fails with

Applying strategy: link_iterable_by_fields
Couldn't apply strategy link_iterable_by_fields:
    Object in source database can't be uniquely linked to target database.
Problematic dataset is:
{'cycle_id': 'znex7uqxsfqn',
 'filename': '(missing)',
 'term_id': 'excretaBeefCattleExceptFeedlotFedKgN',
 'transformation_id': '3'}
Possible targets include (at least one not shown):
[{'cycle_id': 'znex7uqxsfqn',
  'filename': '(missing)',
  'term_id': 'excretaBeefCattleExceptFeedlotFedKgN',
  'transformation_id': '3'},
 {'cycle_id': 'znex7uqxsfqn',
  'filename': '(missing)',
  'term_id': 'excretaBeefCattleExceptFeedlotFedKgN',
  'transformation_id': '3'},
 {'cycle_id': 'znex7uqxsfqn',
  'filename': '(missing)',
  'term_id': 'excretaBeefCattleExceptFeedlotFedKgN',
  'transformation_id': '3'}]
Kathleen1203 commented 2 months ago

Hi did you find a solution for that?

tfardet commented 2 months ago

I haven't had time to look at this since, maybe @cmutel did?