

With this function no need to export the all database from OpenLCA, only modified element con be exported It seems complicated to only import modification, so the program delete the previous database and load the new one with specified openLCA folders. The update_databases dictionnary allows the user to specified the brightway databases that will be replaced. The update_openLCA_Json() function only import specified elements to an existing brightway project. Load_openLCA_Json(path_zip='C:/user/userprofile/document/olcaJSON.zip',user_databases=my_dict) The format of "user_databases" entry is a dictionnary : To split OpenLCA into several database you need to specify the databases you want to create and the OpenLCA folders related. The load_openLCA_IPC() function has default values and can be run without entries, nontheless all processes will be stored in one unique bw2 database ('EcoInvent').
#Openlca example software#
To import with IPC protocol, you need to lauch OpenLCA, to open your database and activate the IPC protocol from the OpenLCA software (Tool/Developer tools/IPC server) The IPC connection is made by the OpenLCA software and allows ather software to access the database.
#Openlca example zip#
zip json extraction) IPC protocol importation

The main functions to import olca database to brightway are load_openLCA_IPC() (to import from IPC protocol) or load_openLCA_Json() (to import from a. This is a Python package to import OpenLCA database to the brightway python environmentįor exemple C:/user/userprofile/document/openlca2bw
