Iniital commit of thesis.tex and stuff

This commit is contained in:
Christian
2019-12-03 22:44:26 +01:00
parent c6e0529668
commit 223f456ba8
169 changed files with 66879 additions and 53 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,381 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import pandas as pd\n",
"import os as os\n",
"\n",
"import scipy.optimize as optimization\n",
"import glob as glob\n",
"import h5py as h5py\n",
"from scipy.signal import argrelextrema\n",
"\n",
"pd.options.mode.chained_assignment = None "
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"import matplotlib\n",
"matplotlib.use('TkAgg')\n",
"\n",
"%matplotlib inline\n",
"import matplotlib.pyplot as plt\n",
"\n",
"import seaborn as sns\n",
"\n",
"NEJM = sns.color_palette(palette = ['#bc3c29',\n",
" '#0072bf',\n",
" '#e18727',\n",
" '#20854e',\n",
" '#7876b1',\n",
" '#6f99ad',\n",
" '#ffdc91',\n",
" '#ee4c97'])\n",
"sns.set(\n",
" context='paper', \n",
" style='white', \n",
" palette=NEJM, \n",
" font='sans-serif', \n",
" font_scale=1, \n",
" color_codes=False, \n",
" rc = {'figure.dpi' : 150,\n",
" 'text.usetex' : True,\n",
" 'axes.labelsize' : 10,\n",
" 'xtick.labelsize' : 10, \n",
" 'ytick.labelsize' : 10,\n",
" 'legend.fontsize' : 10,\n",
" 'xtick.bottom' : True, \n",
" 'xtick.minor.bottom' : False,\n",
" 'ytick.left' : True,\n",
" 'ytick.minor.left' : False\n",
" })"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"%run \"../../mcelectron-analysis/functions/particles/plot_df_part.py\"\n",
"%run \"../../mcelectron-analysis/functions/populations/plot_df_pop.py\""
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"plot_dir = \"/Users/ChristianReiling/Documents/Masterarbeit/docs/LaTeX/pics/tests/\"\n",
"dpi = 150\n",
"cs = sns.color_palette()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# TC1"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
"df_1a = pd.read_csv(\"tc_data/tc1/1a.csv\")\n",
"df_1b = pd.read_csv(\"tc_data/tc1/1b.csv\")\n",
"df_1c = pd.read_csv(\"tc_data/tc1/1c.csv\")"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Unnamed: 0</th>\n",
" <th>z</th>\n",
" <th>Emin</th>\n",
" <th>Emax</th>\n",
" <th>Emid</th>\n",
" <th>rmin</th>\n",
" <th>rmax</th>\n",
" <th>rmid</th>\n",
" <th>N</th>\n",
" <th>dndE</th>\n",
" <th>djzabsdE</th>\n",
" <th>djzdE</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>0</td>\n",
" <td>-1.0</td>\n",
" <td>0.000010</td>\n",
" <td>0.000012</td>\n",
" <td>0.000011</td>\n",
" <td>0.0</td>\n",
" <td>0.045</td>\n",
" <td>0.0225</td>\n",
" <td>0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>1</td>\n",
" <td>-1.0</td>\n",
" <td>0.000012</td>\n",
" <td>0.000015</td>\n",
" <td>0.000014</td>\n",
" <td>0.0</td>\n",
" <td>0.045</td>\n",
" <td>0.0225</td>\n",
" <td>0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>2</td>\n",
" <td>-1.0</td>\n",
" <td>0.000015</td>\n",
" <td>0.000019</td>\n",
" <td>0.000017</td>\n",
" <td>0.0</td>\n",
" <td>0.045</td>\n",
" <td>0.0225</td>\n",
" <td>0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>3</td>\n",
" <td>-1.0</td>\n",
" <td>0.000019</td>\n",
" <td>0.000024</td>\n",
" <td>0.000021</td>\n",
" <td>0.0</td>\n",
" <td>0.045</td>\n",
" <td>0.0225</td>\n",
" <td>0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>4</td>\n",
" <td>-1.0</td>\n",
" <td>0.000024</td>\n",
" <td>0.000029</td>\n",
" <td>0.000026</td>\n",
" <td>0.0</td>\n",
" <td>0.045</td>\n",
" <td>0.0225</td>\n",
" <td>0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1395</th>\n",
" <td>95</td>\n",
" <td>9.0</td>\n",
" <td>6854.542853</td>\n",
" <td>8491.585677</td>\n",
" <td>7629.281612</td>\n",
" <td>0.0</td>\n",
" <td>0.045</td>\n",
" <td>0.0225</td>\n",
" <td>0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1396</th>\n",
" <td>96</td>\n",
" <td>9.0</td>\n",
" <td>8491.585677</td>\n",
" <td>10519.596836</td>\n",
" <td>9451.352169</td>\n",
" <td>0.0</td>\n",
" <td>0.045</td>\n",
" <td>0.0225</td>\n",
" <td>0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1397</th>\n",
" <td>97</td>\n",
" <td>9.0</td>\n",
" <td>10519.596836</td>\n",
" <td>13031.949721</td>\n",
" <td>11708.580489</td>\n",
" <td>0.0</td>\n",
" <td>0.045</td>\n",
" <td>0.0225</td>\n",
" <td>0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1398</th>\n",
" <td>98</td>\n",
" <td>9.0</td>\n",
" <td>13031.949721</td>\n",
" <td>16144.317713</td>\n",
" <td>14504.893544</td>\n",
" <td>0.0</td>\n",
" <td>0.045</td>\n",
" <td>0.0225</td>\n",
" <td>0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1399</th>\n",
" <td>99</td>\n",
" <td>9.0</td>\n",
" <td>16144.317713</td>\n",
" <td>20000.000000</td>\n",
" <td>17969.038769</td>\n",
" <td>0.0</td>\n",
" <td>0.045</td>\n",
" <td>0.0225</td>\n",
" <td>0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>1400 rows × 12 columns</p>\n",
"</div>"
],
"text/plain": [
" Unnamed: 0 z Emin Emax Emid rmin rmax \\\n",
"0 0 -1.0 0.000010 0.000012 0.000011 0.0 0.045 \n",
"1 1 -1.0 0.000012 0.000015 0.000014 0.0 0.045 \n",
"2 2 -1.0 0.000015 0.000019 0.000017 0.0 0.045 \n",
"3 3 -1.0 0.000019 0.000024 0.000021 0.0 0.045 \n",
"4 4 -1.0 0.000024 0.000029 0.000026 0.0 0.045 \n",
"... ... ... ... ... ... ... ... \n",
"1395 95 9.0 6854.542853 8491.585677 7629.281612 0.0 0.045 \n",
"1396 96 9.0 8491.585677 10519.596836 9451.352169 0.0 0.045 \n",
"1397 97 9.0 10519.596836 13031.949721 11708.580489 0.0 0.045 \n",
"1398 98 9.0 13031.949721 16144.317713 14504.893544 0.0 0.045 \n",
"1399 99 9.0 16144.317713 20000.000000 17969.038769 0.0 0.045 \n",
"\n",
" rmid N dndE djzabsdE djzdE \n",
"0 0.0225 0 0.0 0.0 0.0 \n",
"1 0.0225 0 0.0 0.0 0.0 \n",
"2 0.0225 0 0.0 0.0 0.0 \n",
"3 0.0225 0 0.0 0.0 0.0 \n",
"4 0.0225 0 0.0 0.0 0.0 \n",
"... ... .. ... ... ... \n",
"1395 0.0225 0 0.0 0.0 0.0 \n",
"1396 0.0225 0 0.0 0.0 0.0 \n",
"1397 0.0225 0 0.0 0.0 0.0 \n",
"1398 0.0225 0 0.0 0.0 0.0 \n",
"1399 0.0225 0 0.0 0.0 0.0 \n",
"\n",
"[1400 rows x 12 columns]"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df_1a"
]
},
{
"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": 2
}