Get the Unit Groups #8
dt-woods
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
To archive the unit groups for future use, try the following after the above: out_file = "unit_groups.json"
out_str = ",".join([json.dumps(x.to_dict()) for x in u_files])
out_str = "[%s]" % out_str
with open(out_file, 'w') as f:
f.write(out_str) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For the openLCA JSON export, we need to create the unit groups that are associated with the flow units. openLCA has a standard convention for this, but not easy to access (e.g., it isn't completely documented in their olca-schema package, just the names and UUIDs).
For simplicity, consider using the unit groups that are defined on the Federal Elementary Flow List, which are in reference to GreenDelta's unit groups.
Here's how.
Beta Was this translation helpful? Give feedback.
All reactions