0 votes


I'm new to openLCA, and a bit lost among the possible tools for using the API.

Suppose I got an EcoSpold02 file. I want to compute impact results on this data, using openLCA. So I need to import this file, and then to make the calculations.

It looks like olca-ipc is fine for the calculations... if you already have data stored in an openLCA IPC server. The problem is I didn't find how to import an Ecospold file with olca-ipc. I read about olca-io module but it looks more like a maven module that you cannot use in an external python script.

Thank you in advance for any clues !

in openLCA by (680 points)

1 Answer

+1 vote
by (11.3k points)
selected by
Best answer
It is currently not possible to import an EcoSpold data set via olca-ipc. But yes, you could use the olca-io module from a JVM language (Java, Kotlin, Scala, Clojure ... or Jython). P/Jython scripts can be executed from the Python editor in openLCA, you have full access to the openLCA API there. You can find some examples here: https://github.com/GreenDelta/openlca-python-tutorial (though some of them are outdated). Calling the import is not very complicated: you create an instance of `EcoSpold2Import` with some configuration, set the files (`spold` or `zip` files), and call the `run` method: https://github.com/GreenDelta/olca-modules/blob/master/olca-io/src/main/java/org/openlca/io/ecospold2/input/EcoSpold2Import.java#L26.

If this does not help, we also provide developer trainings where we can help with such things or implement this together: http://www.openlca.org/trainings/
by (680 points)
Thank you very much for the answer.

As I want to make calculations after importing the Ecospold file, I may need a few other modules you provide. I'm wondering whether I should incorporate the modules I need in my code base (Spring web app), or use a full API solution, like Brightway. I recon that so far, it seems to me that Brightway is more adapted to my need.