Questions tagged [brightway]

Use this tag for questions about the Brightway2 life cycle assessment (LCA) software.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

Exiobase hybrid 3 import missing JSON datapackage

With the following package versions: bw2data 4.0.dev18 bw2io 0.9.dev10 The following code: import bw2io as bi ebhyb3 = bi.Exiobase3HybridImporter(dirpath_ebhyb3, db_name='EXIOBASE 3.3.17 hybrid') ...
  • 427
0 votes
0 answers
8 views

how to do a contribution analysis with traverse_tagged_databases of lca objects modified by an interface

I would like to do a contribution analysis using the traverse_tagged_databases of bw2analyzer, but with an lca object with modifications in the matrices through the data_objs parameter. A priori this ...
  • 1,434
0 votes
0 answers
22 views

brightway method 'ReCiPe 2016 v1.03, midpoint (H) no LT', 'climate change no LT' 'global warming potential (GWP1000) no LT')

After examining the brightway code for the mentioned ReCiPe midpoint(H) method I found 'ReCiPe 2016 v1.03, midpoint (H) no LT', 'climate change no LT' 'global warming potential (GWP1000) no LT'), as ...
1 vote
0 answers
29 views

Brightway2 and carculator: LCIA not characterizing CO2 biosphere flows?

I have recently started working with the carculator package with bw2. I have exported LCI from carculator to import into bw2 to conduct independent analyses. However, when calculating LCA scores with ...
0 votes
1 answer
22 views

Accounting for parameter change in LCIA

I have parametrized exchanges in a brightway process. I want to see how changes in the parameters change the results of the LCA. I can see that updating the parameters worked as the amount entry in my ...
  • 1,716
0 votes
0 answers
15 views

exporting methods and databases with brightway

What would be the correct way to export an impact assessment method, technosphere and a biosphere database with brightway? I've used bw2io.export.write_lci_csv for a small database and works fine. For ...
  • 1,434
0 votes
0 answers
22 views

How to convert multiple LCI ecospold files to a custom excel format/ how to use parse_file from pyecospold/ how to read ecospold into brightway

I have multiple ecospold (version 1) files with LCI data that I want to convert to a custom excel format. I need all data given in the ecospold file. For my own convinience I want to use python to ...
1 vote
2 answers
34 views

LCI data format in BW2

So I want to import my own LCI database to Brightway2, and my process has 3 valuable products. I found this example with co-products: https://github.com/massimopizzol/B4B/blob/main/02....
0 votes
1 answer
22 views

Update LCI inputs from old to newer ecoinvent version

I have a big database of activities which in the LCI have activities from an old ecoinvent version. Is there a fast and easy way to update all the LCIs in the database so that they use a newer version ...
  • 3
1 vote
0 answers
24 views

is it possible to extract "Description" of an ecoinvent activity?

I'm trying to automate the extraction of the "Description" of activities from ecoinvent database (e.g., "wood preservation facility construction, dipping/immersion tank | wood ...
  • 23
1 vote
1 answer
54 views

Unlinked exchanges when importing ecoinvent 3.8 ecospold 2

When I try to import ecoinvent 3.8 in the ecosplod_02 format I get: 19565 datasets 629959 exchanges 1655 unlinked exchanges Type biosphere: 15 unique unlinked exchanges which is a bit odd as it worked ...
  • 13
0 votes
0 answers
60 views

How can I import EF database into Brightway2?

I am trying to import EF database (not just the method) into Brightway2. EF database is available for Simapro, for GaBi, and for openLCA. I was able to download the ef_secondarydata_202202.zolca file ...
  • 1
0 votes
1 answer
62 views

How to generate Sankey diagrams using Brightway2?

I know that we can get Sankey diagrams using activity-browser. Is there a way we can generate a sankey diagram for one of the ecoinvent activities using brightway2 functions and python? I looked into ...
0 votes
0 answers
20 views

Import Agribalyse3.1.bw2package in Brightway failed. OSError: Invalid data stream

I am new to brightway and looking for help. The error I got is "OSError: Invalid data stream" when importing the new Agribalyse3.1. Previously I imported ecoinvent3.9 with no errors. I ...
  • 41
0 votes
0 answers
76 views

write_database method SingleOutputEcospold2Importer not working for Ecoinvent 3.9

I am trying to get started doing LCA using the ecoinvent 3.9 database, Brightway2 and Python. I'm not very knowledgeable yet so please bear with me. I am using Brightway2 version 2.4.2. I am trying to ...
1 vote
1 answer
63 views

Moving datasets from brightway2 to openLCA

