Search found 6 matches

by mati
18 Sep 2017 13:23
Forum: Developer
Topic: Problem adding an exchange to a process using the python API
Replies: 2
Views: 7765

Re: Problem adding an exchange to a process using the python API

Another update to my post: I found a workaround for my problem but the general issue with "exchange.unit = MWh" (or MJ or whatever) throwing an error remains. Here's what I did to be able to add an exchange to a process: 1) I realised that I had forgotten to add the exchange before updating the proc...
by mati
18 Sep 2017 13:00
Forum: Developer
Topic: Import error when using the python API
Replies: 2
Views: 7582

Re: Import error when using the python API

Another update on my post: I tried the same python script on a fresh install of openLCA's latest version (1.6.3) on my Mac OS machine (10.10.5) and I did not get the import error. I guess this closes this thread: when using open LCA 1.6.3 the command "from org.openlca.core.database import Daos" does...
by mati
15 Sep 2017 12:37
Forum: Developer
Topic: Problem adding an exchange to a process using the python API
Replies: 2
Views: 7765

Re: Problem adding an exchange to a process using the python API

Update on my original post:
I tried the same python scripts with openLCA 1.6.3 on a Linux machine (ubuntu 16.04) and got the same errors as reported in the original post.
by mati
15 Sep 2017 12:35
Forum: Developer
Topic: Import error when using the python API
Replies: 2
Views: 7582

Re: Import error when using the python API

Update on my original post:
I tried the same python script on a fresh install of openLCA's latest version (1.6.3) on a Linux machine (ubuntu 16.04) and I did not get the import error.
by mati
13 Sep 2017 12:29
Forum: Developer
Topic: Import error when using the python API
Replies: 2
Views: 7582

Import error when using the python API

Hi, I'm testing out the openLCA python API and I really hope I can soon run calculations in bulk through it. I'm starting slowly, using the openLCA python tutorial on GitHub (many thanks for that). I'm trying to use the functions defined in util.py in the GitHub repo. I copied the file util.py on my...
by mati
13 Sep 2017 12:25
Forum: Developer
Topic: Problem adding an exchange to a process using the python API
Replies: 2
Views: 7765

Problem adding an exchange to a process using the python API

Hi, I'd like to use the openLCA python API to modify models and run calculations in bulk. I'm starting slowly, using the openLCA python tutorial on GitHub (many thanks for that). All I'm trying to do for the moment is add an exchange to a process. I'm running a script in the python-developer-tool-co...