From 8cba74e6c8ea226f473efc88b1cd45c0ac6dc851 Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Wed, 7 Feb 2024 21:21:44 +0100 Subject: [PATCH] Update docs --- dev/test_premise.ipynb | 837 +++++++----------- docs/consequential.rst | 2 +- docs/extract.rst | 2 +- docs/faq.rst | 2 +- docs/transform.rst | 26 +- docs/user_scenarios.rst | 16 +- .../Untitled-checkpoint.ipynb | 6 - ...es user-defined scenarios-checkpoint.ipynb | 319 +++++-- .../examples-checkpoint.ipynb | 96 +- examples/Untitled.ipynb | 317 ------- .../examples user-defined scenarios.ipynb | 324 +------ examples/examples.ipynb | 96 +- 12 files changed, 670 insertions(+), 1373 deletions(-) delete mode 100644 examples/.ipynb_checkpoints/Untitled-checkpoint.ipynb delete mode 100644 examples/Untitled.ipynb diff --git a/dev/test_premise.ipynb b/dev/test_premise.ipynb index 4769fcd6..277af4dd 100644 --- a/dev/test_premise.ipynb +++ b/dev/test_premise.ipynb @@ -34,7 +34,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 3, "id": "1e5fa46b-8823-4390-bea6-3f8e204ac9c3", "metadata": {}, "outputs": [], @@ -64,7 +64,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "186769fe-f212-4a6e-b2b5-93dc7bf0fd73", "metadata": { "tags": [] @@ -74,7 +74,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "premise v.(1, 8, 2, 'dev7')\n", + "premise v.(2, 0, 0, 'dev0')\n", "+------------------------------------------------------------------+\n", "| Warning |\n", "+------------------------------------------------------------------+\n", @@ -110,547 +110,354 @@ "NewDatabase(..., use_multiprocessing=False)\n", "\n", "Hide these messages?\n", - "NewDatabase(..., quiet=True)\n", - "\n", - "//////////////////// EXTRACTING SOURCE DATABASE ////////////////////\n", - "Done!\n", - "\n", - "////////////////// IMPORTING DEFAULT INVENTORIES ///////////////////\n", + "NewDatabase(..., quiet=True)\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "Extracting source database: 0%| | 0/3 [00:00 59\u001b[0m \u001b[43mndb\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mupdate_all\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 60\u001b[0m \u001b[38;5;66;03m#ndb.update_electricity()\u001b[39;00m\n\u001b[1;32m 61\u001b[0m \n\u001b[1;32m 62\u001b[0m \u001b[38;5;66;03m#ndb.update_trucks()\u001b[39;00m\n\u001b[1;32m 66\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m export \u001b[38;5;241m==\u001b[39m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mbrightway\u001b[39m\u001b[38;5;124m\"\u001b[39m:\n", - "File \u001b[0;32m~/GitHub/premise/premise/new_database.py:1361\u001b[0m, in \u001b[0;36mNewDatabase.update_all\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 1349\u001b[0m \u001b[38;5;28;01mwith\u001b[39;00m ProcessPool(processes\u001b[38;5;241m=\u001b[39mmultiprocessing\u001b[38;5;241m.\u001b[39mcpu_count()) \u001b[38;5;28;01mas\u001b[39;00m pool:\n\u001b[1;32m 1350\u001b[0m args \u001b[38;5;241m=\u001b[39m [\n\u001b[1;32m 1351\u001b[0m (\n\u001b[1;32m 1352\u001b[0m scenario,\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 1359\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m scenario \u001b[38;5;129;01min\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mscenarios\n\u001b[1;32m 1360\u001b[0m ]\n\u001b[0;32m-> 1361\u001b[0m results \u001b[38;5;241m=\u001b[39m \u001b[43mpool\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mstarmap\u001b[49m\u001b[43m(\u001b[49m\u001b[43m_update_all\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43margs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 1363\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m s, scenario \u001b[38;5;129;01min\u001b[39;00m \u001b[38;5;28menumerate\u001b[39m(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mscenarios):\n\u001b[1;32m 1364\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mscenarios[s] \u001b[38;5;241m=\u001b[39m results[s]\n", - "File \u001b[0;32m/opt/homebrew/Caskroom/miniforge/base/envs/premise_env/lib/python3.10/multiprocessing/pool.py:375\u001b[0m, in \u001b[0;36mPool.starmap\u001b[0;34m(self, func, iterable, chunksize)\u001b[0m\n\u001b[1;32m 369\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mstarmap\u001b[39m(\u001b[38;5;28mself\u001b[39m, func, iterable, chunksize\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m):\n\u001b[1;32m 370\u001b[0m \u001b[38;5;250m \u001b[39m\u001b[38;5;124;03m'''\u001b[39;00m\n\u001b[1;32m 371\u001b[0m \u001b[38;5;124;03m Like `map()` method but the elements of the `iterable` are expected to\u001b[39;00m\n\u001b[1;32m 372\u001b[0m \u001b[38;5;124;03m be iterables as well and will be unpacked as arguments. Hence\u001b[39;00m\n\u001b[1;32m 373\u001b[0m \u001b[38;5;124;03m `func` and (a, b) becomes func(a, b).\u001b[39;00m\n\u001b[1;32m 374\u001b[0m \u001b[38;5;124;03m '''\u001b[39;00m\n\u001b[0;32m--> 375\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_map_async\u001b[49m\u001b[43m(\u001b[49m\u001b[43mfunc\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43miterable\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mstarmapstar\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mchunksize\u001b[49m\u001b[43m)\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n", - "File \u001b[0;32m/opt/homebrew/Caskroom/miniforge/base/envs/premise_env/lib/python3.10/multiprocessing/pool.py:768\u001b[0m, in \u001b[0;36mApplyResult.get\u001b[0;34m(self, timeout)\u001b[0m\n\u001b[1;32m 767\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mget\u001b[39m(\u001b[38;5;28mself\u001b[39m, timeout\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m):\n\u001b[0;32m--> 768\u001b[0m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mwait\u001b[49m\u001b[43m(\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 769\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mready():\n\u001b[1;32m 770\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mTimeoutError\u001b[39;00m\n", - "File \u001b[0;32m/opt/homebrew/Caskroom/miniforge/base/envs/premise_env/lib/python3.10/multiprocessing/pool.py:765\u001b[0m, in \u001b[0;36mApplyResult.wait\u001b[0;34m(self, timeout)\u001b[0m\n\u001b[1;32m 764\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mwait\u001b[39m(\u001b[38;5;28mself\u001b[39m, timeout\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m):\n\u001b[0;32m--> 765\u001b[0m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_event\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mwait\u001b[49m\u001b[43m(\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[43m)\u001b[49m\n", - "File \u001b[0;32m/opt/homebrew/Caskroom/miniforge/base/envs/premise_env/lib/python3.10/threading.py:607\u001b[0m, in \u001b[0;36mEvent.wait\u001b[0;34m(self, timeout)\u001b[0m\n\u001b[1;32m 605\u001b[0m signaled \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_flag\n\u001b[1;32m 606\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m signaled:\n\u001b[0;32m--> 607\u001b[0m signaled \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_cond\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mwait\u001b[49m\u001b[43m(\u001b[49m\u001b[43mtimeout\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 608\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m signaled\n", - "File \u001b[0;32m/opt/homebrew/Caskroom/miniforge/base/envs/premise_env/lib/python3.10/threading.py:320\u001b[0m, in \u001b[0;36mCondition.wait\u001b[0;34m(self, timeout)\u001b[0m\n\u001b[1;32m 318\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m: \u001b[38;5;66;03m# restore state no matter what (e.g., KeyboardInterrupt)\u001b[39;00m\n\u001b[1;32m 319\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m timeout \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[0;32m--> 320\u001b[0m \u001b[43mwaiter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43macquire\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 321\u001b[0m gotit \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mTrue\u001b[39;00m\n\u001b[1;32m 322\u001b[0m \u001b[38;5;28;01melse\u001b[39;00m:\n", - "\u001b[0;31mKeyboardInterrupt\u001b[0m: " + "name": "stdout", + "output_type": "stream", + "text": [ + "Write new database(s) to Brightway.\n", + "Running all checks...\n", + "Anomalies found: check the change report.\n", + "Running all checks...\n", + "Database test1 already exists: it will be overwritten.\n", + "Vacuuming database \n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "Writing activities to SQLite3 database:\n", + "0% [##################### ] 100% | ETA: 00:00:14" ] } ], @@ -669,7 +476,7 @@ " #\"3.6\",\n", " #\"3.7\",\n", " #\"3.7.1\",\n", - " \"3.8\",\n", + " #\"3.8\",\n", " #\"3.9\",\n", " \"3.9.1\"\n", "\n", @@ -710,15 +517,11 @@ " print(\"#############################################################################################################\")\n", " print(ei, source, export)\n", "\n", - " ndb.update_buses()\n", - " ndb.update_cars()\n", - " ndb.update_two_wheelers()\n", - " ndb.update_all()\n", - " #ndb.update_electricity()\n", - " \n", - " #ndb.update_trucks()\n", - " \n", - "\n", + " ndb.update()\n", + " ndb.update([\n", + " \"buses\",\n", + " \"cars\",\n", + " ])\n", "\n", " if export == \"brightway\":\n", " \n", @@ -749,7 +552,9 @@ "id": "ad531d16-2c79-420b-8337-eb46489a04ff", "metadata": {}, "outputs": [], - "source": [] + "source": [ + "p " + ] } ], "metadata": { diff --git a/docs/consequential.rst b/docs/consequential.rst index 43031405..7f1bcdbc 100644 --- a/docs/consequential.rst +++ b/docs/consequential.rst @@ -154,6 +154,6 @@ If not, the following default arguments value are used: system_args=args ) - ndb.update_electricity() + ndb.update("electricity") ndb.write_db_to_brightway() diff --git a/docs/extract.rst b/docs/extract.rst index fbcf7948..8a58d6d1 100644 --- a/docs/extract.rst +++ b/docs/extract.rst @@ -840,7 +840,7 @@ They introduce the following datasets: carbon dioxide, captured at cement production plant, for subsequent reuse RER =============================================================================================================== =========== -Using the transformation function `update_dac()`, *premise* creates various configurations of these processes, +Using the transformation function `update("dac")`, *premise* creates various configurations of these processes, using different sources for heat (industrial steam heat, high-temp heat pump heat and excess heat), which are found under the following names, for each IAM region: diff --git a/docs/faq.rst b/docs/faq.rst index 90674bc8..2252570c 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -153,7 +153,7 @@ In theory, there is consistency between the IAM scenario and pLCA database when 100% of the IAM variables and related projections are integrated into the pLCA database. -This is not the case today, as ``premise`` only integrates a subset of IAM variables, namely those that relate to: +This is not the case today, as ``premise`` only integrates a subset of IAM variables, notably those that relate to: - power production - steel production diff --git a/docs/transform.rst b/docs/transform.rst index 161b10c7..5746d63d 100644 --- a/docs/transform.rst +++ b/docs/transform.rst @@ -85,7 +85,7 @@ Run source_version="3.7.1", key='xxxxxxxxxxxxxxxxxxxxxxxxx' ) - ndb.update_electricity() + ndb.update("electricity") Efficiency adjustment @@ -257,7 +257,7 @@ emissions outputs, are re-scaled by 1/1.03 (=0.97). While non-CO2 emissions (e.g., CO) are reduced because of the reduction in fuel consumption, the emission factor per energy unit remains the same (i.e., gCO/MJ natural gas)). -It can be re-scaled using the `update_emissions` function, which updates emission factors according +It can be re-scaled using the `.update("emissions")` function, which updates emission factors according to GAINS projections. @@ -684,7 +684,7 @@ Run source_version="3.7.1", key='xxxxxxxxxxxxxxxxxxxxxxxxx' ) - ndb.update_cement() + ndb.update("cement") @@ -752,7 +752,7 @@ Run source_version="3.7.1", key='xxxxxxxxxxxxxxxxxxxxxxxxx' ) - ndb.update_steel() + ndb.update("steel")" @@ -925,10 +925,10 @@ Run source_version="3.7.1", key='xxxxxxxxxxxxxxxxxxxxxxxxx' ) - ndb.update_two_wheelers() - ndb.update_cars() - ndb.update_trucks() - ndb.update_buses() + ndb.update("two_wheelers") + ndb.update("cars") + ndb.update("trucks") + ndb.update("buses") *premise* imports inventories for transport activity operated by: @@ -1147,7 +1147,7 @@ Run source_version="3.7.1", key='xxxxxxxxxxxxxxxxxxxxxxxxx' ) - ndb.update_dac() + ndb.update("dac") @@ -1209,7 +1209,7 @@ Run source_version="3.7.1", key='xxxxxxxxxxxxxxxxxxxxxxxxx' ) - ndb.update_fuels() + ndb.update("fuels") @@ -1539,10 +1539,10 @@ Here is a list of the heat and steam production datasets that are regionalized: - heat production, hardwood chips from forest, ... These datasets are relinked to the corresponding regionalized fuel market only -if `.update_fuels()` has been run. +if `.update("fuels")` has been run. Also, heat production datasets that use biomass as fuel input (e.g., softwood and hardwood chips) relink to the dataset `market for biomass, used as fuel` if -`update_biomass()` has been run previously. +`update("biomass")` has been run previously. CO2 emissions update @@ -2025,7 +2025,7 @@ Final Steps GAINS emission factors """""""""""""""""""""" -When using `update_emissions()`, emission factors from the GAINS-EU_ and GAINS-IAM_ models are used to scale +When using `update("emissions")`, emission factors from the GAINS-EU_ and GAINS-IAM_ models are used to scale non-CO2 emissions in various datasets. .. _GAINS-EU: https://gains.iiasa.ac.at/gains/EUN/index.login diff --git a/docs/user_scenarios.rst b/docs/user_scenarios.rst index 3735c4f8..48b830fc 100644 --- a/docs/user_scenarios.rst +++ b/docs/user_scenarios.rst @@ -51,27 +51,29 @@ Example ] -The function **ndb.update_external_scenario()** can be called after that +The function **ndb.update("external")** can be called after that to implement the user-defined scenario in the database. .. code-block:: python - ndb.update_external_scenario() + ndb.update("external") Of course, if you wish your database to also integrate the projections -of the global IAM model, you can run the function **ndb.update_all()**. +of the global IAM model, you can run the function **ndb.update()**. .. code-block:: python - ndb.update_all() + ndb.update() Or if you just want the IAM projections relating to, for example, electricity and steel: .. code-block:: python - ndb.update_electricity() - ndb.update_steel() - ndb.update_external_scenario() + ndb.update([ + "electricity", + "steel", + "external" + ]) Once the integrations are complete, you can export your databases to Brightway2, within the activated project: diff --git a/examples/.ipynb_checkpoints/Untitled-checkpoint.ipynb b/examples/.ipynb_checkpoints/Untitled-checkpoint.ipynb deleted file mode 100644 index 363fcab7..00000000 --- a/examples/.ipynb_checkpoints/Untitled-checkpoint.ipynb +++ /dev/null @@ -1,6 +0,0 @@ -{ - "cells": [], - "metadata": {}, - "nbformat": 4, - "nbformat_minor": 5 -} diff --git a/examples/.ipynb_checkpoints/examples user-defined scenarios-checkpoint.ipynb b/examples/.ipynb_checkpoints/examples user-defined scenarios-checkpoint.ipynb index 89c2bd28..4195e8d7 100644 --- a/examples/.ipynb_checkpoints/examples user-defined scenarios-checkpoint.ipynb +++ b/examples/.ipynb_checkpoints/examples user-defined scenarios-checkpoint.ipynb @@ -43,7 +43,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": 1, "id": "90c8da09-12b1-4c35-bb36-550be70a738e", "metadata": {}, "outputs": [], @@ -53,29 +53,30 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": 2, "id": "bda9c910-140b-4e65-9656-156158968c25", "metadata": {}, "outputs": [], "source": [ "# URL pointing to the raw datapackage.json file of the scenario\n", - "#fp = \"https://raw.githubusercontent.com/premise-community-scenarios/cobalt-perspective-2050/main/datapackage.json\"\n", - "#cobalt = Package(fp)\n", + "fp = \"https://raw.githubusercontent.com/premise-community-scenarios/cobalt-perspective-2050/main/datapackage.json\"\n", + "cobalt = Package(fp)\n", "\n", - "#fp = r\"https://raw.githubusercontent.com/premise-community-scenarios/ammonia-prospective-scenarios/main/datapackage.json\"\n", - "#ammonia = Package(fp)\n", + "fp = r\"https://raw.githubusercontent.com/premise-community-scenarios/ammonia-prospective-scenarios/main/datapackage.json\"\n", + "ammonia = Package(fp)\n", "\n", "#fp = \"https://raw.githubusercontent.com/premise-community-scenarios/energy-perspective-2050-switzerland/main/datapackage.json\"\n", - "#ep2050 = Package(fp)\n", + "fp = \"/Users/romain/Library/CloudStorage/Dropbox/EP2050/energy-perspective-2050-switzerland/datapackage.json\"\n", + "ep2050 = Package(fp)\n", "\n", - "fp= \"https://raw.githubusercontent.com/premise-community-scenarios/scenario-example-bread/main/datapackage.json\"\n", - "#fp = \"/Users/romain/GitHub/scenario-example-bread-/datapackage.json\"\n", + "#fp = \"https://raw.githubusercontent.com/premise-community-scenarios/scenario-example-bread/main/datapackage.json\"\n", + "fp = \"/Users/romain/GitHub/scenario-example-bread-/datapackage.json\"\n", "bread = Package(fp)" ] }, { "cell_type": "code", - "execution_count": 25, + "execution_count": 3, "id": "05168dfa-b9c2-4f73-90fe-fb7523c15bc1", "metadata": {}, "outputs": [ @@ -85,7 +86,7 @@ "['scenario_data', 'inventories', 'config']" ] }, - "execution_count": 25, + "execution_count": 3, "metadata": {}, "output_type": "execute_result" } @@ -104,7 +105,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 4, "id": "b88cc08c-c6c2-4890-9c39-c52f51d5b98e", "metadata": {}, "outputs": [ @@ -133,7 +134,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 5, "id": "a02895f5-adb8-4b7c-a5a1-a49ed936f140", "metadata": {}, "outputs": [ @@ -143,7 +144,7 @@ "['scenario_data', 'inventories', 'config']" ] }, - "execution_count": 13, + "execution_count": 5, "metadata": {}, "output_type": "execute_result" } @@ -162,7 +163,7 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": 6, "id": "c8814dca-0f42-4fb9-9169-025f1860f4b4", "metadata": {}, "outputs": [ @@ -361,7 +362,7 @@ "[5 rows x 21 columns]" ] }, - "execution_count": 26, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -391,19 +392,19 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": 7, "id": "f15e00e7-4086-4312-8090-ad432ea368d6", "metadata": {}, "outputs": [], "source": [ "from premise import *\n", "import bw2data\n", - "bw2data.projects.set_current(\"carculator\")" + "bw2data.projects.set_current(\"ei39\")" ] }, { "cell_type": "code", - "execution_count": 31, + "execution_count": 8, "id": "b0408c8e-ce9e-4d6c-8e4b-a6a0db1ff384", "metadata": {}, "outputs": [ @@ -411,7 +412,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "premise v.(1, 3, 4)\n", + "premise v.(1, 5, 0, 'alpha')\n", "+------------------------------------------------------------------+\n", "| Warning |\n", "+------------------------------------------------------------------+\n", @@ -467,11 +468,14 @@ "\n", "ndb = NewDatabase(\n", " scenarios = scenarios, \n", - " source_db=\"ecoinvent 3.8 cutoff\",\n", - " source_version=\"3.8\",\n", + " source_db=\"ecoinvent 3.9 cutoff\",\n", + " source_version=\"3.9\",\n", " key='tUePmX_S5B8ieZkkM7WUU2CnO8SmShwmAeWK9x2rTFo=',\n", " external_scenarios=[\n", " bread,\n", + " cobalt,\n", + " ammonia,\n", + " ep2050\n", " ]\n", ")\n" ] @@ -486,7 +490,7 @@ }, { "cell_type": "code", - "execution_count": 32, + "execution_count": 9, "id": "51dd0dd9-86bf-42f3-bded-d3da98178b7e", "metadata": {}, "outputs": [ @@ -497,60 +501,233 @@ "\n", "//////////////// IMPORTING USER-DEFINED INVENTORIES ////////////////\n", "Extracted 1 worksheets in 0.00 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "\n", + "//////////////// IMPORTING USER-DEFINED INVENTORIES ////////////////\n", + "Extracted 1 worksheets in 0.00 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "\n", + "//////////////// IMPORTING USER-DEFINED INVENTORIES ////////////////\n", + "Extracted 1 worksheets in 0.00 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "\n", + "//////////////// IMPORTING USER-DEFINED INVENTORIES ////////////////\n", + "Extracted 1 worksheets in 0.00 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "List of unlinked exchanges:\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "| Name | Reference product | Location | Categories | Unit | Type | File |\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "| treatment of wastewater, average, capacity 1E9l/year | None | Europe without Switzerland | None | cubic meter | technosphere | lci-EP2050.csv |\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "List of unlinked exchanges:\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "| Name | Reference product | Location | Categories | Unit | Type | File |\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "| treatment of wastewater, average, capacity 1E9l/year | None | Europe without Switzerland | None | cubic meter | technosphere | lci-EP2050.csv |\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "Create custom markets.\n", + "Create custom markets.\n", + "Create custom markets.\n", + "Create custom markets.\n", + "Cannot find -> transmission network construction, long-distance transmission network, long-distance ['CH', 'UN-EUROPE', 'RER', 'Europe without Austria', 'Europe, without Russia and Turkey', 'RER w/o RU', 'ENTSO-E', 'RER w/o DE+NL+RU', 'RER w/o DE+NL+NO+RU', 'Europe without NORDEL (NCPA)', 'UCTE', 'UCTE without France', 'UCTE without Germany', 'UCTE without Germany and France', 'WEU', 'CH', 'RER', 'Europe without Switzerland', 'RoW', 'GLO', 'AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AUS-AC', 'AUS-ACT', 'AUS-IOT', 'AUS-NSW', 'AUS-NTR', 'AUS-QNS', 'AUS-SAS', 'AUS-TSM', 'AUS-VCT', 'AUS-WAS', 'AW', 'AX', 'AZ', 'Akrotiri', 'Asia without China', 'BA', 'BALTSO', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BR-AC', 'BR-AL', 'BR-AM', 'BR-AP', 'BR-BA', 'BR-CE', 'BR-DF', 'BR-ES', 'BR-GO', 'BR-MA', 'BR-MG', 'BR-MS', 'BR-MT', 'BR-Mid-western grid', 'BR-North-eastern grid', 'BR-Northern grid', 'BR-PA', 'BR-PB', 'BR-PE', 'BR-PI', 'BR-PR', 'BR-RJ', 'BR-RN', 'BR-RO', 'BR-RR', 'BR-RS', 'BR-SC', 'BR-SE', 'BR-SP', 'BR-South-eastern grid', 'BR-Southern grid', 'BR-TO', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'Bajo Nuevo', 'CA', 'CA-AB', 'CA-BC', 'CA-MB', 'CA-NB', 'CA-NF', 'CA-NS', 'CA-NT', 'CA-NU', 'CA-ON', 'CA-PE', 'CA-QC', 'CA-SK', 'CA-YK', 'CD', 'CENTREL', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CN-AH', 'CN-BJ', 'CN-CQ', 'CN-CSG', 'CN-FJ', 'CN-GD', 'CN-GS', 'CN-GX', 'CN-GZ', 'CN-HA', 'CN-HB', 'CN-HE', 'CN-HL', 'CN-HN', 'CN-HU', 'CN-JL', 'CN-JS', 'CN-JX', 'CN-LN', 'CN-NM', 'CN-NX', 'CN-QH', 'CN-SA', 'CN-SC', 'CN-SD', 'CN-SGCC', 'CN-SH', 'CN-SX', 'CN-TJ', 'CN-XJ', 'CN-XZ', 'CN-YN', 'CN-ZJ', 'CO', 'CR', 'CS', 'CU', 'CV', 'CW', 'CY', 'CZ', 'Canada without Alberta', 'Canada without Alberta and Quebec', 'Canada without Quebec', 'Canary Islands', 'Central Asia', 'China w/o Inner Mongol', 'Clipperton Island', 'Coral Sea Islands', 'Cyprus No Mans Area', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'Dhekelia Base', 'EC', 'EE', 'EG', 'EH', 'ENTSO-E', 'ER', 'ES', 'ET', 'Europe without Austria', 'Europe without NORDEL (NCPA)', 'Europe without Switzerland', 'Europe without Switzerland and Austria', 'Europe without Switzerland and France', 'Europe, without Russia and Turkey', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'FSU', 'France, including overseas territories', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'Guantanamo Bay', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'IAI Area, Africa', 'IAI Area, Asia, without China and GCC', 'IAI Area, EU27 & EFTA', 'IAI Area, Gulf Cooperation Council', 'IAI Area, North America', 'IAI Area, North America, without Quebec', 'IAI Area, Russia & RER w/o EU27 & EFTA', 'IAI Area, South America', 'ID', 'IE', 'IL', 'IM', 'IN', 'IN-AN', 'IN-AP', 'IN-AR', 'IN-AS', 'IN-BR', 'IN-CH', 'IN-CT', 'IN-DD', 'IN-DL', 'IN-DN', 'IN-Eastern grid', 'IN-GA', 'IN-GJ', 'IN-HP', 'IN-HR', 'IN-Islands', 'IN-JH', 'IN-JK', 'IN-KA', 'IN-KL', 'IN-LD', 'IN-MH', 'IN-ML', 'IN-MN', 'IN-MP', 'IN-MZ', 'IN-NL', 'IN-North-eastern grid', 'IN-Northern grid', 'IN-OR', 'IN-PB', 'IN-PY', 'IN-RJ', 'IN-SK', 'IN-Southern grid', 'IN-TN', 'IN-TR', 'IN-UP', 'IN-UT', 'IN-WB', 'IN-Western grid', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MRO', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NAFTA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NORDEL', 'NP', 'NPCC', 'NR', 'NU', 'NZ', 'North America without Quebec', 'Northern Cyprus', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'Québec, HQ distribution network', 'RAF', 'RAS', 'RE', 'RER', 'RER w/o AT+BE+CH+DE+FR+IT', 'RER w/o CH+DE', 'RER w/o DE+NL+NO', 'RER w/o DE+NL+NO+RU', 'RER w/o DE+NL+RU', 'RER w/o RU', 'RLA', 'RME', 'RNA', 'RO', 'RS', 'RU', 'RW', 'Russia (Asia)', 'Russia (Europe)', 'SA', 'SAS', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'Scarborough Reef', 'Serranilla Bank', 'Siachen Glacier', 'Somaliland', 'Spratly Islands', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UCTE', 'UCTE without France', 'UCTE without Germany', 'UCTE without Germany and France', 'UG', 'UM', 'UN-AMERICAS', 'UN-ASIA', 'UN-AUSTRALIANZ', 'UN-CAMERICA', 'UN-CARIBBEAN', 'UN-EAFRICA', 'UN-EASIA', 'UN-EEUROPE', 'UN-EUROPE', 'UN-MAFRICA', 'UN-MELANESIA', 'UN-MICRONESIA', 'UN-NAFRICA', 'UN-NEUROPE', 'UN-OCEANIA', 'UN-POLYNESIA', 'UN-SAMERICA', 'UN-SASIA', 'UN-SEASIA', 'UN-SEUROPE', 'UN-WAFRICA', 'UN-WASIA', 'US', 'US-AK', 'US-AL', 'US-AR', 'US-ASCC', 'US-AZ', 'US-CA', 'US-CO', 'US-CT', 'US-DC', 'US-DE', 'US-FL', 'US-FRCC', 'US-GA', 'US-HI', 'US-HICC', 'US-IA', 'US-ID', 'US-IL', 'US-IN', 'US-KS', 'US-KY', 'US-LA', 'US-MA', 'US-MD', 'US-ME', 'US-MI', 'US-MN', 'US-MO', 'US-MRO', 'US-MS', 'US-MT', 'US-NC', 'US-ND', 'US-NE', 'US-NH', 'US-NJ', 'US-NM', 'US-NPCC', 'US-NV', 'US-NY', 'US-OH', 'US-OK', 'US-OR', 'US-PA', 'US-PR', 'US-RFC', 'US-RI', 'US-SC', 'US-SD', 'US-SERC', 'US-SPP', 'US-TN', 'US-TRE', 'US-TX', 'US-UT', 'US-VA', 'US-VT', 'US-WA', 'US-WECC', 'US-WI', 'US-WV', 'US-WY', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WECC', 'WEU', 'WF', 'WS', 'XK', 'YE', 'YT', 'ZA', 'ZM', 'ZW', 'GLO', None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None]\n", + "Cannot find -> transmission network construction, long-distance transmission network, long-distance ['CH', 'UN-EUROPE', 'RER', 'Europe without Austria', 'Europe, without Russia and Turkey', 'RER w/o RU', 'ENTSO-E', 'RER w/o DE+NL+RU', 'RER w/o DE+NL+NO+RU', 'Europe without NORDEL (NCPA)', 'UCTE', 'UCTE without France', 'UCTE without Germany', 'UCTE without Germany and France', 'WEU', 'CH', 'RER', 'Europe without Switzerland', 'RoW', 'GLO', 'AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AUS-AC', 'AUS-ACT', 'AUS-IOT', 'AUS-NSW', 'AUS-NTR', 'AUS-QNS', 'AUS-SAS', 'AUS-TSM', 'AUS-VCT', 'AUS-WAS', 'AW', 'AX', 'AZ', 'Akrotiri', 'Asia without China', 'BA', 'BALTSO', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BR-AC', 'BR-AL', 'BR-AM', 'BR-AP', 'BR-BA', 'BR-CE', 'BR-DF', 'BR-ES', 'BR-GO', 'BR-MA', 'BR-MG', 'BR-MS', 'BR-MT', 'BR-Mid-western grid', 'BR-North-eastern grid', 'BR-Northern grid', 'BR-PA', 'BR-PB', 'BR-PE', 'BR-PI', 'BR-PR', 'BR-RJ', 'BR-RN', 'BR-RO', 'BR-RR', 'BR-RS', 'BR-SC', 'BR-SE', 'BR-SP', 'BR-South-eastern grid', 'BR-Southern grid', 'BR-TO', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'Bajo Nuevo', 'CA', 'CA-AB', 'CA-BC', 'CA-MB', 'CA-NB', 'CA-NF', 'CA-NS', 'CA-NT', 'CA-NU', 'CA-ON', 'CA-PE', 'CA-QC', 'CA-SK', 'CA-YK', 'CD', 'CENTREL', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CN-AH', 'CN-BJ', 'CN-CQ', 'CN-CSG', 'CN-FJ', 'CN-GD', 'CN-GS', 'CN-GX', 'CN-GZ', 'CN-HA', 'CN-HB', 'CN-HE', 'CN-HL', 'CN-HN', 'CN-HU', 'CN-JL', 'CN-JS', 'CN-JX', 'CN-LN', 'CN-NM', 'CN-NX', 'CN-QH', 'CN-SA', 'CN-SC', 'CN-SD', 'CN-SGCC', 'CN-SH', 'CN-SX', 'CN-TJ', 'CN-XJ', 'CN-XZ', 'CN-YN', 'CN-ZJ', 'CO', 'CR', 'CS', 'CU', 'CV', 'CW', 'CY', 'CZ', 'Canada without Alberta', 'Canada without Alberta and Quebec', 'Canada without Quebec', 'Canary Islands', 'Central Asia', 'China w/o Inner Mongol', 'Clipperton Island', 'Coral Sea Islands', 'Cyprus No Mans Area', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'Dhekelia Base', 'EC', 'EE', 'EG', 'EH', 'ENTSO-E', 'ER', 'ES', 'ET', 'Europe without Austria', 'Europe without NORDEL (NCPA)', 'Europe without Switzerland', 'Europe without Switzerland and Austria', 'Europe without Switzerland and France', 'Europe, without Russia and Turkey', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'FSU', 'France, including overseas territories', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'Guantanamo Bay', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'IAI Area, Africa', 'IAI Area, Asia, without China and GCC', 'IAI Area, EU27 & EFTA', 'IAI Area, Gulf Cooperation Council', 'IAI Area, North America', 'IAI Area, North America, without Quebec', 'IAI Area, Russia & RER w/o EU27 & EFTA', 'IAI Area, South America', 'ID', 'IE', 'IL', 'IM', 'IN', 'IN-AN', 'IN-AP', 'IN-AR', 'IN-AS', 'IN-BR', 'IN-CH', 'IN-CT', 'IN-DD', 'IN-DL', 'IN-DN', 'IN-Eastern grid', 'IN-GA', 'IN-GJ', 'IN-HP', 'IN-HR', 'IN-Islands', 'IN-JH', 'IN-JK', 'IN-KA', 'IN-KL', 'IN-LD', 'IN-MH', 'IN-ML', 'IN-MN', 'IN-MP', 'IN-MZ', 'IN-NL', 'IN-North-eastern grid', 'IN-Northern grid', 'IN-OR', 'IN-PB', 'IN-PY', 'IN-RJ', 'IN-SK', 'IN-Southern grid', 'IN-TN', 'IN-TR', 'IN-UP', 'IN-UT', 'IN-WB', 'IN-Western grid', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MRO', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NAFTA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NORDEL', 'NP', 'NPCC', 'NR', 'NU', 'NZ', 'North America without Quebec', 'Northern Cyprus', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'Québec, HQ distribution network', 'RAF', 'RAS', 'RE', 'RER', 'RER w/o AT+BE+CH+DE+FR+IT', 'RER w/o CH+DE', 'RER w/o DE+NL+NO', 'RER w/o DE+NL+NO+RU', 'RER w/o DE+NL+RU', 'RER w/o RU', 'RLA', 'RME', 'RNA', 'RO', 'RS', 'RU', 'RW', 'Russia (Asia)', 'Russia (Europe)', 'SA', 'SAS', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'Scarborough Reef', 'Serranilla Bank', 'Siachen Glacier', 'Somaliland', 'Spratly Islands', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UCTE', 'UCTE without France', 'UCTE without Germany', 'UCTE without Germany and France', 'UG', 'UM', 'UN-AMERICAS', 'UN-ASIA', 'UN-AUSTRALIANZ', 'UN-CAMERICA', 'UN-CARIBBEAN', 'UN-EAFRICA', 'UN-EASIA', 'UN-EEUROPE', 'UN-EUROPE', 'UN-MAFRICA', 'UN-MELANESIA', 'UN-MICRONESIA', 'UN-NAFRICA', 'UN-NEUROPE', 'UN-OCEANIA', 'UN-POLYNESIA', 'UN-SAMERICA', 'UN-SASIA', 'UN-SEASIA', 'UN-SEUROPE', 'UN-WAFRICA', 'UN-WASIA', 'US', 'US-AK', 'US-AL', 'US-AR', 'US-ASCC', 'US-AZ', 'US-CA', 'US-CO', 'US-CT', 'US-DC', 'US-DE', 'US-FL', 'US-FRCC', 'US-GA', 'US-HI', 'US-HICC', 'US-IA', 'US-ID', 'US-IL', 'US-IN', 'US-KS', 'US-KY', 'US-LA', 'US-MA', 'US-MD', 'US-ME', 'US-MI', 'US-MN', 'US-MO', 'US-MRO', 'US-MS', 'US-MT', 'US-NC', 'US-ND', 'US-NE', 'US-NH', 'US-NJ', 'US-NM', 'US-NPCC', 'US-NV', 'US-NY', 'US-OH', 'US-OK', 'US-OR', 'US-PA', 'US-PR', 'US-RFC', 'US-RI', 'US-SC', 'US-SD', 'US-SERC', 'US-SPP', 'US-TN', 'US-TRE', 'US-TX', 'US-UT', 'US-VA', 'US-VT', 'US-WA', 'US-WECC', 'US-WI', 'US-WV', 'US-WY', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WECC', 'WEU', 'WF', 'WS', 'XK', 'YE', 'YT', 'ZA', 'ZM', 'ZW', 'GLO', None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None]\n", + "\n", + "//////////////// IMPORTING USER-DEFINED INVENTORIES ////////////////\n", + "Extracted 1 worksheets in 0.00 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "\n", + "//////////////// IMPORTING USER-DEFINED INVENTORIES ////////////////\n", + "Extracted 1 worksheets in 0.00 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "\n", + "//////////////// IMPORTING USER-DEFINED INVENTORIES ////////////////\n", + "Extracted 1 worksheets in 0.00 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "\n", + "//////////////// IMPORTING USER-DEFINED INVENTORIES ////////////////\n", + "Extracted 1 worksheets in 0.00 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "List of unlinked exchanges:\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "| Name | Reference product | Location | Categories | Unit | Type | File |\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "| treatment of wastewater, average, capacity 1E9l/year | None | Europe without Switzerland | None | cubic meter | technosphere | lci-EP2050.csv |\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "List of unlinked exchanges:\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "| Name | Reference product | Location | Categories | Unit | Type | File |\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "| treatment of wastewater, average, capacity 1E9l/year | None | Europe without Switzerland | None | cubic meter | technosphere | lci-EP2050.csv |\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "Create custom markets.\n", + "Create custom markets.\n", + "Create custom markets.\n", + "Create custom markets.\n", + "Cannot find -> transmission network construction, long-distance transmission network, long-distance ['CH', 'UN-EUROPE', 'RER', 'Europe without Austria', 'Europe, without Russia and Turkey', 'RER w/o RU', 'ENTSO-E', 'RER w/o DE+NL+RU', 'RER w/o DE+NL+NO+RU', 'Europe without NORDEL (NCPA)', 'UCTE', 'UCTE without France', 'UCTE without Germany', 'UCTE without Germany and France', 'WEU', 'CH', 'RER', 'Europe without Switzerland', 'RoW', 'GLO', 'AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AUS-AC', 'AUS-ACT', 'AUS-IOT', 'AUS-NSW', 'AUS-NTR', 'AUS-QNS', 'AUS-SAS', 'AUS-TSM', 'AUS-VCT', 'AUS-WAS', 'AW', 'AX', 'AZ', 'Akrotiri', 'Asia without China', 'BA', 'BALTSO', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BR-AC', 'BR-AL', 'BR-AM', 'BR-AP', 'BR-BA', 'BR-CE', 'BR-DF', 'BR-ES', 'BR-GO', 'BR-MA', 'BR-MG', 'BR-MS', 'BR-MT', 'BR-Mid-western grid', 'BR-North-eastern grid', 'BR-Northern grid', 'BR-PA', 'BR-PB', 'BR-PE', 'BR-PI', 'BR-PR', 'BR-RJ', 'BR-RN', 'BR-RO', 'BR-RR', 'BR-RS', 'BR-SC', 'BR-SE', 'BR-SP', 'BR-South-eastern grid', 'BR-Southern grid', 'BR-TO', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'Bajo Nuevo', 'CA', 'CA-AB', 'CA-BC', 'CA-MB', 'CA-NB', 'CA-NF', 'CA-NS', 'CA-NT', 'CA-NU', 'CA-ON', 'CA-PE', 'CA-QC', 'CA-SK', 'CA-YK', 'CD', 'CENTREL', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CN-AH', 'CN-BJ', 'CN-CQ', 'CN-CSG', 'CN-FJ', 'CN-GD', 'CN-GS', 'CN-GX', 'CN-GZ', 'CN-HA', 'CN-HB', 'CN-HE', 'CN-HL', 'CN-HN', 'CN-HU', 'CN-JL', 'CN-JS', 'CN-JX', 'CN-LN', 'CN-NM', 'CN-NX', 'CN-QH', 'CN-SA', 'CN-SC', 'CN-SD', 'CN-SGCC', 'CN-SH', 'CN-SX', 'CN-TJ', 'CN-XJ', 'CN-XZ', 'CN-YN', 'CN-ZJ', 'CO', 'CR', 'CS', 'CU', 'CV', 'CW', 'CY', 'CZ', 'Canada without Alberta', 'Canada without Alberta and Quebec', 'Canada without Quebec', 'Canary Islands', 'Central Asia', 'China w/o Inner Mongol', 'Clipperton Island', 'Coral Sea Islands', 'Cyprus No Mans Area', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'Dhekelia Base', 'EC', 'EE', 'EG', 'EH', 'ENTSO-E', 'ER', 'ES', 'ET', 'Europe without Austria', 'Europe without NORDEL (NCPA)', 'Europe without Switzerland', 'Europe without Switzerland and Austria', 'Europe without Switzerland and France', 'Europe, without Russia and Turkey', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'FSU', 'France, including overseas territories', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'Guantanamo Bay', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'IAI Area, Africa', 'IAI Area, Asia, without China and GCC', 'IAI Area, EU27 & EFTA', 'IAI Area, Gulf Cooperation Council', 'IAI Area, North America', 'IAI Area, North America, without Quebec', 'IAI Area, Russia & RER w/o EU27 & EFTA', 'IAI Area, South America', 'ID', 'IE', 'IL', 'IM', 'IN', 'IN-AN', 'IN-AP', 'IN-AR', 'IN-AS', 'IN-BR', 'IN-CH', 'IN-CT', 'IN-DD', 'IN-DL', 'IN-DN', 'IN-Eastern grid', 'IN-GA', 'IN-GJ', 'IN-HP', 'IN-HR', 'IN-Islands', 'IN-JH', 'IN-JK', 'IN-KA', 'IN-KL', 'IN-LD', 'IN-MH', 'IN-ML', 'IN-MN', 'IN-MP', 'IN-MZ', 'IN-NL', 'IN-North-eastern grid', 'IN-Northern grid', 'IN-OR', 'IN-PB', 'IN-PY', 'IN-RJ', 'IN-SK', 'IN-Southern grid', 'IN-TN', 'IN-TR', 'IN-UP', 'IN-UT', 'IN-WB', 'IN-Western grid', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MRO', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NAFTA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NORDEL', 'NP', 'NPCC', 'NR', 'NU', 'NZ', 'North America without Quebec', 'Northern Cyprus', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'Québec, HQ distribution network', 'RAF', 'RAS', 'RE', 'RER', 'RER w/o AT+BE+CH+DE+FR+IT', 'RER w/o CH+DE', 'RER w/o DE+NL+NO', 'RER w/o DE+NL+NO+RU', 'RER w/o DE+NL+RU', 'RER w/o RU', 'RLA', 'RME', 'RNA', 'RO', 'RS', 'RU', 'RW', 'Russia (Asia)', 'Russia (Europe)', 'SA', 'SAS', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'Scarborough Reef', 'Serranilla Bank', 'Siachen Glacier', 'Somaliland', 'Spratly Islands', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UCTE', 'UCTE without France', 'UCTE without Germany', 'UCTE without Germany and France', 'UG', 'UM', 'UN-AMERICAS', 'UN-ASIA', 'UN-AUSTRALIANZ', 'UN-CAMERICA', 'UN-CARIBBEAN', 'UN-EAFRICA', 'UN-EASIA', 'UN-EEUROPE', 'UN-EUROPE', 'UN-MAFRICA', 'UN-MELANESIA', 'UN-MICRONESIA', 'UN-NAFRICA', 'UN-NEUROPE', 'UN-OCEANIA', 'UN-POLYNESIA', 'UN-SAMERICA', 'UN-SASIA', 'UN-SEASIA', 'UN-SEUROPE', 'UN-WAFRICA', 'UN-WASIA', 'US', 'US-AK', 'US-AL', 'US-AR', 'US-ASCC', 'US-AZ', 'US-CA', 'US-CO', 'US-CT', 'US-DC', 'US-DE', 'US-FL', 'US-FRCC', 'US-GA', 'US-HI', 'US-HICC', 'US-IA', 'US-ID', 'US-IL', 'US-IN', 'US-KS', 'US-KY', 'US-LA', 'US-MA', 'US-MD', 'US-ME', 'US-MI', 'US-MN', 'US-MO', 'US-MRO', 'US-MS', 'US-MT', 'US-NC', 'US-ND', 'US-NE', 'US-NH', 'US-NJ', 'US-NM', 'US-NPCC', 'US-NV', 'US-NY', 'US-OH', 'US-OK', 'US-OR', 'US-PA', 'US-PR', 'US-RFC', 'US-RI', 'US-SC', 'US-SD', 'US-SERC', 'US-SPP', 'US-TN', 'US-TRE', 'US-TX', 'US-UT', 'US-VA', 'US-VT', 'US-WA', 'US-WECC', 'US-WI', 'US-WV', 'US-WY', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WECC', 'WEU', 'WF', 'WS', 'XK', 'YE', 'YT', 'ZA', 'ZM', 'ZW', 'GLO', None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None]\n", + "Cannot find -> transmission network construction, long-distance transmission network, long-distance ['CH', 'UN-EUROPE', 'RER', 'Europe without Austria', 'Europe, without Russia and Turkey', 'RER w/o RU', 'ENTSO-E', 'RER w/o DE+NL+RU', 'RER w/o DE+NL+NO+RU', 'Europe without NORDEL (NCPA)', 'UCTE', 'UCTE without France', 'UCTE without Germany', 'UCTE without Germany and France', 'WEU', 'CH', 'RER', 'Europe without Switzerland', 'RoW', 'GLO', 'AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AUS-AC', 'AUS-ACT', 'AUS-IOT', 'AUS-NSW', 'AUS-NTR', 'AUS-QNS', 'AUS-SAS', 'AUS-TSM', 'AUS-VCT', 'AUS-WAS', 'AW', 'AX', 'AZ', 'Akrotiri', 'Asia without China', 'BA', 'BALTSO', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BR-AC', 'BR-AL', 'BR-AM', 'BR-AP', 'BR-BA', 'BR-CE', 'BR-DF', 'BR-ES', 'BR-GO', 'BR-MA', 'BR-MG', 'BR-MS', 'BR-MT', 'BR-Mid-western grid', 'BR-North-eastern grid', 'BR-Northern grid', 'BR-PA', 'BR-PB', 'BR-PE', 'BR-PI', 'BR-PR', 'BR-RJ', 'BR-RN', 'BR-RO', 'BR-RR', 'BR-RS', 'BR-SC', 'BR-SE', 'BR-SP', 'BR-South-eastern grid', 'BR-Southern grid', 'BR-TO', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'Bajo Nuevo', 'CA', 'CA-AB', 'CA-BC', 'CA-MB', 'CA-NB', 'CA-NF', 'CA-NS', 'CA-NT', 'CA-NU', 'CA-ON', 'CA-PE', 'CA-QC', 'CA-SK', 'CA-YK', 'CD', 'CENTREL', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CN-AH', 'CN-BJ', 'CN-CQ', 'CN-CSG', 'CN-FJ', 'CN-GD', 'CN-GS', 'CN-GX', 'CN-GZ', 'CN-HA', 'CN-HB', 'CN-HE', 'CN-HL', 'CN-HN', 'CN-HU', 'CN-JL', 'CN-JS', 'CN-JX', 'CN-LN', 'CN-NM', 'CN-NX', 'CN-QH', 'CN-SA', 'CN-SC', 'CN-SD', 'CN-SGCC', 'CN-SH', 'CN-SX', 'CN-TJ', 'CN-XJ', 'CN-XZ', 'CN-YN', 'CN-ZJ', 'CO', 'CR', 'CS', 'CU', 'CV', 'CW', 'CY', 'CZ', 'Canada without Alberta', 'Canada without Alberta and Quebec', 'Canada without Quebec', 'Canary Islands', 'Central Asia', 'China w/o Inner Mongol', 'Clipperton Island', 'Coral Sea Islands', 'Cyprus No Mans Area', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'Dhekelia Base', 'EC', 'EE', 'EG', 'EH', 'ENTSO-E', 'ER', 'ES', 'ET', 'Europe without Austria', 'Europe without NORDEL (NCPA)', 'Europe without Switzerland', 'Europe without Switzerland and Austria', 'Europe without Switzerland and France', 'Europe, without Russia and Turkey', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'FSU', 'France, including overseas territories', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'Guantanamo Bay', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'IAI Area, Africa', 'IAI Area, Asia, without China and GCC', 'IAI Area, EU27 & EFTA', 'IAI Area, Gulf Cooperation Council', 'IAI Area, North America', 'IAI Area, North America, without Quebec', 'IAI Area, Russia & RER w/o EU27 & EFTA', 'IAI Area, South America', 'ID', 'IE', 'IL', 'IM', 'IN', 'IN-AN', 'IN-AP', 'IN-AR', 'IN-AS', 'IN-BR', 'IN-CH', 'IN-CT', 'IN-DD', 'IN-DL', 'IN-DN', 'IN-Eastern grid', 'IN-GA', 'IN-GJ', 'IN-HP', 'IN-HR', 'IN-Islands', 'IN-JH', 'IN-JK', 'IN-KA', 'IN-KL', 'IN-LD', 'IN-MH', 'IN-ML', 'IN-MN', 'IN-MP', 'IN-MZ', 'IN-NL', 'IN-North-eastern grid', 'IN-Northern grid', 'IN-OR', 'IN-PB', 'IN-PY', 'IN-RJ', 'IN-SK', 'IN-Southern grid', 'IN-TN', 'IN-TR', 'IN-UP', 'IN-UT', 'IN-WB', 'IN-Western grid', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MRO', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NAFTA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NORDEL', 'NP', 'NPCC', 'NR', 'NU', 'NZ', 'North America without Quebec', 'Northern Cyprus', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'Québec, HQ distribution network', 'RAF', 'RAS', 'RE', 'RER', 'RER w/o AT+BE+CH+DE+FR+IT', 'RER w/o CH+DE', 'RER w/o DE+NL+NO', 'RER w/o DE+NL+NO+RU', 'RER w/o DE+NL+RU', 'RER w/o RU', 'RLA', 'RME', 'RNA', 'RO', 'RS', 'RU', 'RW', 'Russia (Asia)', 'Russia (Europe)', 'SA', 'SAS', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'Scarborough Reef', 'Serranilla Bank', 'Siachen Glacier', 'Somaliland', 'Spratly Islands', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UCTE', 'UCTE without France', 'UCTE without Germany', 'UCTE without Germany and France', 'UG', 'UM', 'UN-AMERICAS', 'UN-ASIA', 'UN-AUSTRALIANZ', 'UN-CAMERICA', 'UN-CARIBBEAN', 'UN-EAFRICA', 'UN-EASIA', 'UN-EEUROPE', 'UN-EUROPE', 'UN-MAFRICA', 'UN-MELANESIA', 'UN-MICRONESIA', 'UN-NAFRICA', 'UN-NEUROPE', 'UN-OCEANIA', 'UN-POLYNESIA', 'UN-SAMERICA', 'UN-SASIA', 'UN-SEASIA', 'UN-SEUROPE', 'UN-WAFRICA', 'UN-WASIA', 'US', 'US-AK', 'US-AL', 'US-AR', 'US-ASCC', 'US-AZ', 'US-CA', 'US-CO', 'US-CT', 'US-DC', 'US-DE', 'US-FL', 'US-FRCC', 'US-GA', 'US-HI', 'US-HICC', 'US-IA', 'US-ID', 'US-IL', 'US-IN', 'US-KS', 'US-KY', 'US-LA', 'US-MA', 'US-MD', 'US-ME', 'US-MI', 'US-MN', 'US-MO', 'US-MRO', 'US-MS', 'US-MT', 'US-NC', 'US-ND', 'US-NE', 'US-NH', 'US-NJ', 'US-NM', 'US-NPCC', 'US-NV', 'US-NY', 'US-OH', 'US-OK', 'US-OR', 'US-PA', 'US-PR', 'US-RFC', 'US-RI', 'US-SC', 'US-SD', 'US-SERC', 'US-SPP', 'US-TN', 'US-TRE', 'US-TX', 'US-UT', 'US-VA', 'US-VT', 'US-WA', 'US-WECC', 'US-WI', 'US-WV', 'US-WY', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WECC', 'WEU', 'WF', 'WS', 'XK', 'YE', 'YT', 'ZA', 'ZM', 'ZW', 'GLO', None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None]\n", + "\n", + "//////////////// IMPORTING USER-DEFINED INVENTORIES ////////////////\n", + "Extracted 1 worksheets in 0.00 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "\n", + "//////////////// IMPORTING USER-DEFINED INVENTORIES ////////////////\n", + "Extracted 1 worksheets in 0.00 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "\n", + "//////////////// IMPORTING USER-DEFINED INVENTORIES ////////////////\n", + "Extracted 1 worksheets in 0.00 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "\n", + "//////////////// IMPORTING USER-DEFINED INVENTORIES ////////////////\n", + "Extracted 1 worksheets in 0.00 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "List of unlinked exchanges:\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "| Name | Reference product | Location | Categories | Unit | Type | File |\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "| treatment of wastewater, average, capacity 1E9l/year | None | Europe without Switzerland | None | cubic meter | technosphere | lci-EP2050.csv |\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "List of unlinked exchanges:\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "| Name | Reference product | Location | Categories | Unit | Type | File |\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "| treatment of wastewater, average, capacity 1E9l/year | None | Europe without Switzerland | None | cubic meter | technosphere | lci-EP2050.csv |\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "Create custom markets.\n", + "Create custom markets.\n", + "Create custom markets.\n", + "Create custom markets.\n", + "Cannot find -> transmission network construction, long-distance transmission network, long-distance ['CH', 'UN-EUROPE', 'RER', 'Europe without Austria', 'Europe, without Russia and Turkey', 'RER w/o RU', 'ENTSO-E', 'RER w/o DE+NL+RU', 'RER w/o DE+NL+NO+RU', 'Europe without NORDEL (NCPA)', 'UCTE', 'UCTE without France', 'UCTE without Germany', 'UCTE without Germany and France', 'WEU', 'CH', 'RER', 'Europe without Switzerland', 'RoW', 'GLO', 'AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AUS-AC', 'AUS-ACT', 'AUS-IOT', 'AUS-NSW', 'AUS-NTR', 'AUS-QNS', 'AUS-SAS', 'AUS-TSM', 'AUS-VCT', 'AUS-WAS', 'AW', 'AX', 'AZ', 'Akrotiri', 'Asia without China', 'BA', 'BALTSO', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BR-AC', 'BR-AL', 'BR-AM', 'BR-AP', 'BR-BA', 'BR-CE', 'BR-DF', 'BR-ES', 'BR-GO', 'BR-MA', 'BR-MG', 'BR-MS', 'BR-MT', 'BR-Mid-western grid', 'BR-North-eastern grid', 'BR-Northern grid', 'BR-PA', 'BR-PB', 'BR-PE', 'BR-PI', 'BR-PR', 'BR-RJ', 'BR-RN', 'BR-RO', 'BR-RR', 'BR-RS', 'BR-SC', 'BR-SE', 'BR-SP', 'BR-South-eastern grid', 'BR-Southern grid', 'BR-TO', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'Bajo Nuevo', 'CA', 'CA-AB', 'CA-BC', 'CA-MB', 'CA-NB', 'CA-NF', 'CA-NS', 'CA-NT', 'CA-NU', 'CA-ON', 'CA-PE', 'CA-QC', 'CA-SK', 'CA-YK', 'CD', 'CENTREL', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CN-AH', 'CN-BJ', 'CN-CQ', 'CN-CSG', 'CN-FJ', 'CN-GD', 'CN-GS', 'CN-GX', 'CN-GZ', 'CN-HA', 'CN-HB', 'CN-HE', 'CN-HL', 'CN-HN', 'CN-HU', 'CN-JL', 'CN-JS', 'CN-JX', 'CN-LN', 'CN-NM', 'CN-NX', 'CN-QH', 'CN-SA', 'CN-SC', 'CN-SD', 'CN-SGCC', 'CN-SH', 'CN-SX', 'CN-TJ', 'CN-XJ', 'CN-XZ', 'CN-YN', 'CN-ZJ', 'CO', 'CR', 'CS', 'CU', 'CV', 'CW', 'CY', 'CZ', 'Canada without Alberta', 'Canada without Alberta and Quebec', 'Canada without Quebec', 'Canary Islands', 'Central Asia', 'China w/o Inner Mongol', 'Clipperton Island', 'Coral Sea Islands', 'Cyprus No Mans Area', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'Dhekelia Base', 'EC', 'EE', 'EG', 'EH', 'ENTSO-E', 'ER', 'ES', 'ET', 'Europe without Austria', 'Europe without NORDEL (NCPA)', 'Europe without Switzerland', 'Europe without Switzerland and Austria', 'Europe without Switzerland and France', 'Europe, without Russia and Turkey', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'FSU', 'France, including overseas territories', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'Guantanamo Bay', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'IAI Area, Africa', 'IAI Area, Asia, without China and GCC', 'IAI Area, EU27 & EFTA', 'IAI Area, Gulf Cooperation Council', 'IAI Area, North America', 'IAI Area, North America, without Quebec', 'IAI Area, Russia & RER w/o EU27 & EFTA', 'IAI Area, South America', 'ID', 'IE', 'IL', 'IM', 'IN', 'IN-AN', 'IN-AP', 'IN-AR', 'IN-AS', 'IN-BR', 'IN-CH', 'IN-CT', 'IN-DD', 'IN-DL', 'IN-DN', 'IN-Eastern grid', 'IN-GA', 'IN-GJ', 'IN-HP', 'IN-HR', 'IN-Islands', 'IN-JH', 'IN-JK', 'IN-KA', 'IN-KL', 'IN-LD', 'IN-MH', 'IN-ML', 'IN-MN', 'IN-MP', 'IN-MZ', 'IN-NL', 'IN-North-eastern grid', 'IN-Northern grid', 'IN-OR', 'IN-PB', 'IN-PY', 'IN-RJ', 'IN-SK', 'IN-Southern grid', 'IN-TN', 'IN-TR', 'IN-UP', 'IN-UT', 'IN-WB', 'IN-Western grid', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MRO', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NAFTA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NORDEL', 'NP', 'NPCC', 'NR', 'NU', 'NZ', 'North America without Quebec', 'Northern Cyprus', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'Québec, HQ distribution network', 'RAF', 'RAS', 'RE', 'RER', 'RER w/o AT+BE+CH+DE+FR+IT', 'RER w/o CH+DE', 'RER w/o DE+NL+NO', 'RER w/o DE+NL+NO+RU', 'RER w/o DE+NL+RU', 'RER w/o RU', 'RLA', 'RME', 'RNA', 'RO', 'RS', 'RU', 'RW', 'Russia (Asia)', 'Russia (Europe)', 'SA', 'SAS', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'Scarborough Reef', 'Serranilla Bank', 'Siachen Glacier', 'Somaliland', 'Spratly Islands', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UCTE', 'UCTE without France', 'UCTE without Germany', 'UCTE without Germany and France', 'UG', 'UM', 'UN-AMERICAS', 'UN-ASIA', 'UN-AUSTRALIANZ', 'UN-CAMERICA', 'UN-CARIBBEAN', 'UN-EAFRICA', 'UN-EASIA', 'UN-EEUROPE', 'UN-EUROPE', 'UN-MAFRICA', 'UN-MELANESIA', 'UN-MICRONESIA', 'UN-NAFRICA', 'UN-NEUROPE', 'UN-OCEANIA', 'UN-POLYNESIA', 'UN-SAMERICA', 'UN-SASIA', 'UN-SEASIA', 'UN-SEUROPE', 'UN-WAFRICA', 'UN-WASIA', 'US', 'US-AK', 'US-AL', 'US-AR', 'US-ASCC', 'US-AZ', 'US-CA', 'US-CO', 'US-CT', 'US-DC', 'US-DE', 'US-FL', 'US-FRCC', 'US-GA', 'US-HI', 'US-HICC', 'US-IA', 'US-ID', 'US-IL', 'US-IN', 'US-KS', 'US-KY', 'US-LA', 'US-MA', 'US-MD', 'US-ME', 'US-MI', 'US-MN', 'US-MO', 'US-MRO', 'US-MS', 'US-MT', 'US-NC', 'US-ND', 'US-NE', 'US-NH', 'US-NJ', 'US-NM', 'US-NPCC', 'US-NV', 'US-NY', 'US-OH', 'US-OK', 'US-OR', 'US-PA', 'US-PR', 'US-RFC', 'US-RI', 'US-SC', 'US-SD', 'US-SERC', 'US-SPP', 'US-TN', 'US-TRE', 'US-TX', 'US-UT', 'US-VA', 'US-VT', 'US-WA', 'US-WECC', 'US-WI', 'US-WV', 'US-WY', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WECC', 'WEU', 'WF', 'WS', 'XK', 'YE', 'YT', 'ZA', 'ZM', 'ZW', 'GLO', None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None]\n", + "Cannot find -> transmission network construction, long-distance transmission network, long-distance ['CH', 'UN-EUROPE', 'RER', 'Europe without Austria', 'Europe, without Russia and Turkey', 'RER w/o RU', 'ENTSO-E', 'RER w/o DE+NL+RU', 'RER w/o DE+NL+NO+RU', 'Europe without NORDEL (NCPA)', 'UCTE', 'UCTE without France', 'UCTE without Germany', 'UCTE without Germany and France', 'WEU', 'CH', 'RER', 'Europe without Switzerland', 'RoW', 'GLO', 'AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AUS-AC', 'AUS-ACT', 'AUS-IOT', 'AUS-NSW', 'AUS-NTR', 'AUS-QNS', 'AUS-SAS', 'AUS-TSM', 'AUS-VCT', 'AUS-WAS', 'AW', 'AX', 'AZ', 'Akrotiri', 'Asia without China', 'BA', 'BALTSO', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BR-AC', 'BR-AL', 'BR-AM', 'BR-AP', 'BR-BA', 'BR-CE', 'BR-DF', 'BR-ES', 'BR-GO', 'BR-MA', 'BR-MG', 'BR-MS', 'BR-MT', 'BR-Mid-western grid', 'BR-North-eastern grid', 'BR-Northern grid', 'BR-PA', 'BR-PB', 'BR-PE', 'BR-PI', 'BR-PR', 'BR-RJ', 'BR-RN', 'BR-RO', 'BR-RR', 'BR-RS', 'BR-SC', 'BR-SE', 'BR-SP', 'BR-South-eastern grid', 'BR-Southern grid', 'BR-TO', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'Bajo Nuevo', 'CA', 'CA-AB', 'CA-BC', 'CA-MB', 'CA-NB', 'CA-NF', 'CA-NS', 'CA-NT', 'CA-NU', 'CA-ON', 'CA-PE', 'CA-QC', 'CA-SK', 'CA-YK', 'CD', 'CENTREL', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CN-AH', 'CN-BJ', 'CN-CQ', 'CN-CSG', 'CN-FJ', 'CN-GD', 'CN-GS', 'CN-GX', 'CN-GZ', 'CN-HA', 'CN-HB', 'CN-HE', 'CN-HL', 'CN-HN', 'CN-HU', 'CN-JL', 'CN-JS', 'CN-JX', 'CN-LN', 'CN-NM', 'CN-NX', 'CN-QH', 'CN-SA', 'CN-SC', 'CN-SD', 'CN-SGCC', 'CN-SH', 'CN-SX', 'CN-TJ', 'CN-XJ', 'CN-XZ', 'CN-YN', 'CN-ZJ', 'CO', 'CR', 'CS', 'CU', 'CV', 'CW', 'CY', 'CZ', 'Canada without Alberta', 'Canada without Alberta and Quebec', 'Canada without Quebec', 'Canary Islands', 'Central Asia', 'China w/o Inner Mongol', 'Clipperton Island', 'Coral Sea Islands', 'Cyprus No Mans Area', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'Dhekelia Base', 'EC', 'EE', 'EG', 'EH', 'ENTSO-E', 'ER', 'ES', 'ET', 'Europe without Austria', 'Europe without NORDEL (NCPA)', 'Europe without Switzerland', 'Europe without Switzerland and Austria', 'Europe without Switzerland and France', 'Europe, without Russia and Turkey', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'FSU', 'France, including overseas territories', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'Guantanamo Bay', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'IAI Area, Africa', 'IAI Area, Asia, without China and GCC', 'IAI Area, EU27 & EFTA', 'IAI Area, Gulf Cooperation Council', 'IAI Area, North America', 'IAI Area, North America, without Quebec', 'IAI Area, Russia & RER w/o EU27 & EFTA', 'IAI Area, South America', 'ID', 'IE', 'IL', 'IM', 'IN', 'IN-AN', 'IN-AP', 'IN-AR', 'IN-AS', 'IN-BR', 'IN-CH', 'IN-CT', 'IN-DD', 'IN-DL', 'IN-DN', 'IN-Eastern grid', 'IN-GA', 'IN-GJ', 'IN-HP', 'IN-HR', 'IN-Islands', 'IN-JH', 'IN-JK', 'IN-KA', 'IN-KL', 'IN-LD', 'IN-MH', 'IN-ML', 'IN-MN', 'IN-MP', 'IN-MZ', 'IN-NL', 'IN-North-eastern grid', 'IN-Northern grid', 'IN-OR', 'IN-PB', 'IN-PY', 'IN-RJ', 'IN-SK', 'IN-Southern grid', 'IN-TN', 'IN-TR', 'IN-UP', 'IN-UT', 'IN-WB', 'IN-Western grid', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MRO', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NAFTA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NORDEL', 'NP', 'NPCC', 'NR', 'NU', 'NZ', 'North America without Quebec', 'Northern Cyprus', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'Québec, HQ distribution network', 'RAF', 'RAS', 'RE', 'RER', 'RER w/o AT+BE+CH+DE+FR+IT', 'RER w/o CH+DE', 'RER w/o DE+NL+NO', 'RER w/o DE+NL+NO+RU', 'RER w/o DE+NL+RU', 'RER w/o RU', 'RLA', 'RME', 'RNA', 'RO', 'RS', 'RU', 'RW', 'Russia (Asia)', 'Russia (Europe)', 'SA', 'SAS', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'Scarborough Reef', 'Serranilla Bank', 'Siachen Glacier', 'Somaliland', 'Spratly Islands', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UCTE', 'UCTE without France', 'UCTE without Germany', 'UCTE without Germany and France', 'UG', 'UM', 'UN-AMERICAS', 'UN-ASIA', 'UN-AUSTRALIANZ', 'UN-CAMERICA', 'UN-CARIBBEAN', 'UN-EAFRICA', 'UN-EASIA', 'UN-EEUROPE', 'UN-EUROPE', 'UN-MAFRICA', 'UN-MELANESIA', 'UN-MICRONESIA', 'UN-NAFRICA', 'UN-NEUROPE', 'UN-OCEANIA', 'UN-POLYNESIA', 'UN-SAMERICA', 'UN-SASIA', 'UN-SEASIA', 'UN-SEUROPE', 'UN-WAFRICA', 'UN-WASIA', 'US', 'US-AK', 'US-AL', 'US-AR', 'US-ASCC', 'US-AZ', 'US-CA', 'US-CO', 'US-CT', 'US-DC', 'US-DE', 'US-FL', 'US-FRCC', 'US-GA', 'US-HI', 'US-HICC', 'US-IA', 'US-ID', 'US-IL', 'US-IN', 'US-KS', 'US-KY', 'US-LA', 'US-MA', 'US-MD', 'US-ME', 'US-MI', 'US-MN', 'US-MO', 'US-MRO', 'US-MS', 'US-MT', 'US-NC', 'US-ND', 'US-NE', 'US-NH', 'US-NJ', 'US-NM', 'US-NPCC', 'US-NV', 'US-NY', 'US-OH', 'US-OK', 'US-OR', 'US-PA', 'US-PR', 'US-RFC', 'US-RI', 'US-SC', 'US-SD', 'US-SERC', 'US-SPP', 'US-TN', 'US-TRE', 'US-TX', 'US-UT', 'US-VA', 'US-VT', 'US-WA', 'US-WECC', 'US-WI', 'US-WV', 'US-WY', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WECC', 'WEU', 'WF', 'WS', 'XK', 'YE', 'YT', 'ZA', 'ZM', 'ZW', 'GLO', None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None]\n", + "\n", + "//////////////// IMPORTING USER-DEFINED INVENTORIES ////////////////\n", + "Extracted 1 worksheets in 0.00 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "\n", + "//////////////// IMPORTING USER-DEFINED INVENTORIES ////////////////\n", + "Extracted 1 worksheets in 0.00 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "\n", + "//////////////// IMPORTING USER-DEFINED INVENTORIES ////////////////\n", + "Extracted 1 worksheets in 0.00 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "\n", + "//////////////// IMPORTING USER-DEFINED INVENTORIES ////////////////\n", + "Extracted 1 worksheets in 0.00 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "List of unlinked exchanges:\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "| Name | Reference product | Location | Categories | Unit | Type | File |\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "| treatment of wastewater, average, capacity 1E9l/year | None | Europe without Switzerland | None | cubic meter | technosphere | lci-EP2050.csv |\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "migration_38_39\n", + "List of unlinked exchanges:\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "| Name | Reference product | Location | Categories | Unit | Type | File |\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "| treatment of wastewater, average, capacity 1E9l/year | None | Europe without Switzerland | None | cubic meter | technosphere | lci-EP2050.csv |\n", + "+------------------------------------------------------+-------------------+----------------------------+------------+-------------+--------------+----------------+\n", + "Create custom markets.\n", + "Create custom markets.\n", + "Create custom markets.\n", "Create custom markets.\n", + "Cannot find -> transmission network construction, long-distance transmission network, long-distance ['CH', 'UN-EUROPE', 'RER', 'Europe without Austria', 'Europe, without Russia and Turkey', 'RER w/o RU', 'ENTSO-E', 'RER w/o DE+NL+RU', 'RER w/o DE+NL+NO+RU', 'Europe without NORDEL (NCPA)', 'UCTE', 'UCTE without France', 'UCTE without Germany', 'UCTE without Germany and France', 'WEU', 'CH', 'RER', 'Europe without Switzerland', 'RoW', 'GLO', 'AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AUS-AC', 'AUS-ACT', 'AUS-IOT', 'AUS-NSW', 'AUS-NTR', 'AUS-QNS', 'AUS-SAS', 'AUS-TSM', 'AUS-VCT', 'AUS-WAS', 'AW', 'AX', 'AZ', 'Akrotiri', 'Asia without China', 'BA', 'BALTSO', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BR-AC', 'BR-AL', 'BR-AM', 'BR-AP', 'BR-BA', 'BR-CE', 'BR-DF', 'BR-ES', 'BR-GO', 'BR-MA', 'BR-MG', 'BR-MS', 'BR-MT', 'BR-Mid-western grid', 'BR-North-eastern grid', 'BR-Northern grid', 'BR-PA', 'BR-PB', 'BR-PE', 'BR-PI', 'BR-PR', 'BR-RJ', 'BR-RN', 'BR-RO', 'BR-RR', 'BR-RS', 'BR-SC', 'BR-SE', 'BR-SP', 'BR-South-eastern grid', 'BR-Southern grid', 'BR-TO', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'Bajo Nuevo', 'CA', 'CA-AB', 'CA-BC', 'CA-MB', 'CA-NB', 'CA-NF', 'CA-NS', 'CA-NT', 'CA-NU', 'CA-ON', 'CA-PE', 'CA-QC', 'CA-SK', 'CA-YK', 'CD', 'CENTREL', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CN-AH', 'CN-BJ', 'CN-CQ', 'CN-CSG', 'CN-FJ', 'CN-GD', 'CN-GS', 'CN-GX', 'CN-GZ', 'CN-HA', 'CN-HB', 'CN-HE', 'CN-HL', 'CN-HN', 'CN-HU', 'CN-JL', 'CN-JS', 'CN-JX', 'CN-LN', 'CN-NM', 'CN-NX', 'CN-QH', 'CN-SA', 'CN-SC', 'CN-SD', 'CN-SGCC', 'CN-SH', 'CN-SX', 'CN-TJ', 'CN-XJ', 'CN-XZ', 'CN-YN', 'CN-ZJ', 'CO', 'CR', 'CS', 'CU', 'CV', 'CW', 'CY', 'CZ', 'Canada without Alberta', 'Canada without Alberta and Quebec', 'Canada without Quebec', 'Canary Islands', 'Central Asia', 'China w/o Inner Mongol', 'Clipperton Island', 'Coral Sea Islands', 'Cyprus No Mans Area', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'Dhekelia Base', 'EC', 'EE', 'EG', 'EH', 'ENTSO-E', 'ER', 'ES', 'ET', 'Europe without Austria', 'Europe without NORDEL (NCPA)', 'Europe without Switzerland', 'Europe without Switzerland and Austria', 'Europe without Switzerland and France', 'Europe, without Russia and Turkey', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'FSU', 'France, including overseas territories', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'Guantanamo Bay', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'IAI Area, Africa', 'IAI Area, Asia, without China and GCC', 'IAI Area, EU27 & EFTA', 'IAI Area, Gulf Cooperation Council', 'IAI Area, North America', 'IAI Area, North America, without Quebec', 'IAI Area, Russia & RER w/o EU27 & EFTA', 'IAI Area, South America', 'ID', 'IE', 'IL', 'IM', 'IN', 'IN-AN', 'IN-AP', 'IN-AR', 'IN-AS', 'IN-BR', 'IN-CH', 'IN-CT', 'IN-DD', 'IN-DL', 'IN-DN', 'IN-Eastern grid', 'IN-GA', 'IN-GJ', 'IN-HP', 'IN-HR', 'IN-Islands', 'IN-JH', 'IN-JK', 'IN-KA', 'IN-KL', 'IN-LD', 'IN-MH', 'IN-ML', 'IN-MN', 'IN-MP', 'IN-MZ', 'IN-NL', 'IN-North-eastern grid', 'IN-Northern grid', 'IN-OR', 'IN-PB', 'IN-PY', 'IN-RJ', 'IN-SK', 'IN-Southern grid', 'IN-TN', 'IN-TR', 'IN-UP', 'IN-UT', 'IN-WB', 'IN-Western grid', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MRO', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NAFTA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NORDEL', 'NP', 'NPCC', 'NR', 'NU', 'NZ', 'North America without Quebec', 'Northern Cyprus', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'Québec, HQ distribution network', 'RAF', 'RAS', 'RE', 'RER', 'RER w/o AT+BE+CH+DE+FR+IT', 'RER w/o CH+DE', 'RER w/o DE+NL+NO', 'RER w/o DE+NL+NO+RU', 'RER w/o DE+NL+RU', 'RER w/o RU', 'RLA', 'RME', 'RNA', 'RO', 'RS', 'RU', 'RW', 'Russia (Asia)', 'Russia (Europe)', 'SA', 'SAS', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'Scarborough Reef', 'Serranilla Bank', 'Siachen Glacier', 'Somaliland', 'Spratly Islands', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UCTE', 'UCTE without France', 'UCTE without Germany', 'UCTE without Germany and France', 'UG', 'UM', 'UN-AMERICAS', 'UN-ASIA', 'UN-AUSTRALIANZ', 'UN-CAMERICA', 'UN-CARIBBEAN', 'UN-EAFRICA', 'UN-EASIA', 'UN-EEUROPE', 'UN-EUROPE', 'UN-MAFRICA', 'UN-MELANESIA', 'UN-MICRONESIA', 'UN-NAFRICA', 'UN-NEUROPE', 'UN-OCEANIA', 'UN-POLYNESIA', 'UN-SAMERICA', 'UN-SASIA', 'UN-SEASIA', 'UN-SEUROPE', 'UN-WAFRICA', 'UN-WASIA', 'US', 'US-AK', 'US-AL', 'US-AR', 'US-ASCC', 'US-AZ', 'US-CA', 'US-CO', 'US-CT', 'US-DC', 'US-DE', 'US-FL', 'US-FRCC', 'US-GA', 'US-HI', 'US-HICC', 'US-IA', 'US-ID', 'US-IL', 'US-IN', 'US-KS', 'US-KY', 'US-LA', 'US-MA', 'US-MD', 'US-ME', 'US-MI', 'US-MN', 'US-MO', 'US-MRO', 'US-MS', 'US-MT', 'US-NC', 'US-ND', 'US-NE', 'US-NH', 'US-NJ', 'US-NM', 'US-NPCC', 'US-NV', 'US-NY', 'US-OH', 'US-OK', 'US-OR', 'US-PA', 'US-PR', 'US-RFC', 'US-RI', 'US-SC', 'US-SD', 'US-SERC', 'US-SPP', 'US-TN', 'US-TRE', 'US-TX', 'US-UT', 'US-VA', 'US-VT', 'US-WA', 'US-WECC', 'US-WI', 'US-WV', 'US-WY', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WECC', 'WEU', 'WF', 'WS', 'XK', 'YE', 'YT', 'ZA', 'ZM', 'ZW', 'GLO', None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None]\n", + "Cannot find -> transmission network construction, long-distance transmission network, long-distance ['CH', 'UN-EUROPE', 'RER', 'Europe without Austria', 'Europe, without Russia and Turkey', 'RER w/o RU', 'ENTSO-E', 'RER w/o DE+NL+RU', 'RER w/o DE+NL+NO+RU', 'Europe without NORDEL (NCPA)', 'UCTE', 'UCTE without France', 'UCTE without Germany', 'UCTE without Germany and France', 'WEU', 'CH', 'RER', 'Europe without Switzerland', 'RoW', 'GLO', 'AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AUS-AC', 'AUS-ACT', 'AUS-IOT', 'AUS-NSW', 'AUS-NTR', 'AUS-QNS', 'AUS-SAS', 'AUS-TSM', 'AUS-VCT', 'AUS-WAS', 'AW', 'AX', 'AZ', 'Akrotiri', 'Asia without China', 'BA', 'BALTSO', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BR-AC', 'BR-AL', 'BR-AM', 'BR-AP', 'BR-BA', 'BR-CE', 'BR-DF', 'BR-ES', 'BR-GO', 'BR-MA', 'BR-MG', 'BR-MS', 'BR-MT', 'BR-Mid-western grid', 'BR-North-eastern grid', 'BR-Northern grid', 'BR-PA', 'BR-PB', 'BR-PE', 'BR-PI', 'BR-PR', 'BR-RJ', 'BR-RN', 'BR-RO', 'BR-RR', 'BR-RS', 'BR-SC', 'BR-SE', 'BR-SP', 'BR-South-eastern grid', 'BR-Southern grid', 'BR-TO', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'Bajo Nuevo', 'CA', 'CA-AB', 'CA-BC', 'CA-MB', 'CA-NB', 'CA-NF', 'CA-NS', 'CA-NT', 'CA-NU', 'CA-ON', 'CA-PE', 'CA-QC', 'CA-SK', 'CA-YK', 'CD', 'CENTREL', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CN-AH', 'CN-BJ', 'CN-CQ', 'CN-CSG', 'CN-FJ', 'CN-GD', 'CN-GS', 'CN-GX', 'CN-GZ', 'CN-HA', 'CN-HB', 'CN-HE', 'CN-HL', 'CN-HN', 'CN-HU', 'CN-JL', 'CN-JS', 'CN-JX', 'CN-LN', 'CN-NM', 'CN-NX', 'CN-QH', 'CN-SA', 'CN-SC', 'CN-SD', 'CN-SGCC', 'CN-SH', 'CN-SX', 'CN-TJ', 'CN-XJ', 'CN-XZ', 'CN-YN', 'CN-ZJ', 'CO', 'CR', 'CS', 'CU', 'CV', 'CW', 'CY', 'CZ', 'Canada without Alberta', 'Canada without Alberta and Quebec', 'Canada without Quebec', 'Canary Islands', 'Central Asia', 'China w/o Inner Mongol', 'Clipperton Island', 'Coral Sea Islands', 'Cyprus No Mans Area', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'Dhekelia Base', 'EC', 'EE', 'EG', 'EH', 'ENTSO-E', 'ER', 'ES', 'ET', 'Europe without Austria', 'Europe without NORDEL (NCPA)', 'Europe without Switzerland', 'Europe without Switzerland and Austria', 'Europe without Switzerland and France', 'Europe, without Russia and Turkey', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'FSU', 'France, including overseas territories', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'Guantanamo Bay', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'IAI Area, Africa', 'IAI Area, Asia, without China and GCC', 'IAI Area, EU27 & EFTA', 'IAI Area, Gulf Cooperation Council', 'IAI Area, North America', 'IAI Area, North America, without Quebec', 'IAI Area, Russia & RER w/o EU27 & EFTA', 'IAI Area, South America', 'ID', 'IE', 'IL', 'IM', 'IN', 'IN-AN', 'IN-AP', 'IN-AR', 'IN-AS', 'IN-BR', 'IN-CH', 'IN-CT', 'IN-DD', 'IN-DL', 'IN-DN', 'IN-Eastern grid', 'IN-GA', 'IN-GJ', 'IN-HP', 'IN-HR', 'IN-Islands', 'IN-JH', 'IN-JK', 'IN-KA', 'IN-KL', 'IN-LD', 'IN-MH', 'IN-ML', 'IN-MN', 'IN-MP', 'IN-MZ', 'IN-NL', 'IN-North-eastern grid', 'IN-Northern grid', 'IN-OR', 'IN-PB', 'IN-PY', 'IN-RJ', 'IN-SK', 'IN-Southern grid', 'IN-TN', 'IN-TR', 'IN-UP', 'IN-UT', 'IN-WB', 'IN-Western grid', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MRO', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NAFTA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NORDEL', 'NP', 'NPCC', 'NR', 'NU', 'NZ', 'North America without Quebec', 'Northern Cyprus', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'Québec, HQ distribution network', 'RAF', 'RAS', 'RE', 'RER', 'RER w/o AT+BE+CH+DE+FR+IT', 'RER w/o CH+DE', 'RER w/o DE+NL+NO', 'RER w/o DE+NL+NO+RU', 'RER w/o DE+NL+RU', 'RER w/o RU', 'RLA', 'RME', 'RNA', 'RO', 'RS', 'RU', 'RW', 'Russia (Asia)', 'Russia (Europe)', 'SA', 'SAS', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'Scarborough Reef', 'Serranilla Bank', 'Siachen Glacier', 'Somaliland', 'Spratly Islands', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UCTE', 'UCTE without France', 'UCTE without Germany', 'UCTE without Germany and France', 'UG', 'UM', 'UN-AMERICAS', 'UN-ASIA', 'UN-AUSTRALIANZ', 'UN-CAMERICA', 'UN-CARIBBEAN', 'UN-EAFRICA', 'UN-EASIA', 'UN-EEUROPE', 'UN-EUROPE', 'UN-MAFRICA', 'UN-MELANESIA', 'UN-MICRONESIA', 'UN-NAFRICA', 'UN-NEUROPE', 'UN-OCEANIA', 'UN-POLYNESIA', 'UN-SAMERICA', 'UN-SASIA', 'UN-SEASIA', 'UN-SEUROPE', 'UN-WAFRICA', 'UN-WASIA', 'US', 'US-AK', 'US-AL', 'US-AR', 'US-ASCC', 'US-AZ', 'US-CA', 'US-CO', 'US-CT', 'US-DC', 'US-DE', 'US-FL', 'US-FRCC', 'US-GA', 'US-HI', 'US-HICC', 'US-IA', 'US-ID', 'US-IL', 'US-IN', 'US-KS', 'US-KY', 'US-LA', 'US-MA', 'US-MD', 'US-ME', 'US-MI', 'US-MN', 'US-MO', 'US-MRO', 'US-MS', 'US-MT', 'US-NC', 'US-ND', 'US-NE', 'US-NH', 'US-NJ', 'US-NM', 'US-NPCC', 'US-NV', 'US-NY', 'US-OH', 'US-OK', 'US-OR', 'US-PA', 'US-PR', 'US-RFC', 'US-RI', 'US-SC', 'US-SD', 'US-SERC', 'US-SPP', 'US-TN', 'US-TRE', 'US-TX', 'US-UT', 'US-VA', 'US-VT', 'US-WA', 'US-WECC', 'US-WI', 'US-WV', 'US-WY', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WECC', 'WEU', 'WF', 'WS', 'XK', 'YE', 'YT', 'ZA', 'ZM', 'ZW', 'GLO', None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None]\n", "Log file of exchanges saved under /Users/romain/GitHub/premise/premise/data/logs.\n" ] } ], "source": [ - "ndb.update_external_scenario()" + "ndb.update(\"external\")" ] }, { "cell_type": "code", - "execution_count": 33, - "id": "ab8cc0b4-a410-40de-b386-5eb74933e2c7", + "execution_count": null, + "id": "2dde9ff3-fed8-4b42-9c2d-ba71e87ca932", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Write new database(s) to Brightway2.\n", - "Prepare database 1.\n", - "- check for duplicates...\n", - "- check for values format...\n", - "- relinking exchanges...\n", - "Done!\n", - "21058 datasets\n", - "674534 exchanges\n", - "0 unlinked exchanges\n", - " \n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "Writing activities to SQLite3 database:\n", - "0% [##############################] 100% | ETA: 00:00:00\n", - "Total time elapsed: 00:00:22\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Title: Writing activities to SQLite3 database:\n", - " Started: 10/24/2022 17:29:31\n", - " Finished: 10/24/2022 17:29:53\n", - " Total time elapsed: 00:00:22\n", - " CPU %: 86.60\n", - " Memory %: 10.14\n", - "Created database: ecoinvent_image_SSP2-Base_2040\n" - ] - } - ], + "outputs": [], "source": [ "ndb.write_db_to_brightway()" ] @@ -585,8 +762,12 @@ " ]\n", ")\n", "\n", - "ndb.update_electricity()\n", - "ndb.update_external_scenario()" + "ndb.update(\n", + " [\n", + " \"electricity\",\n", + " \"external\"\n", + " ]\n", + ")" ] }, { @@ -623,7 +804,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.12" + "version": "3.10.13" } }, "nbformat": 4, diff --git a/examples/.ipynb_checkpoints/examples-checkpoint.ipynb b/examples/.ipynb_checkpoints/examples-checkpoint.ipynb index 2a5f2acb..3c7e5430 100644 --- a/examples/.ipynb_checkpoints/examples-checkpoint.ipynb +++ b/examples/.ipynb_checkpoints/examples-checkpoint.ipynb @@ -179,7 +179,7 @@ "metadata": {}, "outputs": [], "source": [ - "ndb.update_electricity()" + "ndb.update(\"electricity\")" ] }, { @@ -240,15 +240,6 @@ ")" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "ndb.update_all()" - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -264,14 +255,14 @@ "metadata": {}, "outputs": [], "source": [ - "ndb.update_electricity()" + "ndb.update(\"electricity\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ - "Or you can proceed instead to doing all the transformations available (minus any transformation you have listed in `exclude`), like so:" + "Or you can proceed instead to doing all the sectoral transformations available, like so:" ] }, { @@ -280,7 +271,7 @@ "metadata": {}, "outputs": [], "source": [ - "ndb.update_all()" + "ndb.update() # <- updates all sectors" ] }, { @@ -443,45 +434,36 @@ "\n", "These functions modify the extracted database:\n", "\n", - "* **update_electricity()**: alignment of regional electricity production mixes as well as efficiencies for a number of electricity production technologies, including Carbon Capture and Storage technologies and photovoltaic panels. Also updated the natural gas extraction datasets.\n", + "* **update(\"electricity\")**: alignment of regional electricity production mixes as well as efficiencies for a number of electricity production technologies, including Carbon Capture and Storage technologies and photovoltaic panels. Also updated the natural gas extraction datasets.\n", "\n", - "* **update_cement()**: adjustment of technologies for cement production (dry, semi-dry, wet, with pre-heater or not), fuel efficiency of kilns, fuel mix of kilns (including biomass and waste fuels).\n", + "* **update(\"cement\")**: adjustment of technologies for cement production (dry, semi-dry, wet, with pre-heater or not), fuel efficiency of kilns, fuel mix of kilns (including biomass and waste fuels).\n", "\n", - "* **update_steel()**: adjustment of process efficiency, fuel mix and share of secondary steel in steel markets.\n", + "* **update(\"steel\")**: adjustment of process efficiency, fuel mix and share of secondary steel in steel markets.\n", "\n", - "* **update_dac()**: creates region- and scenario-specific inventories for DAC and DACCS systems. Applies a learning rate on energy and infrastructure needs if the IAM provides the variable.\n", + "* **update(\"dac\")**: creates region- and scenario-specific inventories for DAC and DACCS systems. Applies a learning rate on energy and infrastructure needs if the IAM provides the variable.\n", "\n", - "* **update_fuels()**: creates regional markets for liquid and gaseous fuels and relinks fuel-conusming activities to them.\n", + "* **update(\"fuels\")**: creates regional markets for liquid and gaseous fuels and relinks fuel-conusming activities to them.\n", "\n", - "* **update_heat()**: creates regionalized versions of heat and steam production datasets and relink them to heat-consuming activities.\n", + "* **update(\"heat\")**: creates regionalized versions of heat and steam production datasets and relink them to heat-consuming activities.\n", "\n", - "* **update_emissions()**: adjusts emission of local air pollutants according to GAINS projections.\n", + "* **update(\"emissions\")**: adjusts emission of local air pollutants according to GAINS projections.\n", "\n", - "* **update_cars()**: creates updated inventories for fleet average passenger cars and links back to activities that consume transport.\n", + "* **update(\"cars\")**: creates updated inventories for fleet average passenger cars and links back to activities that consume transport.\n", "\n", - "* **update_trucks()**: creates updated inventories for fleet average lorry trucks and links back to activities that consume transport.\n", + "* **update(\"trucks\")**: creates updated inventories for fleet average lorry trucks and links back to activities that consume transport.\n", "\n", - "* **update_two_wheelers()**: create inventories for two-wheelers.\n", + "* **update(\"two_wheelers\")**: create inventories for two-wheelers.\n", "\n", - "* **update_buses()**: create inventories for buses.\n", + "* **update(\"buses\")**: create inventories for buses.\n", "\n", "A look at the documentation is advised.\n", "\n", "\n", - "These functions can be applied *separately*, *consecutively* or *altogether* (using instead **.update_all()**).\n", + "These functions can be applied *separately*, *consecutively* or *altogether* (using instead **.update()** without arguments).\n", "\n", "They will apply to all the scenario-specific databases listed in `scenarios`." ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "ndb.update_all()" - ] - }, { "cell_type": "code", "execution_count": null, @@ -516,7 +498,7 @@ "metadata": {}, "outputs": [], "source": [ - "ndb.update_all()" + "ndb.update()" ] }, { @@ -544,34 +526,6 @@ "ndb.write_db_to_brightway(name=[\"my_custom_name_1\", \"my_custom_name_2\"])" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Exclude specific functions\n", - "Finally, we can exclude some transformation functions when executing `update_all()` like so:" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "ndb = NewDatabase(\n", - " scenarios=[\n", - " {\"model\":\"remind\", \"pathway\":\"SSP2-Base\", \"year\":2030,\n", - " \"exclude\": [\"update_steel\"], # <-- do not execute update_seel()\n", - " \"passenger cars\": {\"regions\":[\"EUR\"]},\"trucks\": {\"regions\":[\"EUR\"]}\n", - " },\n", - " {\"model\":\"remind\", \"pathway\":\"SSP2-Base\", \"year\":2030,},\n", - " ],\n", - " key='xxxxxxxxxxxxxxxxxxxxxxxxx',\n", - " source_db=\"ecoinvent 3.7 cutoff\",\n", - " source_version=\"3.7\", \n", - ")" - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -752,6 +706,22 @@ "ndb.write_db_to_simapro(filepath=r\"C:/Users/sacchi_r/Downloads/exported_simapro_file\")" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### As a SimaPro CSV file for OpenLCA" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "ndb.write_db_to_olca(filepath=r\"C:/Users/sacchi_r/Downloads/exported_simapro_file\")" + ] + }, { "cell_type": "markdown", "metadata": {}, diff --git a/examples/Untitled.ipynb b/examples/Untitled.ipynb deleted file mode 100644 index 0e24f98b..00000000 --- a/examples/Untitled.ipynb +++ /dev/null @@ -1,317 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": 1, - "id": "9e048f01-bc32-4580-93d3-66c8e239e2f0", - "metadata": {}, - "outputs": [], - "source": [ - "import pandas as pd" - ] - }, - { - "cell_type": "code", - "execution_count": 41, - "id": "7fecc25c-a577-4c31-810e-480633b1fc0b", - "metadata": {}, - "outputs": [], - "source": [ - "fp = \"/Users/romain/GitHub/premise/premise/iam_variables_mapping/fuels_variables.yaml\"" - ] - }, - { - "cell_type": "code", - "execution_count": 42, - "id": "bb5fab96-391c-4d7c-93da-ebf886c4a5be", - "metadata": {}, - "outputs": [], - "source": [ - "import pandas as pd\n", - "from yaml import safe_load\n", - "\n", - "with open(fp, 'r') as f:\n", - " d = safe_load(f)" - ] - }, - { - "cell_type": "code", - "execution_count": 43, - "id": "57301df6-2646-482e-9bda-1c773a6e6a3e", - "metadata": {}, - "outputs": [], - "source": [ - "df = df.from_dict(d).T" - ] - }, - { - "cell_type": "code", - "execution_count": 44, - "id": "ee132331-1e64-4431-a7c3-9051d498d1d9", - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
lhvbiogenic_shareco2ecoinvent_aliasesiam_aliaseseff_aliasesecoinvent_fuels_aliases
electricity3.60.0NaNNaNNaNNaNNaN
hard coal26.700.098{'fltr': ['market for hard coal', 'market for ...NaNNaNNaN
pulverised lignite100.098{'fltr': {'name': ['market for pulverised lign...NaNNaNNaN
lignite11.200.101{'fltr': ['market for lignite'], 'mask': {'nam...NaNNaNNaN
petroleum coke31.300.0975{'fltr': ['market for petroleum coke']}NaNNaNNaN
........................
kerosene, synthetic, from natural gas, economic allocation4300.0715{'fltr': ['Kerosene, synthetic, from natural g...NaNNaNNaN
kerosene, synthetic, from biomethane, energy allocation4310.0715{'fltr': ['Kerosene, synthetic, from biomethan...NaNNaNNaN
kerosene, synthetic, from biomethane, economic allocation4310.0715{'fltr': ['Kerosene, synthetic, from biomethan...NaNNaNNaN
kerosene, synthetic, from biomass, energy allocation4310.0715{'fltr': ['Kerosene, synthetic, from biomass-b...NaNNaNNaN
kerosene, synthetic, from biomass, economic allocation4310.0715{'fltr': ['Kerosene, synthetic, from biomass-b...NaNNaNNaN
\n", - "

132 rows × 7 columns

\n", - "
" - ], - "text/plain": [ - " lhv biogenic_share \\\n", - "electricity 3.6 0.0 \n", - "hard coal 26.7 0 \n", - "pulverised lignite 1 0 \n", - "lignite 11.2 0 \n", - "petroleum coke 31.3 0 \n", - "... ... ... \n", - "kerosene, synthetic, from natural gas, economic... 43 0 \n", - "kerosene, synthetic, from biomethane, energy al... 43 1 \n", - "kerosene, synthetic, from biomethane, economic ... 43 1 \n", - "kerosene, synthetic, from biomass, energy alloc... 43 1 \n", - "kerosene, synthetic, from biomass, economic all... 43 1 \n", - "\n", - " co2 \\\n", - "electricity NaN \n", - "hard coal 0.098 \n", - "pulverised lignite 0.098 \n", - "lignite 0.101 \n", - "petroleum coke 0.0975 \n", - "... ... \n", - "kerosene, synthetic, from natural gas, economic... 0.0715 \n", - "kerosene, synthetic, from biomethane, energy al... 0.0715 \n", - "kerosene, synthetic, from biomethane, economic ... 0.0715 \n", - "kerosene, synthetic, from biomass, energy alloc... 0.0715 \n", - "kerosene, synthetic, from biomass, economic all... 0.0715 \n", - "\n", - " ecoinvent_aliases \\\n", - "electricity NaN \n", - "hard coal {'fltr': ['market for hard coal', 'market for ... \n", - "pulverised lignite {'fltr': {'name': ['market for pulverised lign... \n", - "lignite {'fltr': ['market for lignite'], 'mask': {'nam... \n", - "petroleum coke {'fltr': ['market for petroleum coke']} \n", - "... ... \n", - "kerosene, synthetic, from natural gas, economic... {'fltr': ['Kerosene, synthetic, from natural g... \n", - "kerosene, synthetic, from biomethane, energy al... {'fltr': ['Kerosene, synthetic, from biomethan... \n", - "kerosene, synthetic, from biomethane, economic ... {'fltr': ['Kerosene, synthetic, from biomethan... \n", - "kerosene, synthetic, from biomass, energy alloc... {'fltr': ['Kerosene, synthetic, from biomass-b... \n", - "kerosene, synthetic, from biomass, economic all... {'fltr': ['Kerosene, synthetic, from biomass-b... \n", - "\n", - " iam_aliases eff_aliases \\\n", - "electricity NaN NaN \n", - "hard coal NaN NaN \n", - "pulverised lignite NaN NaN \n", - "lignite NaN NaN \n", - "petroleum coke NaN NaN \n", - "... ... ... \n", - "kerosene, synthetic, from natural gas, economic... NaN NaN \n", - "kerosene, synthetic, from biomethane, energy al... NaN NaN \n", - "kerosene, synthetic, from biomethane, economic ... NaN NaN \n", - "kerosene, synthetic, from biomass, energy alloc... NaN NaN \n", - "kerosene, synthetic, from biomass, economic all... NaN NaN \n", - "\n", - " ecoinvent_fuels_aliases \n", - "electricity NaN \n", - "hard coal NaN \n", - "pulverised lignite NaN \n", - "lignite NaN \n", - "petroleum coke NaN \n", - "... ... \n", - "kerosene, synthetic, from natural gas, economic... NaN \n", - "kerosene, synthetic, from biomethane, energy al... NaN \n", - "kerosene, synthetic, from biomethane, economic ... NaN \n", - "kerosene, synthetic, from biomass, energy alloc... NaN \n", - "kerosene, synthetic, from biomass, economic all... NaN \n", - "\n", - "[132 rows x 7 columns]" - ] - }, - "execution_count": 44, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "df" - ] - }, - { - "cell_type": "code", - "execution_count": 48, - "id": "7d5537a2-3b87-4871-8e1a-2bce4d3d6ff8", - "metadata": {}, - "outputs": [], - "source": [ - "df[\"eff_aliases\"].apply(lambda x: x.get(\"remind\") if isinstance(x, dict) else None).to_excel(\"fuels_remind_eff.xlsx\")" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "1e927ca6-7e63-479d-a073-02c257835691", - "metadata": {}, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3 (ipykernel)", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.9.12" - } - }, - "nbformat": 4, - "nbformat_minor": 5 -} diff --git a/examples/examples user-defined scenarios.ipynb b/examples/examples user-defined scenarios.ipynb index 321c0670..4195e8d7 100644 --- a/examples/examples user-defined scenarios.ipynb +++ b/examples/examples user-defined scenarios.ipynb @@ -719,7 +719,7 @@ } ], "source": [ - "ndb.update_external_scenario()" + "ndb.update(\"external\")" ] }, { @@ -732,318 +732,6 @@ "ndb.write_db_to_brightway()" ] }, - { - "cell_type": "code", - "execution_count": 10, - "id": "c161e023-b75e-4bff-a5c5-c7417624f1c3", - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "{'uncertainty type': 0, 'amount': 4.97139797067708e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 6.66110007591179e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.00195466367896e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.13137946638678e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 8.33e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.87858208538633e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.13960234729285e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 0.000219550075103395, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.78838182111792e-05, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 0.001411378971539, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.69186630500065e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 4.48198562798413e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.50465300399646e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.22809638066083e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.77727947742457e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.17738182080901e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 6.77012621662554e-09, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.18632556663983e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 3.01389920784241e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.13960234729306e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 4.39649974438056e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 3.70037064584203e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 3.0730171743384e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.52837663476523e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 0.000146375546769491, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 8.80232558257162e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.30037968064585e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.45332843963331e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.11718012221951e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 0.000146375546769491, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.3165709026587e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.61421687288169e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.24324398102041e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 0.000101467274822845, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.17847807950963e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'loc': 1.0, 'amount': 1.0, 'type': 'production', 'production volume': 93067877.3979295, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.9998105660065e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.17107833341148e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.2189344128432e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.87462796302932e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 3.71629527641209e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.14800925988253e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.13426397720579e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.4755079585806e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 0.000219550075103395, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.73371046068467e-05, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 8.80232558257162e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 3.37927386307114e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.0936816454001e-05, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 7.81131717883842e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.07300551804576e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.51581e-05, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.45332843963331e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.73372803537165e-05, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 9.77912360826704e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.35154100369748e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 4.48134878860112e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 4.92000888926752e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.91169491177562e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 3.27538972270745e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.69029247587972e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 6.06e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 3.91740334390977e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 9.30851625811558e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.45216495133657e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.06015020688854e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.78838182111792e-05, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.47583961204304e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 8e-09, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 6.452e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 6.77012621662554e-09, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.17352173265493e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.57991162809794e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.22464199592222e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 720.0, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.11718012221951e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.07200737327686e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.13137946638678e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.80778269428434e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 4.42e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 0.000101467274822845, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.13377106461364e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 7.33317035728128e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.68124295843437e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 9.55660374161851e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 0.03, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 3.48186647605591e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 0.00833, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.68931840810455e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 9.7691143108523e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.31137883522991e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.226953965423e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.44304670590368e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 4.13028589168268e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.97328482063747e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.33005635506115e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.43498465152826e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.06626804134707e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.30013505681504e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 6.28325988628412e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 3.91961364443657e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.45081409971781e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 3.22906788260462e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 9.31476033931441e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.22038507780551e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.65461751132896e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 720.0, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 9.61980524600463e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 8e-09, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 6.66110007591179e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 8.4e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.87462796302932e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.6802741056403e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.50499120846064e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 6.69730805599634e-09, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.52256214948024e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.73320268295586e-05, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.13426397720579e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 3.11780372140779e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.22809638066083e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 3.12675548246025e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.34626830811777e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.15025955050569e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 8.4e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 7.81131717883842e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.87706770628306e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.69089133027225e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 9.30851625811558e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.11660430182845e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 3.3827362196436e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.1336323043355e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.77727947742457e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 9.26e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.80983519158102e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 4.97139797067708e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 4.79701595374221e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.07768476833585e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.9198879648288e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 3.22906788260462e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.4622656486795e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.22038507780551e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.90467641763207e-05, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.226953965423e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.35154100369748e-06, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 1.33005635506115e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.20931018585242e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.87680418197681e-07, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'uncertainty type': 0, 'amount': 2.30037968064585e-08, 'type': 'technosphere', 'production volume': 0.0, 'product': 'cobalt', 'name': 'market for cobalt', 'unit': 'kilogram', 'location': 'GLO', 'database': 'ecoinvent 3.8 cutoff'}\n", - "{'name': 'market for cobalt', 'amount': 0.00144, 'database': 'cutoff38', 'location': 'GLO', 'unit': 'kilogram', 'type': 'technosphere', 'reference product': 'cobalt', 'product': 'cobalt'}\n" - ] - } - ], - "source": [ - "for ds in ndb.scenarios[0][\"database\"]:\n", - " for e in ds[\"exchanges\"]:\n", - " if e[\"name\"] == \"market for cobalt\" and e.get(\"product\") == \"cobalt\":\n", - " print(e)" - ] - }, - { - "cell_type": "code", - "execution_count": 12, - "id": "fff6e8d2-c0a0-483c-acde-884faa659acf", - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "array(['Production|Almond',\n", - " 'Production|Baking|Bread|Activated Dough Development',\n", - " 'Production|Baking|Bread|Breadcrumbs',\n", - " 'Production|Baking|Bread|Delayed Salt Method',\n", - " 'Production|Baking|Bread|Straight Dough Method',\n", - " 'Production|Banana', 'Production|Copper|Cake'], dtype=object)" - ] - }, - "execution_count": 12, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "ndb.scenarios[0][\"external data\"][0][\"production volume\"].variables.values" - ] - }, - { - "cell_type": "code", - "execution_count": 11, - "id": "fa9f7dc9-7800-4fe9-8b8d-a30bc985e8ce", - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "carbon dioxide, captured from atmosphere, with a solvent-based direct air capture system, 1MtCO2 carbon dioxide, captured from atmosphere\n", - "carbon dioxide, captured from atmosphere and stored, with a solvent-based direct air capture system, 1MtCO2 carbon dioxide, captured from atmosphere\n", - "carbon dioxide, captured from atmosphere, with a sorbent-based direct air capture system, 100ktCO2 carbon dioxide, captured from atmosphere\n", - "carbon dioxide, captured from atmosphere and stored, with a sorbent-based direct air capture system, 100ktCO2 carbon dioxide, captured from atmosphere\n" - ] - } - ], - "source": [ - "for ds in ndb.database:\n", - " if ds[\"name\"].startswith(\"carbon dioxide, captured from atmos\"):\n", - " print(ds[\"name\"], ds[\"reference product\"])" - ] - }, - { - "cell_type": "code", - "execution_count": 10, - "id": "e186d955-26d0-4827-9364-8321c573b9dc", - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "['kilowatt hour',\n", - " 'megajoule',\n", - " 'kilogram',\n", - " 'unit',\n", - " 'cubic meter',\n", - " 'ton kilometer',\n", - " 'hectare',\n", - " 'kilo Becquerel',\n", - " 'square meter',\n", - " 'square meter-year',\n", - " 'hour',\n", - " 'kilometer',\n", - " 'meter',\n", - " 'kg*day',\n", - " 'meter-year',\n", - " 'cubic meter-year',\n", - " 'person kilometer',\n", - " 'litre',\n", - " 'guest night',\n", - " 'kilometer-year']" - ] - }, - "execution_count": 10, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "units = []\n", - "for ds in ndb.database:\n", - " for e in ds[\"exchanges\"]:\n", - " if e[\"unit\"] not in units:\n", - " units.append(e[\"unit\"])\n", - "units" - ] - }, - { - "cell_type": "code", - "execution_count": 33, - "id": "ab8cc0b4-a410-40de-b386-5eb74933e2c7", - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Write new database(s) to Brightway2.\n", - "Prepare database 1.\n", - "- check for duplicates...\n", - "- check for values format...\n", - "- relinking exchanges...\n", - "Done!\n", - "21058 datasets\n", - "674534 exchanges\n", - "0 unlinked exchanges\n", - " \n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "Writing activities to SQLite3 database:\n", - "0% [##############################] 100% | ETA: 00:00:00\n", - "Total time elapsed: 00:00:22\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Title: Writing activities to SQLite3 database:\n", - " Started: 10/24/2022 17:29:31\n", - " Finished: 10/24/2022 17:29:53\n", - " Total time elapsed: 00:00:22\n", - " CPU %: 86.60\n", - " Memory %: 10.14\n", - "Created database: ecoinvent_image_SSP2-Base_2040\n" - ] - } - ], - "source": [ - "ndb.write_db_to_brightway()" - ] - }, { "cell_type": "markdown", "id": "37d05dd0-e5a1-4ff5-a91c-8c9c342da322", @@ -1074,8 +762,12 @@ " ]\n", ")\n", "\n", - "ndb.update_electricity()\n", - "ndb.update_external_scenario()" + "ndb.update(\n", + " [\n", + " \"electricity\",\n", + " \"external\"\n", + " ]\n", + ")" ] }, { @@ -1112,7 +804,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.12" + "version": "3.10.13" } }, "nbformat": 4, diff --git a/examples/examples.ipynb b/examples/examples.ipynb index 2a5f2acb..3c7e5430 100644 --- a/examples/examples.ipynb +++ b/examples/examples.ipynb @@ -179,7 +179,7 @@ "metadata": {}, "outputs": [], "source": [ - "ndb.update_electricity()" + "ndb.update(\"electricity\")" ] }, { @@ -240,15 +240,6 @@ ")" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "ndb.update_all()" - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -264,14 +255,14 @@ "metadata": {}, "outputs": [], "source": [ - "ndb.update_electricity()" + "ndb.update(\"electricity\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ - "Or you can proceed instead to doing all the transformations available (minus any transformation you have listed in `exclude`), like so:" + "Or you can proceed instead to doing all the sectoral transformations available, like so:" ] }, { @@ -280,7 +271,7 @@ "metadata": {}, "outputs": [], "source": [ - "ndb.update_all()" + "ndb.update() # <- updates all sectors" ] }, { @@ -443,45 +434,36 @@ "\n", "These functions modify the extracted database:\n", "\n", - "* **update_electricity()**: alignment of regional electricity production mixes as well as efficiencies for a number of electricity production technologies, including Carbon Capture and Storage technologies and photovoltaic panels. Also updated the natural gas extraction datasets.\n", + "* **update(\"electricity\")**: alignment of regional electricity production mixes as well as efficiencies for a number of electricity production technologies, including Carbon Capture and Storage technologies and photovoltaic panels. Also updated the natural gas extraction datasets.\n", "\n", - "* **update_cement()**: adjustment of technologies for cement production (dry, semi-dry, wet, with pre-heater or not), fuel efficiency of kilns, fuel mix of kilns (including biomass and waste fuels).\n", + "* **update(\"cement\")**: adjustment of technologies for cement production (dry, semi-dry, wet, with pre-heater or not), fuel efficiency of kilns, fuel mix of kilns (including biomass and waste fuels).\n", "\n", - "* **update_steel()**: adjustment of process efficiency, fuel mix and share of secondary steel in steel markets.\n", + "* **update(\"steel\")**: adjustment of process efficiency, fuel mix and share of secondary steel in steel markets.\n", "\n", - "* **update_dac()**: creates region- and scenario-specific inventories for DAC and DACCS systems. Applies a learning rate on energy and infrastructure needs if the IAM provides the variable.\n", + "* **update(\"dac\")**: creates region- and scenario-specific inventories for DAC and DACCS systems. Applies a learning rate on energy and infrastructure needs if the IAM provides the variable.\n", "\n", - "* **update_fuels()**: creates regional markets for liquid and gaseous fuels and relinks fuel-conusming activities to them.\n", + "* **update(\"fuels\")**: creates regional markets for liquid and gaseous fuels and relinks fuel-conusming activities to them.\n", "\n", - "* **update_heat()**: creates regionalized versions of heat and steam production datasets and relink them to heat-consuming activities.\n", + "* **update(\"heat\")**: creates regionalized versions of heat and steam production datasets and relink them to heat-consuming activities.\n", "\n", - "* **update_emissions()**: adjusts emission of local air pollutants according to GAINS projections.\n", + "* **update(\"emissions\")**: adjusts emission of local air pollutants according to GAINS projections.\n", "\n", - "* **update_cars()**: creates updated inventories for fleet average passenger cars and links back to activities that consume transport.\n", + "* **update(\"cars\")**: creates updated inventories for fleet average passenger cars and links back to activities that consume transport.\n", "\n", - "* **update_trucks()**: creates updated inventories for fleet average lorry trucks and links back to activities that consume transport.\n", + "* **update(\"trucks\")**: creates updated inventories for fleet average lorry trucks and links back to activities that consume transport.\n", "\n", - "* **update_two_wheelers()**: create inventories for two-wheelers.\n", + "* **update(\"two_wheelers\")**: create inventories for two-wheelers.\n", "\n", - "* **update_buses()**: create inventories for buses.\n", + "* **update(\"buses\")**: create inventories for buses.\n", "\n", "A look at the documentation is advised.\n", "\n", "\n", - "These functions can be applied *separately*, *consecutively* or *altogether* (using instead **.update_all()**).\n", + "These functions can be applied *separately*, *consecutively* or *altogether* (using instead **.update()** without arguments).\n", "\n", "They will apply to all the scenario-specific databases listed in `scenarios`." ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "ndb.update_all()" - ] - }, { "cell_type": "code", "execution_count": null, @@ -516,7 +498,7 @@ "metadata": {}, "outputs": [], "source": [ - "ndb.update_all()" + "ndb.update()" ] }, { @@ -544,34 +526,6 @@ "ndb.write_db_to_brightway(name=[\"my_custom_name_1\", \"my_custom_name_2\"])" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Exclude specific functions\n", - "Finally, we can exclude some transformation functions when executing `update_all()` like so:" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "ndb = NewDatabase(\n", - " scenarios=[\n", - " {\"model\":\"remind\", \"pathway\":\"SSP2-Base\", \"year\":2030,\n", - " \"exclude\": [\"update_steel\"], # <-- do not execute update_seel()\n", - " \"passenger cars\": {\"regions\":[\"EUR\"]},\"trucks\": {\"regions\":[\"EUR\"]}\n", - " },\n", - " {\"model\":\"remind\", \"pathway\":\"SSP2-Base\", \"year\":2030,},\n", - " ],\n", - " key='xxxxxxxxxxxxxxxxxxxxxxxxx',\n", - " source_db=\"ecoinvent 3.7 cutoff\",\n", - " source_version=\"3.7\", \n", - ")" - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -752,6 +706,22 @@ "ndb.write_db_to_simapro(filepath=r\"C:/Users/sacchi_r/Downloads/exported_simapro_file\")" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### As a SimaPro CSV file for OpenLCA" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "ndb.write_db_to_olca(filepath=r\"C:/Users/sacchi_r/Downloads/exported_simapro_file\")" + ] + }, { "cell_type": "markdown", "metadata": {},