maximikos / Brightway2_Intro

This repo contains an introduction to the use of the Brightway2 LCA framework
Creative Commons Attribution 4.0 International
40 stars 19 forks source link

Intro Tutorial #6

Open Wara-Fatima opened 1 year ago

Wara-Fatima commented 1 year ago

When Have you created fpei35con? I am using apos 3.8. how to get the log files for that?

mind that the identifiers looked for below were used when linking the consequential ecoinvent 3.5 database, hence "fpei35con"

for filename in os.listdir(fpei35con): if "874057b2-e4e0-446c-be44-ff2881801e9f" in filename: print(filename) if "7757e24e-897e-4b07-8ca9-87bb8dbe3016" in filename: print(filename)

Wara-Fatima commented 1 year ago

how did you create excel importer example? is that the file containing the manually collected data for name, unit and location to compare with ecoinvent 3.5_cutoff_ecoSpold02

imp = bw.ExcelImporter(os.path.join("excel_importer_example.xlsx")) imp.apply_strategies() imp.match_database(fields=('name', 'unit', 'location')) imp.match_database("ecoinvent 3.5_cutoff_ecoSpold02", fields=('name', 'unit', 'location')) imp.statistics()

Wara-Fatima commented 1 year ago

I am getting this error while execution:

As you can see, this is a nested dictionary. You can also access values within the nested one, for example:

bw.methods.get(('ILCD 1.0.8 2016 midpoint', 'ecosystem quality', 'marine eutrophication')).get('unit')

As you can see, this is a nested dictionary. You can also access values within the nested one, for example:

​ bw.methods.get(('ILCD 1.0.8 2016 midpoint', 'ecosystem quality', 'marine eutrophication')).get('unit')

AttributeError Traceback (most recent call last) Cell In [67], line 3 1 #As you can see, this is a nested dictionary. You can also access values within the nested one, for example: ----> 3 bw.methods.get(('ILCD 1.0.8 2016 midpoint', 'ecosystem quality', 'marine eutrophication')).get('unit')

AttributeError: 'NoneType' object has no attribute 'get'