Import libraries¶

In [1]:
#!pip install matplotlib
#!pip install numpy==1.26.1 # Needed to downgrade numpy version
import time
import numpy as np
import pandas as pd
import bw2calc as bc
import bw2io as bi
import bw2data as bd
import os
from premise import *
from premise_gwp import add_premise_gwp

Set up: project, biosphere, ecoinvent (technosphere), and Premise-adjusted IPCC 2021 GWP method¶

The Premise-adjusted IPCC 2021 GWP method must be imported to account for negative biogenic carbon flows, such as those associated with BECCS technology, which is implemented in Premise.

In [ ]:
bd.projects.set_current("WP2_paper_v3")
bi.bw2setup()

if 'ecoinvent 3.9.1' in bd.databases:
    print("Database has already been imported.")
else:
    #fp = r"C:\Users\js3700\PLCA-LIBs\ecoinvent 3.8\datasets"
    fp = r"C:\Users\js3700\EcoInvent\ecoinvent 3.9.1\datasets"
    ei = bi.SingleOutputEcospold2Importer(fp, 'ecoinvent 3.9.1')
    ei.apply_strategies()
    ei.statistics()
    ei.write_database()

add_premise_gwp()
In [2]:
bd.projects.set_current("WP2_paper_v3")
list(bd.databases)
Out[2]:
['biosphere3',
 'ecoinvent 3.9.1',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP60_2025_2024-07-23 14-41',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP60_2030_2024-07-23 14-51',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP60_2035_2024-07-23 15-02',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP60_2040_2024-07-23 15-15',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP60_2045_2024-07-23 15-33',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP60_2050_2024-07-23 15-59',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP45_2025_2024-07-23 16-34',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP45_2030_2024-07-23 17-05',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP45_2035_2024-07-23 17-30',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP45_2040_2024-07-23 17-54',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP45_2045_2024-07-23 18-14',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP45_2050_2024-07-23 18-44',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP26_2025_2024-07-23 19-09',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP26_2030_2024-07-23 19-44',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP26_2035_2024-07-23 20-12',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP26_2040_2024-07-23 20-53',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP26_2045_2024-07-23 21-25',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP26_2050_2024-07-23 21-58',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP19_2025_2024-07-23 22-35',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP19_2030_2024-07-23 23-12',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP19_2035_2024-07-24 00-07',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP19_2040_2024-07-24 00-49',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP19_2045_2024-07-24 01-33',
 'ecoinvent_cutoff_3.9_tiam-ucl_SSP2-RCP19_2050_2024-07-24 02-18',
 'ecoinvent_cutoff_3.9_image_SSP2-Base_2025_2024-07-24 03-06',
 'ecoinvent_cutoff_3.9_image_SSP2-Base_2030_2024-07-24 03-57',
 'ecoinvent_cutoff_3.9_image_SSP2-Base_2035_2024-07-24 04-49',
 'ecoinvent_cutoff_3.9_image_SSP2-Base_2040_2024-07-24 05-25',
 'ecoinvent_cutoff_3.9_image_SSP2-Base_2045_2024-07-24 06-21',
 'ecoinvent_cutoff_3.9_image_SSP2-Base_2050_2024-07-24 07-19',
 'ecoinvent_cutoff_3.9_image_SSP2-RCP26_2025_2024-07-24 08-19',
 'ecoinvent_cutoff_3.9_image_SSP2-RCP26_2030_2024-07-24 09-37',
 'ecoinvent_cutoff_3.9_image_SSP2-RCP26_2030_2024-07-24 10-05',
 'ecoinvent_cutoff_3.9_image_SSP2-RCP26_2035_2024-07-24 10-51',
 'ecoinvent_cutoff_3.9_image_SSP2-RCP26_2040_2024-07-24 11-46',
 'ecoinvent_cutoff_3.9_image_SSP2-RCP26_2045_2024-07-24 12-39',
 'ecoinvent_cutoff_3.9_image_SSP2-RCP26_2050_2024-07-24 13-28',
 'ecoinvent_cutoff_3.9_image_SSP2-RCP19_2025_2024-07-24 14-30',
 'ecoinvent_cutoff_3.9_image_SSP2-RCP19_2030_2024-07-24 15-35',
 'ecoinvent_cutoff_3.9_image_SSP2-RCP19_2035_2024-07-24 16-51',
 'ecoinvent_cutoff_3.9_image_SSP2-RCP19_2040_2024-07-24 17-47',
 'ecoinvent_cutoff_3.9_image_SSP2-RCP19_2045_2024-07-24 18-40',
 'ecoinvent_cutoff_3.9_image_SSP2-RCP19_2050_2024-07-24 19-40',
 'ecoinvent_cutoff_3.9_remind_SSP2-Base_2025_2024-07-24 20-38',
 'ecoinvent_cutoff_3.9_remind_SSP2-Base_2030_2024-07-24 21-38',
 'ecoinvent_cutoff_3.9_remind_SSP2-Base_2035_2024-07-24 22-42',
 'ecoinvent_cutoff_3.9_remind_SSP2-Base_2040_2024-07-24 23-49',
 'ecoinvent_cutoff_3.9_remind_SSP2-Base_2045_2024-07-25 00-50',
 'ecoinvent_cutoff_3.9_remind_SSP2-Base_2050_2024-07-25 02-01',
 'ecoinvent_cutoff_3.9_remind_SSP2-NDC_2025_2024-07-25 03-03',
 'ecoinvent_cutoff_3.9_remind_SSP2-NDC_2030_2024-07-25 04-19',
 'ecoinvent_cutoff_3.9_remind_SSP2-NDC_2035_2024-07-25 05-25',
 'ecoinvent_cutoff_3.9_remind_SSP2-NDC_2040_2024-07-25 06-35',
 'ecoinvent_cutoff_3.9_remind_SSP2-NDC_2045_2024-07-25 07-45',
 'ecoinvent_cutoff_3.9_remind_SSP2-NDC_2050_2024-07-25 09-25',
 'ecoinvent_cutoff_3.9_remind_SSP2-PkBudg1150_2025_2024-07-25 10-56',
 'ecoinvent_cutoff_3.9_remind_SSP2-PkBudg1150_2030_2024-07-25 12-35',
 'ecoinvent_cutoff_3.9_remind_SSP2-PkBudg1150_2035_2024-07-25 14-04',
 'ecoinvent_cutoff_3.9_remind_SSP2-PkBudg1150_2040_2024-07-25 15-37',
 'ecoinvent_cutoff_3.9_remind_SSP2-PkBudg1150_2045_2024-07-25 17-20',
 'ecoinvent_cutoff_3.9_remind_SSP2-PkBudg1150_2050_2024-07-25 18-57',
 'ecoinvent_cutoff_3.9_remind_SSP2-PkBudg500_2025_2024-07-25 20-26',
 'ecoinvent_cutoff_3.9_remind_SSP2-PkBudg500_2030_2024-07-25 21-32',
 'ecoinvent_cutoff_3.9_remind_SSP2-PkBudg500_2035_2024-07-25 23-02',
 'ecoinvent_cutoff_3.9_remind_SSP2-PkBudg500_2040_2024-07-26 00-35',
 'ecoinvent_cutoff_3.9_remind_SSP2-PkBudg500_2045_2024-07-26 02-07',
 'ecoinvent_cutoff_3.9_remind_SSP2-PkBudg500_2050_2024-07-26 03-45']

