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

Production exchanges from ecospold 1 not linked (Py 2.7 only) #3

Closed
aleksandra-kim opened this issue Nov 24, 2015 · 2 comments
Closed
Labels
bug Something isn't working major

Comments

@aleksandra-kim
Copy link
Member

Original report by giuseppe cardellini (Bitbucket: cardosan, GitHub: cardosan).


Hey Chris,
while trying to install all the ecoinvent dbs in my py2 installation I discovered it is not working with ei 2.2.
After I discovered I had bw2io 0.2.dev4 in py3 and dev5 in py2 enviro (the other packages same versions) thought this was the prob but then I tried to use also dev 6 and 4 and still it is not working.

It basically does not extract correctly ei 2.2. (used the same file you sent me for both py2 and 3 and the latter gives no prob) leaving several unlinked exchanges

I tried to import also ei 3.1 cutoff and it works...it seems something is wrong with the the ecospold 1 extractor when working with py2
I attached also the notebook
Hope this info help.
G

@aleksandra-kim
Copy link
Member Author

Original comment by Chris Mutel (Bitbucket: cmutel, GitHub: cmutel).


#!python

In [5]: ei = SingleOutputEcospold1Importer("/Users/cmutel/Documents/LCA Documents/Ecoinvent/2.2/processes", "Ecoinvent 2.2")
Extracting ecospold1 files:
0%                          100%
[##############################] | ETA[sec]: 0.000 | Item ID: /Users/cmutel/DD
Total time elapsed: 9.650 sec
Title: Extracting ecospold1 files:
  Started: 11/24/2015 22:00:28
  Finished: 11/24/2015 22:00:37
  Total time elapsed: 9.650 sec
  CPU %: 81.100000
  Memory %: 0.914133
Converting to unicode
Extracted 4087 datasets in 22.11 seconds

In [6]: ei.appl
ei.apply_strategies  ei.apply_strategy

In [6]: ei.apply_strategies()
Applying strategy: normalize_units
Applying strategy: assign_only_product_as_production
Applying strategy: clean_integer_codes
Applying strategy: drop_unspecified_subcategories
Applying strategy: normalize_biosphere_categories
Applying strategy: normalize_biosphere_names
Applying strategy: strip_biosphere_exc_locations
Applying strategy: set_code_by_activity_hash
Applying strategy: link_iterable_by_fields
Applying strategy: link_technosphere_by_activity_hash
Applied 10 strategies in 3.14 seconds

In [7]: ei.statistics()
4087 datasets
135892 exchanges
38617 unlinked exchanges
  Type production: 3565 unique unlinked exchanges
  Type technosphere: 2520 unique unlinked exchanges
Out[7]: (4087, 135892, 38617)

@aleksandra-kim
Copy link
Member Author

Original comment by Chris Mutel (Bitbucket: cmutel, GitHub: cmutel).


Fixed in 9262c68bfa11.

@aleksandra-kim aleksandra-kim added major bug Something isn't working labels Mar 10, 2020
cmutel added a commit that referenced this issue Mar 11, 2020
Allow 'Damage Categories' to be imported from SimaPro LCIA csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

1 participant