USEPA / IO-Model-Builder

Create environmentally extended input-output models
Other
13 stars 8 forks source link

Validation - check for repeat UUIDs #4

Closed WesIngwersen closed 7 years ago

WesIngwersen commented 7 years ago

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.

msrocka commented 7 years ago

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