fjuniorr / flowmapper

Mappings between elementary flows
MIT License
0 stars 1 forks source link

AttributeError: 'Flow' object has no attribute 'fields' #72

Closed fjuniorr closed 6 months ago

fjuniorr commented 6 months ago

This is happening in https://github.com/fjuniorr/flowmapper/tree/randonneur-transformations when mapping between ecoinvent versions:

    def format_match_result(s: Flow, t: Flow, conversion_factor: float, match_info: dict):
        source_result = {
                         **s.name_raw_object,
                         **s.context_raw_object,
                         **s.unit_raw_object
        }
        if s.uuid:
>           source_result.update({s.fields['uuid']: s.uuid})
E           AttributeError: 'Flow' object has no attribute 'fields'

flowmapper/match.py:23: AttributeError