Closed Miguel-g-c closed 3 years ago
This PR implement openLCA entities as dataclasses. In order to do that, 3 main changes were implemented:
scripts/genmodel.py
olca/schema.py
olca/ipc.py
ProductResult
ContributionItem
ProcessRef
Ref
The changes were tested running every test. All tests were passed without problems.
The required changes have been introduced. Also, typing List and Tuple have been changed for stdlib list and tuple that now supports [] since version 3.9.
typing
List
Tuple
stdlib
list
tuple
[]
This PR implement openLCA entities as dataclasses. In order to do that, 3 main changes were implemented:
scripts/genmodel.py
was modified in order to produce dataclasses from the latest olca-schema yaml files.olca/schema.py
file was generated with the previous script.olca/ipc.py
dataclasses were also introduced forProductResult
andContributionItem
. Finally,ProcessRef
was modified toRef
.The changes were tested running every test. All tests were passed without problems.