Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
df6d004
World Bank data for Exiobase 2.0
bixiou May 2, 2018
7a78828
Correct errors in data and adds PPP conversion factors
bixiou May 3, 2018
f17fed1
Corrected two country codes and added the link to download the data
bixiou May 4, 2018
3accd35
0.4.0: add iofunctions
bixiou Jul 25, 2018
9598f7d
add THEMIS
bixiou Jul 26, 2018
97b31bf
THEMIS: faster EROI calculation + bug correction
bixiou Jul 26, 2018
e0d0b1b
add Cecilia
bixiou Jul 26, 2018
78b7e35
add illustrative notebook for EROIs
bixiou Jul 26, 2018
cda8cdb
improve notebook
bixiou Jul 27, 2018
fde6626
minor correction
bixiou Jul 27, 2018
e9cb483
intro and tuning notebook
bixiou Jul 27, 2018
dab9e00
tuning notebook
bixiou Jul 27, 2018
3506f68
Add Greenpeace (=dlr)
bixiou Aug 1, 2018
b7583e0
Improved notebook
bixiou Aug 1, 2018
3da28e3
tuning notebook
bixiou Aug 1, 2018
d0784bb
tuning notebook
bixiou Aug 1, 2018
66bd75e
tuning notebook
bixiou Aug 1, 2018
f0c34bb
tuning notebook
bixiou Aug 1, 2018
ffd7074
tuning notebook
bixiou Aug 1, 2018
add6cde
tuning notebook
bixiou Aug 1, 2018
427c0d6
tuning notebook
bixiou Aug 1, 2018
a758053
corrected typo in notebook
bixiou Sep 1, 2018
21540af
added Greenpeace to notebook
bixiou Sep 2, 2018
3cfa733
tuning notebook
bixiou Sep 2, 2018
37f185c
tuning notebook
bixiou Sep 3, 2018
39e5d11
Add energy_requirements and factor_elec in EROI
bixiou Oct 3, 2018
f266c9d
Include REF and ADV scenarios, corrected bugs, added figures and paper
bixiou Oct 28, 2018
fc87399
Corrected EROI computations (now energy demand are consistent)
bixiou Oct 29, 2018
7fde896
price, employment, results and all in parser
bixiou Nov 11, 2018
c4b300d
adjust GW (1st version)
bixiou Nov 15, 2018
54c9dea
Adjustments, cleaning and all outputs
bixiou Nov 18, 2018
5d055bb
Added compressed data ('themis_'+scenario'.7z')
bixiou Nov 20, 2018
16c01a6
.lyx
bixiou Nov 24, 2018
c3e7c9b
.pdf
bixiou Nov 25, 2018
948133a
Poster and tuning
bixiou Dec 1, 2018
da97087
Cleaning for submission
bixiou Dec 30, 2018
9396e4c
Revision: mistake corrected in the code.
bixiou Mar 22, 2019
f25093f
Results by region
bixiou Mar 23, 2019
79b0422
Revision complete
bixiou Mar 27, 2019
ff2adf4
final version
bixiou Jun 12, 2019
ca7ee44
small changes
bixiou Feb 28, 2020
b724789
Merge tag 'v0.4.1'
bixiou Feb 28, 2020
a436831
Exio 3 impacts_by_age_FR
bixiou Mar 20, 2020
1259f69
impacts_by_sector
bixiou Mar 21, 2020
757aeca
footprint by sector and age FR
bixiou Mar 21, 2020
e749cd2
footprints
bixiou Mar 21, 2020
d35ddff
impacts of imports, impacts by sector
bixiou Mar 28, 2020
d166d8c
notebook
bixiou Jun 25, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
139 changes: 139 additions & 0 deletions EROI universal mining machine.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"%load_ext autoreload\n",
"%autoreload 2\n",
"from IPython.core.interactiveshell import InteractiveShell\n",
"InteractiveShell.ast_node_interactivity = \"all\" # 'last' 'none' ..."
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"import pymrio\n",
"from pymrio.core.mriosystem import IOSystem as IOS\n",
"from pymrio.tools.iomath import div0\n",
"from pymrio.tools.iofunctions import *\n",
"import pandas as pd\n",
"import numpy as np\n",
"# import scipy.io\n",
"import scipy.sparse as sp \n",
"from scipy.sparse import linalg as spla\n",
"import operator\n",
"import warnings\n",
"import matplotlib.pyplot as plt\n",
"from pylab import *\n",
"import pickle\n",
"from openpyxl import load_workbook\n",
"from sklearn.linear_model import LinearRegression\n",
"import statsmodels.api as sm\n",
"from IPython.core.interactiveshell import InteractiveShell\n",
"InteractiveShell.ast_node_interactivity = \"all\" # 'last' 'none' ...\n",
"warnings.filterwarnings('ignore')"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"%%capture\n",
"# Unfortunately, the database THEMIS is not open (you can ask to NTNU or thomas.gibon@list.lu) if they can provide it to you\n",
"# path_themis = '/mnt/dd/adrien/DD/Économie/Données/Themis/'\n",
"path_io = '/mnt/dd/adrien/DD/Économie/Données/'\n",
"# path_io = '/media/sf_U_DRIVE/Données/'\n",
"# years = [2010, 2030, 2050]\n",
"# scenarios = ['BL', 'BM']\n",
"# scenarios_dlr = ['REF', 'ER', 'ADV'] \n",
"# themis, EROIs_mixes, dlr, EROIs_Mixes = pickle.load(open(path_io+'Themis/EROIs.pkl', 'rb'))\n",
"# EROIs_mixes, dlr, EROIs_Mixes = pickle.load(open(path_io+'Themis/EROIs.pkl', 'rb'))"
]
},
{
"cell_type": "code",
"execution_count": 26,
"metadata": {},
"outputs": [],
"source": [
"themis = pickle.load(open(path_io+'Themis/themis.pkl', 'rb'))\n",
"erois_prices = pickle.load(open(path_io+'Themis/erois_prices.pkl', 'rb'))\n",
"# erois_prices_wo_GW = pickle.load(open(path_io+'Themis/erois_prices_wo_GW.pkl', 'rb'))"
]
},
{
"cell_type": "code",
"execution_count": 34,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['zinc monosulphate, ZnSO4.H2O, at plant/ RER/ kg',\n",
" 'zinc oxide, at plant/ RER/ kg',\n",
" 'zinc sulphide, ZnS, at plant/ RER/ kg',\n",
" 'cadmium sludge, from zinc electrolysis, at plant/ GLO/ kg',\n",
" 'leaching residues, indium rich, from zinc circuit, at smelter/ GLO/ kg',\n",
" 'resource correction, PbZn, zinc, negative/ GLO/ kg',\n",
" 'resource correction, PbZn, zinc, positive/ GLO/ kg',\n",
" 'titanium zinc plate, without pre-weathering, at plant/ DE/ kg',\n",
" 'zinc concentrate, at beneficiation/ GLO/ kg',\n",
" 'zinc, from combined metal production, at beneficiation/ SE/ kg',\n",
" 'zinc, from combined metal production, at refinery/ SE/ kg',\n",
" 'zinc, primary, at regional storage/ RER/ kg',\n",
" 'zinc coating, coils/ RER/ m2',\n",
" 'zinc coating, pieces/ RER/ m2',\n",
" 'zinc coating, pieces, adjustment per um/ RER/ m2',\n",
" 'disposal, zinc in car shredder residue, 0% water, to municipal incineration/ CH/ kg',\n",
" 'mine, gold-silver-zinc-lead-copper/ SE/ unit',\n",
" 'Lead, zinc and tin ores and concentrates',\n",
" 'Lead, zinc and tin and products thereof']"
]
},
"execution_count": 34,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"themis['ER'][2010].find('zinc', 'sectors')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"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.7.4"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
7,916 changes: 7,916 additions & 0 deletions Evolution of EROI/Evolution of EROIs Until 2050 - code.ipynb

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
2,100 changes: 2,100 additions & 0 deletions Evolution of EROI/Evolution of EROIs.ipynb

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Evolution of EROI/Greenpeace_scenarios.xlsx
Binary file not shown.
Binary file not shown.
Binary file added Evolution of EROI/all_results.xlsx
Binary file not shown.
Loading