So, from the brightway2 documentation I see that I can export datasets in Excel files, simaPro CSVs, ecospodld 1&2s, or JSONs (with the bw2 custom structure from what I understand). openLCA allows ...
  • 67
0 votes
1 answer
100 views

Coupling LCA with process simulation in brightway2

I would like to couple my Life Cycle Assessment (LCA) with process simulation made in Aspen. Basically, I would like for my program, created within Brightway2 framework, to take data from Aspen ...
0 votes
0 answers
51 views

How can I solve Display error: .svg files

The problem is about exporting the .svg file of Sankey tree. I exported it and tried to open it with Chrome here what it says: Chrome error message And the attached code: <svg xmlns="http://...
-1 votes
1 answer
119 views

Brightway2: LCA scores & calculations

My problem is about getting emissions results of my functional unit from a ecoinvent excel spreadsheet format. I managed to get activities/process impacts thanks to ca.annotated_top_processes(lca) or ...
0 votes
0 answers
19 views

Unlinked exchanges after Simapro import in Brightway2. Name in the form : <name> {loc} | market for |

I try to import Simapro CSV into Brightway2. I have been following this notebook. I still have many (200+) unlinked exchange. When looking at the names, they all follow the same pattern : Cement, ...
0 votes
1 answer
44 views

Contribution analysis versus lca.score

I am interested in which processes/activities contribute most to the Life Cycle Impact Assessment (LCIA) that I am conducting. For this, I run a contribution analysis (see code below). To crosscheck ...
  • 856
0 votes
0 answers
20 views

copy a partial version of a background database of system processes with brightway

I have a big background database of system processes (i.e. not linked to each other) and I'd like to create a lighter version with only the activities I need, which are the ones used by my foreground ...
  • 1,434
0 votes
1 answer
80 views

Direct process contributions

I came across the notebook Contribution analysis and comparison which provides a function print_recursive_calculation. def print_recursive_calculation(activity, lcia_method, lca_obj=None, total_score=...
  • 856
0 votes
1 answer
81 views

brightway 2 multiple outputs for recycling a battery

I want to build a recycling mechanism for battiers in brightway 2. In my process of recyclying like hydrometallurgical, the result will be multiple outputs which doesnt work with brightway 2 cause of ...
0 votes
1 answer
106 views

Unlinked exchanges while importing from excel

I am currently trying to import the inventory from excel. I matched the names with ecoinvent 3.8 database and excel template to brightway2 format. However, all my biosphere flows are unlinked ...
0 votes
2 answers
140 views

Brightway2 : what is the model pattern for an xlsx database?

I wanted to know if there is any .xlsx model to create my own Excel database that I'll import afterwards with Brightway2. I use Ecoinvent and I want to make a LCI database from an excel import. I ...
0 votes
1 answer
89 views

Brightway2 : How can I increase verbosity?

from brightway2 import * projects.set_current("default") import logging logging.basicConfig(level=logging.DEBUG, filename="log_import.txt", ...
0 votes
1 answer
72 views

How to 'get' an activity made wiith activity browser in Brightway

I am relatively new with Brightway and the Activity Browser, so please be patient. But I have trouble 'getting' an activity from Brightway that I have created in the Activity Browser. I have created a ...
0 votes
1 answer
86 views

Brightway2 : is it possible to redirect temporary files?

I wanted to know where in the configuration files (either bw2-data, -io etc.) I could find the command or the script that indicates the location of temporary files or how Bw2 chooses this location. I ...
0 votes
1 answer
119 views

How can I use Brightway2 with US LCI database?

Short version: I am trying to upload US LCI database to Brightway2 and I am failing miserably. Has anyone succeeded? If so, could you share it with me? :D Long version: I am following the notebook IO -...
1 vote
1 answer
35 views

Error when running meta-analysis of LCIA methods notebook

I am learning Brightway2 and I have been doing the notebooks from the brightway2 Github repo. So far all notebooks I have done have run smoothly, I am stuck in one concerning Meta-analysis of LCA ...
0 votes
1 answer
24 views

Viewing activity-specific (gate-to-gate) environmental inventory

Just wondering if there is a way in Brightway to view gate-to-gate (direct) emissions of a process?
0 votes
1 answer
66 views

LCA in brightway- Is mass balance maintained during a monte-carlo simulation?

I am running a monte-carlo analysis for a single ecoinvent cut-off process (cement production) in Activity browser/Brightway. 1) Is there a way to perform a mass balance check for each run? Or 2) is ...
1 vote
1 answer
179 views

