USEPA/IO-Model-Builder

Validation - check for repeat UUIDs

Closed this issue · 1 comments

Upon creation of the JSON-LD files from a model, I received warnings that a duplicate .json file for a flow was being created:

site-packages\iomb\olca_init_.py:267: UserWarning: Duplicate name: 'flows/eff3fef5-fcfc-4201-be4e-a2d342c2e0c7.json'
pack.writestr(path, s)

I believe this is because the UUIDs were repeated for the flow. This was not reported during the validation. It would be nice if the Validation tested for repeat UUIDs.

I added this check (ed34c30). If this fixes the issue we could close it.