Code Monkey home page Code Monkey logo

Comments (1)

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

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


The csv file test_parameters_no_subprod.xlsx can be used as test.

It contains activity, project and db parameters both as input (i.e. amount) and calculated (i.e. formula). Parameters (and formulas) are in technosphere, substitution, production and biosphere exchanges and the file contains also a duplicate parameter (i.e. the 2 activity has parameters with same name) and each of the 2 datasets has the other as input. Dunno if all the possible cases are covered but the sima db can be updated.
Be aware that is linked to ecoinvent and need to :

match_database("ecoinvent 3.2 cutoff",  fields=['name', 'unit', 'location','reference product']) 
match_database("biosphere3",  fields=['name', 'unit', 'categories']) 

The xslx file test_parameters.xlsx reproduce the same database in a format to be imported with the ExcelImporter.

From what I could see so far the importing has two problems that are independent from the way they are imported (i.e. occurs also in the xls file)

  1. when production amount is not explicitly set (no amount) but is based on a formula the importing fails when trying to assign_only_product_as_production
  2. also when point 1 is solved (e.g. just setting an amount to the production exchange in the xlsx file) this database is not imported due to Undefined or circular references error.

P.S: disregard or better delete the file test_parameters.CSV, it was the first that I changed and improved.

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.