Closed pwierzgala closed 1 year ago
Thank you for testing the v2
branch! This issue should be fixed now with the v0.0.8 of the olca-schema module (see this test: https://github.com/GreenDelta/olca-ipc.py/blob/v2/tests/test_param.py). It is indeed a bit early to use the IPC module with version 2 and we need to update the doc and the examples. However, this was a very helpful bug-report, so thanks a lot!
This issue is no longer present in the olca-ipc==2.0.0
.
Hi,
I am having troubles adding a parameter with a formula. The parameter is added but with value
0
and no formula. I tried the code below and after running it in theOpenLCA -> Database -> Content -> Parameters
the parameterY
has value0
and no formula. Then I tried to add it manually and it was added as expected with value (computed)40
and formulaX*10
.It should be the same but I also tried:
Versions: OpenLCA:
2.0.0.beta1
olca-ipc:git+https://github.com/GreenDelta/olca-ipc.py.git/@v2
open-schema:0.0.7
I also tried olca-ipc
git+https://github.com/GreenDelta/olca-ipc.py.git/@master
and the one from pypi.org but none of them worked. The code I used for with them was little different. It didn't require to installolca-schema
separately and instead ofnew_parameter
there was functionparameter_of
. Please note that I've managed to correctly add parameters usingolca-ipc /@master
and OpenLCA1.11.0
.[1] Do you have any ideas why it doesn't work? [2] Are there any examples or documentation to
v2
available online? [3] It is reasonable to useOpenLCA 2.0.0.beta1
andolca-ipc /@v2
or it's too early and it's expected that many features won't work as expected? If it's too early could you tell what's the roadmap forv2
and when a version suitable for use is expected?