I have two questions concerning the import of databases in Brightway:
Has anyone had similar problems or knows how to solve them? Thanks a lot!
I imported the file, did a migration and matched the dataset, used link_iterable_by_fields to link the activities to a new ecoinvent, and there observed that there were many unlinked activities that were those that should link internally to an activity in the same database. When I try to write the database I get an error. for exchange in ds.get('exchanges', []): 155 if 'input' not in exchange or 'amount' not in exchange: --> 156 raise InvalidExchange 157 if 'type' not in exchange: 158 raise UntypedExchange
The same procedure went smoothly when using the same database in SimaPro format
It is indeed not very clear in the documentation
bw2io.BW2Package.import_file(path_to_file)