Code Monkey home page Code Monkey logo

Comments (2)

aleksandra-kim avatar aleksandra-kim commented on June 24, 2024

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)

from brightway2-io.

aleksandra-kim avatar aleksandra-kim commented on June 24, 2024

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


Fixed in 9262c68bfa11.

from brightway2-io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.