Generate TIAM-ecoinvent pLCIs¶

The loop below generates scenarios sequentially, one at a time. This approach is necessary because processing multiple scenarios with multiple transformations simultaneously can lead to system instability or crashes.

In [ ]:
fp = "/Users/js3700/WP2-TIAM-premise/premise"  # Internal filepath that contains TIAM-UCL scenarios
pathways = ["SSP2-RCP60", "SSP2-RCP45", "SSP2-RCP26", "SSP2-RCP19"]
years = [2025, 2030, 2035, 2040, 2045, 2050]

total_start_time = time.time()

for pathway in pathways:
    for year in years:
        
        loop_start_time = time.time()
        
        scenarios = [{"model": "tiam-ucl", "pathway": pathway, "year": year, "filepath": fp}]
        ndb = NewDatabase(scenarios=scenarios, source_db='ecoinvent 3.9.1', source_version='3.9.1', use_absolute_efficiency=True)
        ndb.update(['heat', 'electricity', 'fuels', 'cement', 'steel', 'dac', 'biomass'])
        ndb.write_db_to_brightway()

        loop_end_time = time.time()
        loop_elapsed_time = (loop_end_time - loop_start_time) / 60
        print(f"Processed scenario: {scenarios} in {loop_elapsed_time:.2f} minutes")

total_end_time = time.time()
total_elapsed_time = (total_end_time - total_start_time) / 60
print(f"Total processing time: {total_elapsed_time:.2f} minutes")

Generate IMAGE-ecoinvent pLCIs¶

In [3]:
pathways = ["SSP2-RCP26"]
years = [2030, 2035, 2040, 2045, 2050]