How to add new activities to an existing brightway2 database?

I loaded the ecoinvent database as shown below. I would like to calculate the impact of a created activity that takes in cotton fibre and polyester fibre as input and produces a mixed fibre as output. ...
1 vote
1 answer
134 views

Overestimated Monte Carlo results in brightway

I am running a Montecarlo simulation on ecoinvent v 3.8 consequential system model and when randomly sampling the activity market for waste paper, sorted' (kilogram, GLO, None) I get very unrealistic ...
0 votes
1 answer
101 views

Biosphere flow name and category mismatch when importing a SimaPro export

I'm currently trying to import an external database into a standard Brightway2 project with ecoinvent 3.7 as a base. The external database is also based on ecoinvent and was created with SimaPro and ...
1 vote
1 answer
79 views

Variation between MonteCarlo mean score and static LCA score

When I try to apply MonteCarlo calculations, I notice that the mean of the MC results is systematically higher than the static results For instance, with the production of Li-ion cell in China : cell=[...
0 votes
2 answers
138 views

Brightway2 - Unlinked and missing cfs when importing Simapro LCIA methods

I am importing Swiss building database UVEK's LCIA methods to Brightway with SimaProLCIACSVImporter() Code: lcia = SimaProLCIACSVImporter( "C:\\Users\\...\\UVEK_Simapro_LCIA_2022.CSV", ...
0 votes
1 answer
25 views

store/access activity metadata in datapackage created with brightway data

When I define a datapackage with with bw2data. How can I access metadata associated with the activities ? lets say I create a simple database : # biosphere bio_db = bd.Database("mini_biosphere&...
  • 1,434
0 votes
1 answer
49 views

how to store bwdata databases as datapackages to reuse elsewhere

How I can store a brightway database as a datapackage that I can use afterwards in a different machine ? I want to build some basic databases using the usual bwio functionalities, such as importing ...
  • 1,434
0 votes
1 answer
78 views

Find an exchange of an activity by a unique identifier other than the name in Brightway2

I want to find all activities in my Ecoinvent database that have activity 'market for electricity, high voltage' as an exchange. The problem is that the 'name' of an activity is not the 'name' of the ...
  • 1
0 votes
1 answer
153 views

Get all elementary flows generated by an activity in Brightway

I would like to access to all elementary flows generated by an activity in Brightway in a table that would gather the flows and the amounts. Let's assume a random activity : lca=bw.LCA({random_act:...
1 vote
1 answer
143 views

Brightway2 - Importing ecospold1 processes exported from openLCA

I have an ecospold1 dataset extracted from openLCA and I would like to import it into Brightway2. Using the SingleOutputEcospold1Importer should read the ecospold files but apparently something is ...
2 votes
2 answers
146 views

"brightway2" pkg incompatible on macOS Apple M1?

I've been trying to install the "brightway2" pkg in my virtual environment with the latest version of miniconda for macOS M1 chip (Miniconda3 macOS Apple M1 64-bit bash) by following ...
  • 23
0 votes
1 answer
129 views

Update a parameter value in Brightway

It seems to be a simple question but I have a hard time to find an answer to it. I already have a project with several parameters (project and database parameters). I would like to obtain the LCA ...
0 votes
2 answers
90 views

Brightway2, Wurst - KeyError: "Can't find this location" in geomatcher.intersects(('IMAGE', reg)) function replicating Mendoza Beltran et al., 2018

I'm currently learning BW2 and Wurst packages, and I'm new to Python. I've been attempting to replicate "When the background matters: Using scenarios from integrated assessment models in ...
0 votes
1 answer
29 views

how to define fiels in .new_activity with broghtway2 that have spaces in their name

When creating a new activity like so: banana = database.new_activity(code='thisisthecodeforthebananamarket', name='banana form havanna', ...
  • 67
1 vote
0 answers
71 views

modelling uncertain exchanges in brightway using parameters

I am trying to define uncertain exchanges using parameters with Brightway25. I've created a very simle example following existing ones that looks like this: The database with this single activity ...
  • 1,434
0 votes
1 answer
41 views

Is there a way to copy an activity to another database?

I would like to create a copy of an activity and move it in another database. I can see two solutions: Option 1 - Use the method .copy() of my activity and then to change the database of the copy. The ...
0 votes
1 answer
90 views

Temporal datasets calculation with "PyPardisoError: The Pardiso solver failed with error code -4" error

I try to run dynamic life cycle assessment on Temporalis. After I constructed the temporal database, and ran tempo.graph_technosphere() and timel_st=dlca_st.calculate(), both came out the "...