cyrillefrancois / openlca2bw

Other
9 stars 5 forks source link

Olcav2.0.0 uslci database loaded but no processes in database after extraction. #11

Open tjlca opened 7 months ago

tjlca commented 7 months ago

environment -

brightway2==2.3
bw-migrations==0.2
bw2analyzer==0.10
bw2calc==1.8.1
bw2data==3.6.5
bw2io==0.8.8
bw2parameters==0.6.6
olca-ipc==0.0.12
openlca2bw==1.0.0

My script is -

Zip_path = "./database/uslci_fy23_q2_01_olca2_0_0_json_ld"
olca2bw.load_openLCA_Json(path_zip=Zip_path,
                          project_name='USLCI2',
                        #  user_databases={"DB1":'Process'},
                          overwrite = True)
bw.databases

####Processes get loaded into the pre-named database "EcoInvent" (change name inside of package)
####Elements get loaded into the biosphere. Process flows are not loaded. 
bio = bw.Database("biosphere3")
len(bio)
db = bw.Database("EcoInvent")

db is empty. This problem does not occur with older versions of openlca <=v1.10.3

tjlca commented 7 months ago

bw.databases

Databases dictionary with 2 object(s):
    EcoInvent
    biosphere3
tjlca commented 7 months ago

Tried with

openlca2bw==1.1.0

Same issue. The db has 0 processes.

cyrillefrancois commented 7 months ago

Did you try to import the uslci database 2.0 in OpenLCA in a first time? And then transfer it to brightway through IPC connexion (or after an export of a json-LD zip file from OpenLCA software) The current version is 1.0.0 Hope that this could help, as I will not be available to deep into this issue. Cyrille