for pathway in pathways:
    for year in years:
        scenarios = [{"model": "image", "pathway": pathway, "year": year}]
        ndb = NewDatabase(scenarios=scenarios, source_db='ecoinvent 3.9.1', source_version='3.9.1', use_absolute_efficiency=True, key='tUePmX_S5B8ieZkkM7WUU2CnO8SmShwmAeWK9x2rTFo=')
        ndb.update(['heat', 'electricity', 'fuels', 'cement', 'steel', 'dac', 'biomass'])
        ndb.write_db_to_brightway()
premise v.(2, 1, 0, 'dev6')
+------------------------------------------------------------------+
| Warning                                                          |
+------------------------------------------------------------------+
| Because some of the scenarios can yield LCI databases            |
| containing net negative emission technologies (NET),             |
| it is advised to account for biogenic CO2 flows when calculating |
| Global Warming potential indicators.                             |
| `premise_gwp` provides characterization factors for such flows.  |
| It also provides factors for hydrogen emissions to air.          |
|                                                                  |
| Within your bw2 project:                                         |
| from premise_gwp import add_premise_gwp                          |
| add_premise_gwp()                                                |
+------------------------------------------------------------------+
+--------------------------------+----------------------------------+
| Utils functions                | Description                      |
+--------------------------------+----------------------------------+
| clear_cache()                  | Clears the cache folder. Useful  |
|                                | when updating `premise`or        |
|                                | encountering issues with         |
|                                | inventories.                     |
+--------------------------------+----------------------------------+
| get_regions_definition(model)  | Retrieves the list of countries  |
|                                | for each region of the model.    |
+--------------------------------+----------------------------------+
| ndb.NewDatabase(...)           | Generates a summary of the most  |
| ndb.generate_scenario_report() | important scenarios' variables.  |
+--------------------------------+----------------------------------+
Keep uncertainty data?
NewDatabase(..., keep_uncertainty_data=True)

Disable multiprocessing?
NewDatabase(..., use_multiprocessing=False)

