Skip to content

Commit

Permalink
Added Waste CHP LCI
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi authored and romainsacchi committed Jul 17, 2024
1 parent 89f1695 commit 8f8ba94
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 77 deletions.
119 changes: 42 additions & 77 deletions dev/Untitled.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -602,31 +602,30 @@
},
{
"cell_type": "code",
"execution_count": 32,
"execution_count": 18,
"id": "413b5a4c-60da-46eb-8f1d-d12bfc7cc158",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Extracted 1 worksheets in 2.93 seconds\n"
"Extracted 4 worksheets in 0.18 seconds\n"
]
}
],
"source": [
"from bw2io import ExcelImporter\n",
"import bw2data\n",
"\n",
"bw2data.projects.set_current(\"new4\")\n",
"fp = \"/Users/romain/GitHub/premise/premise/data/additional_inventories/lci-pass_cars.xlsx\"\n",
"bw2data.projects.set_current(\"ei310\")\n",
"fp = \"/Users/romain/Github/premise/premise/data/additional_inventories/lci-waste-CHP.xlsx\"\n",
"\n",
"i = ExcelImporter(fp)"
]
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": 19,
"id": "68adf5cc-b1ff-48a6-ada7-e43775e482c4",
"metadata": {},
"outputs": [
Expand All @@ -650,7 +649,7 @@
"Applying strategy: drop_falsey_uncertainty_fields_but_keep_zeros\n",
"Applying strategy: convert_uncertainty_types_to_integers\n",
"Applying strategy: convert_activity_parameters_to_list\n",
"Applied 16 strategies in 4.48 seconds\n"
"Applied 16 strategies in 2.81 seconds\n"
]
}
],
Expand All @@ -660,36 +659,7 @@
},
{
"cell_type": "code",
"execution_count": 34,
"id": "61b871c9-57ea-401f-9154-a6b363f8e42e",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Databases dictionary with 8 object(s):\n",
"\tbiosphere3\n",
"\tecoinvent 3.6 cutoff\n",
"\tecoinvent 3.7 cutoff\n",
"\tecoinvent 3.8 cutoff\n",
"\ttest\n",
"\ttest1\n",
"\ttest2\n",
"\ttest_super"
]
},
"execution_count": 34,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"bw2data.databases"
]
},
{
"cell_type": "code",
"execution_count": 35,
"execution_count": 20,
"id": "ec27b7e0-e307-4bb7-8e5a-74925c507524",
"metadata": {},
"outputs": [
Expand All @@ -705,33 +675,34 @@
],
"source": [
"i.match_database(fields=[\"name\", \"reference product\", \"location\"])\n",
"i.match_database(\"ecoinvent 3.7 cutoff\", fields=[\"name\", \"reference product\", \"location\"])\n",
"i.match_database(\"biosphere3\", fields=[\"name\", \"categories\",])"
"i.match_database(\"ecoinvent-3.10-cutoff\", fields=[\"name\", \"reference product\", \"location\"])\n",
"i.match_database(\"ecoinvent-3.10-biosphere\", fields=[\"name\", \"categories\",])"
]
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": 21,
"id": "1e8110ad-bdbf-4ece-8b7c-0e7a0f8ecab6",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1237 datasets\n",
"63244 exchanges\n",
"1135 unlinked exchanges\n",
" Type technosphere: 4 unique unlinked exchanges\n"
"84 datasets\n",
"2245 exchanges\n",
"38 unlinked exchanges\n",
" Type production: 1 unique unlinked exchanges\n",
" Type technosphere: 1 unique unlinked exchanges\n"
]
},
{
"data": {
"text/plain": [
"(1237, 63244, 1135)"
"(84, 2245, 38)"
]
},
"execution_count": 36,
"execution_count": 21,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -742,48 +713,42 @@
},
{
"cell_type": "code",
"execution_count": 37,
"execution_count": 22,
"id": "3faabc32-91a3-4176-b031-f2e06bdb7398",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[{'name': 'carbon fiber production, weaved, at factory',\n",
" 'amount': 0.7444,\n",
" 'database': 'lci-pass_cars',\n",
"[{'name': 'carbon dioxide storage at wood burning power plant 20 MW post, pipeline 200km, storage 1000m',\n",
" 'amount': 0.823,\n",
" 'location': 'RER',\n",
" 'unit': 'kilogram',\n",
" 'type': 'technosphere',\n",
" 'reference product': 'carbon fiber, weaved',\n",
" 'tag': 'other'},\n",
" {'name': 'battery management system production, for Li-ion battery',\n",
" 'amount': 1.503662197533686,\n",
" 'database': 'lci-pass_cars',\n",
" 'location': 'GLO',\n",
" 'unit': 'kilogram',\n",
" 'type': 'technosphere',\n",
" 'reference product': 'battery management system, for Li-ion battery',\n",
" 'tag': 'energy storage'},\n",
" {'name': 'battery cell production, Li-ion, NMC622',\n",
" 'amount': 1.503662197533686,\n",
" 'database': 'lci-pass_cars',\n",
" 'location': 'GLO',\n",
" 'unit': 'kilogram',\n",
" 'type': 'technosphere',\n",
" 'reference product': 'battery cell',\n",
" 'tag': 'energy storage'},\n",
" {'name': 'fuel cell system assembly, 1 kWe, proton exchange membrane (PEM)',\n",
" 'amount': 62.23278227099633,\n",
" 'database': 'lci-pass_cars',\n",
" 'location': 'GLO',\n",
" 'unit': 'unit',\n",
" 'type': 'technosphere',\n",
" 'reference product': 'fuel cell system, 1 kWe, proton exchange membrane (PEM)',\n",
" 'tag': 'energy storage'}]"
" 'reference product': 'carbon dioxide storage at wood burning power plant 20 MW post, pipeline 200km, storage 1000m',\n",
" 'normalization': 1000,\n",
" 'uncertainty type': 2,\n",
" 'loc': -0.1947990783050673,\n",
" 'u1': 1,\n",
" 'u2': 1,\n",
" 'u3': 1,\n",
" 'u4': 1.02,\n",
" 'u5': 1.2,\n",
" 'u6': 1,\n",
" 'ub': 3,\n",
" 'scale': 0.5569071410325479},\n",
" {'name': 'municipal waste incineration, at co-generation MSWI-fired power plant, with semi-dry air pollution control, without flue gas condensation, with electricity recovery only',\n",
" 'amount': 1,\n",
" 'location': 'RER',\n",
" 'unit': 'kilowatt hour',\n",
" 'type': 'production',\n",
" 'reference product': 'electricity, medium voltage',\n",
" 'normalization': 739,\n",
" 'allocation': 1,\n",
" 'uncertainty type': 0}]"
]
},
"execution_count": 37,
"execution_count": 22,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
Binary file not shown.

0 comments on commit 8f8ba94

Please sign in to comment.