Comments (1)
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)
- when production amount is not explicitly set (no
amount
) but is based on aformula
the importing fails when trying toassign_only_product_as_production
- also when point 1 is solved (e.g. just setting an
amount
to theproduction
exchange in the xlsx file) this database is not imported due toUndefined 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)
- How to export database with location information of technosphere HOT 1
- [BW2 Legacy] Using older versions of Biosphere HOT 2
- database writing failed due to unlinked exchanges in ecoinvent 3.10 HOT 4
- Some extractor methods do not have the `use_mp` flag implemented, causing them to fail. HOT 1
- [BW2 legacy] Error with easy ecoinvent biosphere flows/LCI/LCIA import of bw2io version 0.8.11 HOT 3
- SimaPro CSV importer doesn't fix broken uncertainty values HOT 8
- US EEIO import is broken
- [Discussion/Feature request] Adding `database` field to Linking Iterables by field on import HOT 2
- Excel file import - AttributeError: 'int' object has no attribute 'lower' HOT 1
- Few type hints not compatible with python 3.9 & python 3.8 HOT 1
- Encoding erorr when running `import_ecoinvent_release` on `v3.10` HOT 3
- Backport fix for "chemical formulas" from 0.9.DEV7 to 0.8.X ? HOT 1
- AttributeError in add_missing_cfs(): 'ExcelLCIAImporter' object has no attribute 'biosphere_name' HOT 1
- Importing in BW processes written in SP HOT 2
- errors importing exiobase in monetary units HOT 1
- KeyError in IOTable backend HOT 2
- update README to use cookiecutterlib format
- Configurable multiprocessing for large data import (Ecoinvent ecospold2) HOT 2
- `ExcelImporter` should convert integer codes to strings HOT 5
- minor compatibility issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brightway2-io.