Hide these messages?
NewDatabase(..., quiet=True)
- Extracting source database
- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [05:18<00:00, 319.00s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:02:07
Title: Writing activities to SQLite3 database:
  Started: 07/24/2024 10:18:35
  Finished: 07/24/2024 10:20:42
  Total time elapsed: 00:02:07
  CPU %: 65.60
  Memory %: 18.57
Created database: ecoinvent_cutoff_3.9_image_SSP2-RCP26_2030_2024-07-24 10-05
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA.
premise v.(2, 1, 0, 'dev6')
+------------------------------------------------------------------+
| Warning                                                          |
+------------------------------------------------------------------+
| Because some of the scenarios can yield LCI databases            |
| containing net negative emission technologies (NET),             |
| it is advised to account for biogenic CO2 flows when calculating |
| Global Warming potential indicators.                             |
| `premise_gwp` provides characterization factors for such flows.  |
| It also provides factors for hydrogen emissions to air.          |
|                                                                  |
| Within your bw2 project:                                         |
| from premise_gwp import add_premise_gwp                          |
| add_premise_gwp()                                                |
+------------------------------------------------------------------+
+--------------------------------+----------------------------------+
| Utils functions                | Description                      |
+--------------------------------+----------------------------------+
| clear_cache()                  | Clears the cache folder. Useful  |
|                                | when updating `premise`or        |
|                                | encountering issues with         |
|                                | inventories.                     |
+--------------------------------+----------------------------------+
| get_regions_definition(model)  | Retrieves the list of countries  |
|                                | for each region of the model.    |
+--------------------------------+----------------------------------+
| ndb.NewDatabase(...)           | Generates a summary of the most  |
| ndb.generate_scenario_report() | important scenarios' variables.  |
+--------------------------------+----------------------------------+
Keep uncertainty data?
NewDatabase(..., keep_uncertainty_data=True)

Disable multiprocessing?
NewDatabase(..., use_multiprocessing=False)

Hide these messages?
NewDatabase(..., quiet=True)
- Extracting source database
- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [03:45<00:00, 225.78s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:02:23
Title: Writing activities to SQLite3 database:
  Started: 07/24/2024 11:03:45
  Finished: 07/24/2024 11:06:09
  Total time elapsed: 00:02:23
  CPU %: 68.50
  Memory %: 23.34
Created database: ecoinvent_cutoff_3.9_image_SSP2-RCP26_2035_2024-07-24 10-51
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA.
premise v.(2, 1, 0, 'dev6')
+------------------------------------------------------------------+
| Warning                                                          |
+------------------------------------------------------------------+
| Because some of the scenarios can yield LCI databases            |
| containing net negative emission technologies (NET),             |
| it is advised to account for biogenic CO2 flows when calculating |
| Global Warming potential indicators.                             |
| `premise_gwp` provides characterization factors for such flows.  |
| It also provides factors for hydrogen emissions to air.          |
|                                                                  |
| Within your bw2 project:                                         |
| from premise_gwp import add_premise_gwp                          |
| add_premise_gwp()                                                |
+------------------------------------------------------------------+
+--------------------------------+----------------------------------+
| Utils functions                | Description                      |
+--------------------------------+----------------------------------+
| clear_cache()                  | Clears the cache folder. Useful  |
|                                | when updating `premise`or        |
|                                | encountering issues with         |
|                                | inventories.                     |
+--------------------------------+----------------------------------+
| get_regions_definition(model)  | Retrieves the list of countries  |
|                                | for each region of the model.    |
+--------------------------------+----------------------------------+
| ndb.NewDatabase(...)           | Generates a summary of the most  |
| ndb.generate_scenario_report() | important scenarios' variables.  |
+--------------------------------+----------------------------------+
Keep uncertainty data?
NewDatabase(..., keep_uncertainty_data=True)

Disable multiprocessing?
NewDatabase(..., use_multiprocessing=False)

Hide these messages?
NewDatabase(..., quiet=True)
- Extracting source database
- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [05:28<00:00, 328.58s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:03:24
Title: Writing activities to SQLite3 database:
  Started: 07/24/2024 12:04:27
  Finished: 07/24/2024 12:07:52
  Total time elapsed: 00:03:24
  CPU %: 57.10
  Memory %: 27.48
Created database: ecoinvent_cutoff_3.9_image_SSP2-RCP26_2040_2024-07-24 11-46
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA.
premise v.(2, 1, 0, 'dev6')
+------------------------------------------------------------------+
| Warning                                                          |
+------------------------------------------------------------------+
| Because some of the scenarios can yield LCI databases            |
| containing net negative emission technologies (NET),             |
| it is advised to account for biogenic CO2 flows when calculating |
| Global Warming potential indicators.                             |
| `premise_gwp` provides characterization factors for such flows.  |
| It also provides factors for hydrogen emissions to air.          |
|                                                                  |
| Within your bw2 project:                                         |
| from premise_gwp import add_premise_gwp                          |
| add_premise_gwp()                                                |
+------------------------------------------------------------------+
+--------------------------------+----------------------------------+
| Utils functions                | Description                      |
+--------------------------------+----------------------------------+
| clear_cache()                  | Clears the cache folder. Useful  |
|                                | when updating `premise`or        |
|                                | encountering issues with         |
|                                | inventories.                     |
+--------------------------------+----------------------------------+
| get_regions_definition(model)  | Retrieves the list of countries  |
|                                | for each region of the model.    |
+--------------------------------+----------------------------------+
| ndb.NewDatabase(...)           | Generates a summary of the most  |
| ndb.generate_scenario_report() | important scenarios' variables.  |
+--------------------------------+----------------------------------+
Keep uncertainty data?
NewDatabase(..., keep_uncertainty_data=True)

Disable multiprocessing?
NewDatabase(..., use_multiprocessing=False)

Hide these messages?
NewDatabase(..., quiet=True)
- Extracting source database
- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [03:24<00:00, 204.77s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:28
Title: Writing activities to SQLite3 database:
  Started: 07/24/2024 12:52:31
  Finished: 07/24/2024 12:54:00
  Total time elapsed: 00:01:28
  CPU %: 82.70
  Memory %: 9.47
Created database: ecoinvent_cutoff_3.9_image_SSP2-RCP26_2045_2024-07-24 12-39
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA.
premise v.(2, 1, 0, 'dev6')
+------------------------------------------------------------------+
| Warning                                                          |
+------------------------------------------------------------------+
| Because some of the scenarios can yield LCI databases            |
| containing net negative emission technologies (NET),             |
| it is advised to account for biogenic CO2 flows when calculating |
| Global Warming potential indicators.                             |
| `premise_gwp` provides characterization factors for such flows.  |
| It also provides factors for hydrogen emissions to air.          |
|                                                                  |
| Within your bw2 project:                                         |
| from premise_gwp import add_premise_gwp                          |
| add_premise_gwp()                                                |
+------------------------------------------------------------------+
+--------------------------------+----------------------------------+
| Utils functions                | Description                      |
+--------------------------------+----------------------------------+
| clear_cache()                  | Clears the cache folder. Useful  |
|                                | when updating `premise`or        |
|                                | encountering issues with         |
|                                | inventories.                     |
+--------------------------------+----------------------------------+
| get_regions_definition(model)  | Retrieves the list of countries  |
|                                | for each region of the model.    |
+--------------------------------+----------------------------------+
| ndb.NewDatabase(...)           | Generates a summary of the most  |
| ndb.generate_scenario_report() | important scenarios' variables.  |
+--------------------------------+----------------------------------+
Keep uncertainty data?
NewDatabase(..., keep_uncertainty_data=True)

Disable multiprocessing?
NewDatabase(..., use_multiprocessing=False)

Hide these messages?
NewDatabase(..., quiet=True)
- Extracting source database
- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [03:27<00:00, 207.51s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:02
Title: Writing activities to SQLite3 database:
  Started: 07/24/2024 13:41:00
  Finished: 07/24/2024 13:42:03
  Total time elapsed: 00:01:02
  CPU %: 88.80
  Memory %: 9.54
Created database: ecoinvent_cutoff_3.9_image_SSP2-RCP26_2050_2024-07-24 13-28
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA.
In [4]:
pathways = ["SSP2-RCP19"]
years = [2025, 2030, 2035, 2040, 2045, 2050]
total_start_time = time.time()

for pathway in pathways:
    for year in years:

        loop_start_time = time.time()
        
        scenarios = [{"model": "image", "pathway": pathway, "year": year}]
        ndb = NewDatabase(scenarios=scenarios, source_db='ecoinvent 3.9.1', source_version='3.9.1', use_absolute_efficiency=True, key='tUePmX_S5B8ieZkkM7WUU2CnO8SmShwmAeWK9x2rTFo=')
        ndb.update(['heat', 'electricity', 'fuels', 'cement', 'steel', 'dac', 'biomass'])
        ndb.write_db_to_brightway()
        
        loop_end_time = time.time()
        loop_elapsed_time = (loop_end_time - loop_start_time) / 60
        print(f"Processed scenario: {scenarios} in {loop_elapsed_time:.2f} minutes")

total_end_time = time.time()
total_elapsed_time = (total_end_time - total_start_time) / 60
print(f"Total processing time: {total_elapsed_time:.2f} minutes")
premise v.(2, 1, 0, 'dev6')
+------------------------------------------------------------------+
| Warning                                                          |
+------------------------------------------------------------------+
| Because some of the scenarios can yield LCI databases            |
| containing net negative emission technologies (NET),             |
| it is advised to account for biogenic CO2 flows when calculating |
| Global Warming potential indicators.                             |
| `premise_gwp` provides characterization factors for such flows.  |
| It also provides factors for hydrogen emissions to air.          |
|                                                                  |
| Within your bw2 project:                                         |
| from premise_gwp import add_premise_gwp                          |
| add_premise_gwp()                                                |
+------------------------------------------------------------------+
+--------------------------------+----------------------------------+
| Utils functions                | Description                      |
+--------------------------------+----------------------------------+
| clear_cache()                  | Clears the cache folder. Useful  |
|                                | when updating `premise`or        |
|                                | encountering issues with         |
|                                | inventories.                     |
+--------------------------------+----------------------------------+
| get_regions_definition(model)  | Retrieves the list of countries  |
|                                | for each region of the model.    |
+--------------------------------+----------------------------------+
| ndb.NewDatabase(...)           | Generates a summary of the most  |
| ndb.generate_scenario_report() | important scenarios' variables.  |
+--------------------------------+----------------------------------+
Keep uncertainty data?
NewDatabase(..., keep_uncertainty_data=True)

Disable multiprocessing?
NewDatabase(..., use_multiprocessing=False)

Hide these messages?
NewDatabase(..., quiet=True)
- Extracting source database
- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [05:50<00:00, 350.54s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:30
Title: Writing activities to SQLite3 database:
  Started: 07/24/2024 14:48:45
  Finished: 07/24/2024 14:50:16
  Total time elapsed: 00:01:30
  CPU %: 81.90
  Memory %: 8.74
Created database: ecoinvent_cutoff_3.9_image_SSP2-RCP19_2025_2024-07-24 14-30
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [07:33<00:00, 453.51s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:07:31
Title: Writing activities to SQLite3 database:
  Started: 07/24/2024 15:53:38
  Finished: 07/24/2024 16:01:09
  Total time elapsed: 00:07:31
  CPU %: 42.50
  Memory %: 33.88
Created database: ecoinvent_cutoff_3.9_image_SSP2-RCP19_2030_2024-07-24 15-35
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [05:57<00:00, 357.55s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:13
Title: Writing activities to SQLite3 database:
  Started: 07/24/2024 17:07:36
  Finished: 07/24/2024 17:08:49
  Total time elapsed: 00:01:13
  CPU %: 81.20
  Memory %: 9.25
Created database: ecoinvent_cutoff_3.9_image_SSP2-RCP19_2035_2024-07-24 16-51
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [05:03<00:00, 303.86s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:59
Title: Writing activities to SQLite3 database:
  Started: 07/24/2024 18:01:57
  Finished: 07/24/2024 18:02:56
  Total time elapsed: 00:00:59
  CPU %: 90.10
  Memory %: 11.21
Created database: ecoinvent_cutoff_3.9_image_SSP2-RCP19_2040_2024-07-24 17-47
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [04:38<00:00, 278.28s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:06:25
Title: Writing activities to SQLite3 database:
  Started: 07/24/2024 18:54:10
  Finished: 07/24/2024 19:00:36
  Total time elapsed: 00:06:25
  CPU %: 38.10
  Memory %: 57.11
Created database: ecoinvent_cutoff_3.9_image_SSP2-RCP19_2045_2024-07-24 18-40
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [03:16<00:00, 196.57s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:58
Title: Writing activities to SQLite3 database:
  Started: 07/24/2024 19:58:49
  Finished: 07/24/2024 19:59:48
  Total time elapsed: 00:00:58
  CPU %: 87.70
  Memory %: 10.52
Created database: ecoinvent_cutoff_3.9_image_SSP2-RCP19_2050_2024-07-24 19-40
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

Generate REMIND-ecoinvent pLCIs¶

In [5]:
pathways = ["SSP2-Base", "SSP2-NDC", "SSP2-PkBudg1150", "SSP2-PkBudg500"]  # Needs to be a list
years = [2025, 2030, 2035, 2040, 2045, 2050]  # Needs to be a list

total_start_time = time.time()

for pathway in pathways:
    for year in years:

        loop_start_time = time.time()

        scenarios = [{"model": "remind", "pathway": pathway, "year": year}]
        ndb = NewDatabase(scenarios=scenarios, source_db='ecoinvent 3.9.1', source_version='3.9.1', use_absolute_efficiency=True, key='tUePmX_S5B8ieZkkM7WUU2CnO8SmShwmAeWK9x2rTFo=')
        ndb.update(['heat', 'electricity', 'fuels', 'cement', 'steel', 'dac', 'biomass'])
        ndb.write_db_to_brightway()

        loop_end_time = time.time()
        loop_elapsed_time = (loop_end_time - loop_start_time) / 60
        print(f"Processed scenario: {scenarios} in {loop_elapsed_time:.2f} minutes")

total_end_time = time.time()
total_elapsed_time = (total_end_time - total_start_time) / 60
print(f"Total processing time: {total_elapsed_time:.2f} minutes")
premise v.(2, 1, 0, 'dev6')
+------------------------------------------------------------------+
| Warning                                                          |
+------------------------------------------------------------------+
| Because some of the scenarios can yield LCI databases            |
| containing net negative emission technologies (NET),             |
| it is advised to account for biogenic CO2 flows when calculating |
| Global Warming potential indicators.                             |
| `premise_gwp` provides characterization factors for such flows.  |
| It also provides factors for hydrogen emissions to air.          |
|                                                                  |
| Within your bw2 project:                                         |
| from premise_gwp import add_premise_gwp                          |
| add_premise_gwp()                                                |
+------------------------------------------------------------------+
+--------------------------------+----------------------------------+
| Utils functions                | Description                      |
+--------------------------------+----------------------------------+
| clear_cache()                  | Clears the cache folder. Useful  |
|                                | when updating `premise`or        |
|                                | encountering issues with         |
|                                | inventories.                     |
+--------------------------------+----------------------------------+
| get_regions_definition(model)  | Retrieves the list of countries  |
|                                | for each region of the model.    |
+--------------------------------+----------------------------------+
| ndb.NewDatabase(...)           | Generates a summary of the most  |
| ndb.generate_scenario_report() | important scenarios' variables.  |
+--------------------------------+----------------------------------+
Keep uncertainty data?
NewDatabase(..., keep_uncertainty_data=True)

Disable multiprocessing?
NewDatabase(..., use_multiprocessing=False)

Hide these messages?
NewDatabase(..., quiet=True)
- Extracting source database
- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [01:58<00:00, 118.60s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:55
Title: Writing activities to SQLite3 database:
  Started: 07/24/2024 20:57:17
  Finished: 07/24/2024 20:58:12
  Total time elapsed: 00:00:55
  CPU %: 84.40
  Memory %: 10.42
Created database: ecoinvent_cutoff_3.9_remind_SSP2-Base_2025_2024-07-24 20-38
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [01:58<00:00, 118.71s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:04
Title: Writing activities to SQLite3 database:
  Started: 07/24/2024 21:59:43
  Finished: 07/24/2024 22:00:47
  Total time elapsed: 00:01:04
  CPU %: 87.00
  Memory %: 9.69
Created database: ecoinvent_cutoff_3.9_remind_SSP2-Base_2030_2024-07-24 21-38
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [02:00<00:00, 120.54s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:56
Title: Writing activities to SQLite3 database:
  Started: 07/24/2024 23:05:23
  Finished: 07/24/2024 23:06:19
  Total time elapsed: 00:00:56
  CPU %: 82.10
  Memory %: 10.04
Created database: ecoinvent_cutoff_3.9_remind_SSP2-Base_2035_2024-07-24 22-42
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [10:31<00:00, 631.76s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:55
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 00:04:18
  Finished: 07/25/2024 00:05:13
  Total time elapsed: 00:00:55
  CPU %: 84.20
  Memory %: 9.63
Created database: ecoinvent_cutoff_3.9_remind_SSP2-Base_2040_2024-07-24 23-49
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [02:09<00:00, 129.53s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:58
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 01:15:09
  Finished: 07/25/2024 01:16:07
  Total time elapsed: 00:00:58
  CPU %: 80.00
  Memory %: 10.04
Created database: ecoinvent_cutoff_3.9_remind_SSP2-Base_2045_2024-07-25 00-50
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [02:00<00:00, 120.67s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:53
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 02:16:38
  Finished: 07/25/2024 02:17:31
  Total time elapsed: 00:00:53
  CPU %: 87.40
  Memory %: 9.79
Created database: ecoinvent_cutoff_3.9_remind_SSP2-Base_2050_2024-07-25 02-01
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [01:59<00:00, 119.43s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:00
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 03:29:04
  Finished: 07/25/2024 03:30:04
  Total time elapsed: 00:01:00
  CPU %: 80.60
  Memory %: 10.10
Created database: ecoinvent_cutoff_3.9_remind_SSP2-NDC_2025_2024-07-25 03-03
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [13:21<00:00, 801.34s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:57
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 04:35:40
  Finished: 07/25/2024 04:36:38
  Total time elapsed: 00:00:57
  CPU %: 87.90
  Memory %: 9.91
Created database: ecoinvent_cutoff_3.9_remind_SSP2-NDC_2030_2024-07-25 04-19
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [02:02<00:00, 122.95s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:53
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 05:41:48
  Finished: 07/25/2024 05:42:42
  Total time elapsed: 00:00:53
  CPU %: 87.20
  Memory %: 10.52
Created database: ecoinvent_cutoff_3.9_remind_SSP2-NDC_2035_2024-07-25 05-25
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [01:59<00:00, 119.12s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:55
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 07:04:50
  Finished: 07/25/2024 07:05:45
  Total time elapsed: 00:00:55
  CPU %: 84.00
  Memory %: 10.20
Created database: ecoinvent_cutoff_3.9_remind_SSP2-NDC_2040_2024-07-25 06-35
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [02:08<00:00, 128.85s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:14
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 08:20:04
  Finished: 07/25/2024 08:21:19
  Total time elapsed: 00:01:14
  CPU %: 75.90
  Memory %: 10.46
Created database: ecoinvent_cutoff_3.9_remind_SSP2-NDC_2045_2024-07-25 07-45
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|███████████| 1/1 [23:01<00:00, 1381.18s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:20
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 09:51:02
  Finished: 07/25/2024 09:52:22
  Total time elapsed: 00:01:20
  CPU %: 80.40
  Memory %: 9.24
Created database: ecoinvent_cutoff_3.9_remind_SSP2-NDC_2050_2024-07-25 09-25
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|███████████| 1/1 [20:41<00:00, 1241.89s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:25
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 11:19:50
  Finished: 07/25/2024 11:21:16
  Total time elapsed: 00:01:25
  CPU %: 81.20
  Memory %: 10.20
Created database: ecoinvent_cutoff_3.9_remind_SSP2-PkBudg1150_2025_2024-07-25 10-56
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [03:51<00:00, 231.46s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:08
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 12:59:54
  Finished: 07/25/2024 13:01:03
  Total time elapsed: 00:01:08
  CPU %: 75.80
  Memory %: 10.49
Created database: ecoinvent_cutoff_3.9_remind_SSP2-PkBudg1150_2030_2024-07-25 12-35
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [02:11<00:00, 131.46s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:02
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 14:23:42
  Finished: 07/25/2024 14:24:45
  Total time elapsed: 00:01:02
  CPU %: 79.50
  Memory %: 9.97
Created database: ecoinvent_cutoff_3.9_remind_SSP2-PkBudg1150_2035_2024-07-25 14-04
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [02:49<00:00, 169.54s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:29
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 16:00:06
  Finished: 07/25/2024 16:01:35
  Total time elapsed: 00:01:29
  CPU %: 84.40
  Memory %: 10.63
Created database: ecoinvent_cutoff_3.9_remind_SSP2-PkBudg1150_2040_2024-07-25 15-37
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|███████████| 1/1 [25:59<00:00, 1559.88s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:27
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 17:42:32
  Finished: 07/25/2024 17:43:59
  Total time elapsed: 00:01:27
  CPU %: 77.60
  Memory %: 10.58
Created database: ecoinvent_cutoff_3.9_remind_SSP2-PkBudg1150_2045_2024-07-25 17-20
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|███████████| 1/1 [22:39<00:00, 1359.36s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:58
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 19:17:18
  Finished: 07/25/2024 19:18:16
  Total time elapsed: 00:00:58
  CPU %: 80.90
  Memory %: 10.66
Created database: ecoinvent_cutoff_3.9_remind_SSP2-PkBudg1150_2050_2024-07-25 18-57
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|███████████| 1/1 [23:04<00:00, 1384.57s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:58
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 20:46:01
  Finished: 07/25/2024 20:46:59
  Total time elapsed: 00:00:58
  CPU %: 80.00
  Memory %: 11.46
Created database: ecoinvent_cutoff_3.9_remind_SSP2-PkBudg500_2025_2024-07-25 20-26
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [02:04<00:00, 124.37s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:01
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 22:15:21
  Finished: 07/25/2024 22:16:23
  Total time elapsed: 00:01:01
  CPU %: 75.90
  Memory %: 11.28
Created database: ecoinvent_cutoff_3.9_remind_SSP2-PkBudg500_2030_2024-07-25 21-32
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [02:39<00:00, 159.60s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:24:14
Title: Writing activities to SQLite3 database:
  Started: 07/25/2024 23:23:25
  Finished: 07/25/2024 23:47:39
  Total time elapsed: 00:24:14
  CPU %: 26.50
  Memory %: 51.61
Created database: ecoinvent_cutoff_3.9_remind_SSP2-PkBudg500_2035_2024-07-25 23-02
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [02:08<00:00, 128.84s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:06
Title: Writing activities to SQLite3 database:
  Started: 07/26/2024 00:56:27
  Finished: 07/26/2024 00:57:34
  Total time elapsed: 00:01:06
  CPU %: 70.60
  Memory %: 11.17
Created database: ecoinvent_cutoff_3.9_remind_SSP2-PkBudg500_2040_2024-07-26 00-35
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|████████████| 1/1 [02:04<00:00, 124.48s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:09
Title: Writing activities to SQLite3 database:
  Started: 07/26/2024 02:28:49
  Finished: 07/26/2024 02:29:59
  Total time elapsed: 00:01:09
  CPU %: 68.90
  Memory %: 11.24
Created database: ecoinvent_cutoff_3.9_remind_SSP2-PkBudg500_2045_2024-07-26 02-07
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)

- Extracting inventories
- Fetching IAM data
Done!
Processing scenarios: 100%|███████████| 1/1 [29:23<00:00, 1763.27s/it]
Done!

Write new database(s) to Brightway.
Running all checks...
Minor anomalies found: check the change report.
Writing activities to SQLite3 database:
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:10
Title: Writing activities to SQLite3 database:
  Started: 07/26/2024 04:08:09
  Finished: 07/26/2024 04:09:20
  Total time elapsed: 00:01:10
  CPU %: 68.80
  Memory %: 11.22
Created database: ecoinvent_cutoff_3.9_remind_SSP2-PkBudg500_2050_2024-07-26 03-45
Generate scenario report.
Report saved under C:\Users\js3700\WP3-carculator-pLCA\export\scenario_report.
Generate change report.
IOPub data rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_data_rate_limit`.

Current values:
ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
ServerApp.rate_limit_window=3.0 (secs)