openlca-python-tutorial
openlca-python-tutorial copied to clipboard
Explains the usage of the openLCA API from Python (Jython)
In the product system tutorial the LCI method is selected via an interactive window ```python methodDescriptor = ModelSelectionDialog.select(ModelType.IMPACT_METHOD) ``` How can I choose a method directly in jython? How can...
Hi, enjoying learning this api, thank you! I haven't been able to delete entities using the dao. i am using openLCA 1.6.3, and the ide and jython version specified here....
I am trying to import from `org.openlca.app` to be able to build product system but get the error message ```shell ImportError: No module named app ``` Apparently I don't have...
I´m trying to generate a new product system with one process and the related porvider porcesses. I want to use the auto-complete function. Generating the new product system works with:...
How can I set the output of an sql query on an openLCA database to a new variable? For example, the following will print the id and name of a...
Getting a flow from the database `elcd_3_2_greendelta_v2_16` is no problem with the following function ```python def find(db, clazz, name): """ Find something by name""" dao = Daos.createBaseDao(db, clazz) for item...
Hello, I´m trying to work through the example.py with jython. As far as I understand it, I will need a $py.class file coming with the util.py file, right? As I...
Hi, Thanks for your tutorial. I found openLCA is very friendly to developers with python embedded. Thanks for making this. I want to use the python interface to create a...
Hi I have some larger product systems of a few hundred processes. I have a use case where some of the processes need to be deleted, while preserving the rest...
Hello @msrocka ! Thanks for putting this up :) How do i execute the "say hello" code written in the python window in OpenLCA?  Version - 1.6.2 Windows 7,...