Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intro Tutorial #6

Open
Wara-Fatima opened this issue Sep 20, 2022 · 2 comments
Open

Intro Tutorial #6

Wara-Fatima opened this issue Sep 20, 2022 · 2 comments

Comments

@Wara-Fatima
Copy link

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
Copy link
Author

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
Copy link
Author

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant