Comments (2)
Hi @djuch ,
sorry for the late answer. Yes, Activity Browser in my experience, is not very good at importing stuff.
I suggest to do it directly in Python, like so (also illustrated in the carculator examples notebook):
import brightway2 as bw
import bw2io
bw.projects.set_current("your_bw_project")
fp = r"/Users/romain/Downloads/carculator_inventory_2022-04-13_for_ei_3.8_brightway2.xlsx"
i = bw2io.ExcelImporter(fp)
i.apply_strategies()
i.match_database(fields=('name', 'unit', 'categories', 'location'))
i.match_database('ecoinvent 3.8 cutoff', fields=('name', 'unit', 'location', 'reference product'))
i.match_database("biosphere3", fields=('name', 'unit', 'categories'))
i.statistics()
There, you will see that you still have some unmatched biosphere flows: those flows are not natively in the biosphere3
database (noise flows, mostly). If you want them, you can incorporate them either by creating an additional biosphere database that you then link to like the above procedure (doing first i.create_new_biosphere(name="additional biosphere")
), or by integrating them into your biosphere3
database, doing i.add_unlinked_flows_to_biosphere_database()
(preferred option I'd say).
Otherwise, if you do not need them, you can drop them:
i.drop_unlinked(i_am_reckless=True)
i.statistics()
241 datasets
2559 exchanges
0 unlinked exchanges
and then write the database:
i.write_database()
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:00
Title: Writing activities to SQLite3 database:
Started: 04/23/2022 11:12:37
Finished: 04/23/2022 11:12:38
Total time elapsed: 00:00:00
CPU %: 52.50
Memory %: 3.88
Created database: carculator export
and there, you'll be able to do our LCAs :-)
from carculator.
Thanks for pointing this out, I've made it an issue on AB.
from carculator.
Related Issues (20)
- Need for improving the calculation of motive energy per km
- Combustion noise calculations possibly incorrect HOT 5
- Differentiate brake emissions from combustion cars from electric cars
- Override calculated parameters caused ValueError HOT 1
- remove pytest from dependencies HOT 1
- With all kind of derived values in "intermediate" CSV files, we loose flexibility
- tank-to-wheel E consumption ICEV-p's HOT 2
- [webtool feature idea] Grouping midpoint indicator graphs by year/car type/
- quick results for Belgium seem way off for EVs HOT 17
- Update electricity mix projections for EU countries HOT 1
- Better definition of annual mileage per year of age
- set_all() method stopped working HOT 2
- Can't reproduce documentation example for mass pie chart HOT 1
- Return type hint in EnergyConsumptionModel.motive_energy_per_km breaks python < 3.9 HOT 2
- ValueError: unsupported pickle protocol: 5 HOT 3
- Hydrogen tank HOT 2
- Waste treatment for glider and engine
- Glider base masses HOT 5
- Double defined parameters 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 carculator.