Comments (1)
The following answer received, thanks Chris!
The specific issue you are having is due to the presence of a flow in your 'biosphere3' database which doesn't have the 'categories' attribute. You can fix this by relaxing this assumption:
[act for act in db if 'Ammonia' in act['name'] and 'non-urban air' in str(act.get('categories'))]
You could also find the offending flow(s) with:
[flow for flow in db if not flow.get('categories')]
from brightway2.
Related Issues (20)
- F3 Each notebook (where possible) should link to a try.brightway.dev container
- F4 Develop, document, and test contribution guidelines and coding styles, and apply to all libraries
- Importing own LCIA Method HOT 1
- Correct way to do activity-level LCIA HOT 4
- Kernel dies at Package Import on Mac M1 HOT 4
- Unable to install brightway2 using conda HOT 3
- Migrate conda packaging to conda forge HOT 17
- 'import brightway2' causes ModuleNotFoundError when Jupyter Notebook uses autoreload magic HOT 2
- Excel Importer
- Ecoinvent local import: .WrongDatabase: Activity database must be ecoinvent39, but set() was also found HOT 3
- IPCC 2021 for ei39 in Brightway
- Biosphere3 version made clear
- bw2io.errors.MultiprocessingError HOT 1
- Ecospold2 importer issue with versions 2.1, 2.2, 2.4 (ecoinvent 3.6 and ecoinvent 3.8) HOT 1
- Unable to clone repository due to invalid path (possibly forbidden character (?) in file name)
- Brightway tutorial not working on fresh install HOT 3
- Unable to create new project. "IntegrityError: NOT NULL constraint failed: projectdataset.full_hash" HOT 6
- numpy.bool is deprecated and is removed from numpy-1.24.x HOT 1
- Trying to create activity parameters through imports of databases
- Biosphere exchange in- and outputs wrong way around with ecoinvent 3.9.1? 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.