+1 vote
865 views

Hi,

I am trying to combine Python (Jupiter Notebook) and openLCA. Here I am trying myself on the parameterized process according to this tutorial:

https://github.com/GreenDelta/openlca-python-tutorial/blob/master/exemplary-notebooks/%23Example-parametrized-process.ipynb

Unfortunately I never get further than to the creation of a new output flow. For the line

new_flow = olca.product_flow_of('machined steel section', mass)

I always get the error:

module 'olca' has no attribute 'product_flow_of'

Also with other commands like "waste_flow_of". I am doing everything according to the tutorial and have already tried to install an older version of the olca ipc API. I use the "pip install -U olca-ipc" command for installation. When using the dir(olca) command, these commands are also not listed.

I am new to both Python and openLCA so I hope it's not a rookie mistake. Thanks very much for any hints.

Cheers

in openLCA by (180 points)
by (180 points)
I actually solved it myself now. First I installed git via "conda install git", then I used the "pip install -U git+https://github.com/GreenDelta/olca-ipc.py.git/@master" command to install olca. Here all commands are included. Maybe it'll be of help for somebody else

Please log in or register to answer this question.

...