2021-06-05 14:20:44 +02:00
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 1,
|
2021-07-13 17:51:08 +02:00
|
|
|
"id": "7528c5d7",
|
2021-06-05 14:20:44 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"\n",
|
|
|
|
"import pandas as pd\n",
|
|
|
|
"import numpy as np\n",
|
|
|
|
"import matplotlib.pyplot as plt\n",
|
|
|
|
"from math import isqrt\n",
|
|
|
|
"delim = ';'\n",
|
|
|
|
"\n"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 2,
|
2021-07-13 17:51:08 +02:00
|
|
|
"id": "5aa0ab63",
|
2021-06-05 14:20:44 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA3oAABC/CAYAAADPQDIsAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAAsTAAALEwEAmpwYAAEAAElEQVR4nOzddXhc17Xw4d8eEjNasmyZmR3bccBxmKnhNlRIIaWvKaXtvSmllFtI2iRt0mAbaLBhJ45jO3ZMMbMssGQxMw3t74+ZkeVYsmhY630eP7bO0B5pe3TW2WuvpbTWCCGEEEIIIYQIH4ZAD0AIIYQQQgghhHdJoCeEEEIIIYQQYUYCPSGEEEIIIYQIMxLoCSGEEEIIIUSYkUBPCCGEEEIIIcKMBHpCCCGEEEIIEWYk0BNCCCGEEEKIMCOBXohSSq1TSjUqpSICPRYhBkvmrQg1MmdFqJE5K0KNzFnfkUAvBCmlcoGzAA1cGdjRCDE4Mm9FqJE5K0KNzFkRamTO+pYEeqHpNmAL8DRwe2CH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bT8/l7ud38pt3D3HhrExiI4LrR9xhdQyYupkYbSY+0iT99IQQQgghRMA1dVj57buHmZ4Zx+cWje05ftX8bK6Ym8W24gbyq1u5ekE2AJFmI5FmI19dMZHntx3jgffzeOjmBX4fd3BFAQHSaXVQXN/OlfOyBrzvovFJRJgMrM+rPWWgp7Xm9V3l/Obdw0xMi+GeC6aydGLKoMf0/oEqLCYDL961DKNBUdXcRV1bNztKGnllRxnfeXE3f/uogNnZCbyxu5zL5o7hxxd
|
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1080x5616 with 130 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {
|
|
|
|
"needs_background": "light"
|
|
|
|
},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"\n",
|
|
|
|
"count = 5\n",
|
|
|
|
"\n",
|
|
|
|
"plt_in_row = 5\n",
|
|
|
|
"\n",
|
|
|
|
"fig, axs = plt.subplots(26, plt_in_row, figsize=(3*plt_in_row, 3*26), sharey=True)\n",
|
|
|
|
" \n",
|
|
|
|
"for j,k in zip(range(1,27), range(65,91)):\n",
|
|
|
|
" thresh = 50\n",
|
|
|
|
" isOver = False\n",
|
|
|
|
" num = j\n",
|
|
|
|
" letter = chr(k)\n",
|
|
|
|
" filename = f'{num}{letter}.csv'\n",
|
|
|
|
" for i in range(0, count):\n",
|
|
|
|
" path = f'/opt/iui-datarelease1-sose2021/{i}/split_letters_csv/{filename}'\n",
|
|
|
|
" try:\n",
|
|
|
|
" ex_letter = pd.read_csv(path, delim)\n",
|
|
|
|
" \n",
|
|
|
|
" except:\n",
|
|
|
|
" continue\n",
|
|
|
|
" #arcmax arcmin numpy.where , von hinten laufen und thresh\n",
|
|
|
|
" f = ex_letter['Force'] \n",
|
|
|
|
" \n",
|
|
|
|
" f_over_T = 0\n",
|
|
|
|
" \n",
|
|
|
|
" for a in range ( 0, len(f) ):\n",
|
|
|
|
" if(f[a]>thresh):\n",
|
|
|
|
" f_over_T = a\n",
|
|
|
|
" isOver = True\n",
|
|
|
|
" break\n",
|
|
|
|
" f_Short = []\n",
|
|
|
|
" f_final = []\n",
|
|
|
|
" for x in range(f_over_T-3, len(f)):\n",
|
|
|
|
" f_Short.append(f[x])\n",
|
|
|
|
" \n",
|
|
|
|
" isOver= False\n",
|
|
|
|
" \n",
|
|
|
|
" for y in range ((len(f_Short)-1),0, -1):\n",
|
|
|
|
" if(f_Short[y]> thresh):\n",
|
|
|
|
" f_over_T = y\n",
|
|
|
|
" isOver = True\n",
|
|
|
|
" break\n",
|
|
|
|
" for z in range(0, f_over_T+3):\n",
|
|
|
|
" f_final.append(f_Short[z])\n",
|
|
|
|
" \n",
|
|
|
|
" # print (len(f_Short), \" \", len(f_final))\n",
|
|
|
|
" \n",
|
|
|
|
" isOver = False\n",
|
|
|
|
" temp_axs = axs[j-1][i%plt_in_row]\n",
|
|
|
|
" temp_axs.title.set_text(f'{letter}')\n",
|
|
|
|
" temp_axs.plot(f_final)\n",
|
|
|
|
" \n",
|
|
|
|
"plt.savefig('./single_first_five.png')"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 3,
|
2021-07-13 17:51:08 +02:00
|
|
|
"id": "c0453d68",
|
2021-06-05 14:20:44 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"count = 10\n",
|
|
|
|
"\n",
|
|
|
|
"numxalph = np.array(np.meshgrid(range(65,91), range(0,4)))[0].flatten() # I swear there must be a more efficient method to this..."
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 4,
|
2021-07-13 17:51:08 +02:00
|
|
|
"id": "685f2966",
|
2021-06-05 14:20:44 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"def shorten(npList):\n",
|
|
|
|
" temp = npList\n",
|
|
|
|
" thresh = 100\n",
|
|
|
|
" temp_over_T = 0\n",
|
|
|
|
" isOver = False\n",
|
|
|
|
" temp_short = []\n",
|
|
|
|
" temp_final = []\n",
|
|
|
|
" \n",
|
|
|
|
" for a in range (0, len(temp) ):\n",
|
|
|
|
" if(temp[a]>thresh):\n",
|
|
|
|
" temp_over_T = a\n",
|
|
|
|
" isOver = True\n",
|
|
|
|
" break\n",
|
|
|
|
" \n",
|
|
|
|
" for x in range(temp_over_T-3, len(temp)):\n",
|
|
|
|
" temp_short.append(f[x])\n",
|
|
|
|
" \n",
|
|
|
|
" isOver = False\n",
|
|
|
|
" \n",
|
|
|
|
" for y in range ((len(temp_short)-1),0, -1): \n",
|
|
|
|
" if(temp_short[y] > thresh):\n",
|
|
|
|
" temp_over_T = y\n",
|
|
|
|
" isOver = True\n",
|
|
|
|
" break\n",
|
|
|
|
" \n",
|
|
|
|
" for z in range(0, temp_over_T+1):\n",
|
|
|
|
" temp_final.append(temp_short[z])\n",
|
|
|
|
" \n",
|
|
|
|
" temp_final.append(0)\n",
|
|
|
|
" return temp_final\n",
|
|
|
|
" "
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 5,
|
2021-07-13 17:51:08 +02:00
|
|
|
"id": "57b2847d",
|
2021-06-05 14:20:44 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABIsAAAzsCAYAAAAzkUzrAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAAsTAAALEwEAmpwYAAEAAElEQVR4nOzdd3gc1dXA4d9sV+/VqlZx773b2GBMN50QQg2B0CEJhCSUkEC+hISEDqGHbpoLNjbgjptcJBf13suqS6vt8/2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dHxYWdqIOI4QQJ9W3mdUAOFwqmwtkNhQhxOlHrsGE6Luaonxi/YaAAuH3jSX6iakEXzcYR0UbTV8X9mgfGBlNY00Vqqqegt4KIcTRO6rZ0FRVbQLWAFOAQEVR9j8ajwEqOr+vAGIBOtcHAPUHL+9lGyGEOKut3FdDfIg33gYt63JrT3V3hBBCCHEcaosKiAkYhCHGD0OUD4pGwWtoCL4zB9C+pQpLRvfP+sDIKJw2G+1Njaeox0IIcXT6MhtamKIogZ3fewHnAll4gkZXdja7EVjc+f2Szp/pXL9a9YTQlwDXds6WlgikANv66TyEEOK01WxxsKWwngXDo5iaFMLanDp5siiEEEKcoVS3m6aSSvzUQEyDgrqtC5ifgCHen8bP83G12LuWB0XsnxFNilwLIc4MfcksigLWKIqyG0gDvlVVdRnwMPCgoij5eGoSvdnZ/k0gpHP5g8AjAKqq7gM+BTKBb4C7VFWVaYGEEGe91Tk1ON0q84dFMCs1jPLGDorM7ae6W0IIIYQ4Bo3VlYRqolFQMA0K7rZO0WoIOD8B1e7CXtnWtTwwMhpAilwLIc4YR6ywqqrqbmBML8sL6WU2M1V
|
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1440x4320 with 26 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {
|
|
|
|
"needs_background": "light"
|
|
|
|
},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"fig, axs = plt.subplots(13,2,figsize=(20, 60), sharey=True)\n",
|
|
|
|
"\n",
|
|
|
|
"for j,k in zip(range(1,105),numxalph):\n",
|
|
|
|
" num = j\n",
|
|
|
|
" letter = chr(k)\n",
|
|
|
|
" filename = f'{num}{letter}.csv'\n",
|
|
|
|
" r = int((j-1)/2)%13\n",
|
|
|
|
" c = (j-1)%2\n",
|
|
|
|
" for i in range(0, count):\n",
|
|
|
|
" path = f'/opt/iui-datarelease1-sose2021/{i}/split_letters_csv/{filename}'\n",
|
|
|
|
" try:\n",
|
|
|
|
" ex_letter = pd.read_csv(path, delim)\n",
|
|
|
|
" except:\n",
|
|
|
|
" continue\n",
|
|
|
|
" f = ex_letter['Force']\n",
|
|
|
|
" f_short = shorten(f)\n",
|
|
|
|
" \n",
|
|
|
|
" idx = (f > 100) | (f == 0)\n",
|
|
|
|
" f=f[idx]\n",
|
|
|
|
" t=ex_letter['Millis']-ex_letter['Millis'][0]\n",
|
|
|
|
" t=t[idx]\n",
|
|
|
|
" axs[r][c].title.set_text(f'{letter}')\n",
|
|
|
|
" axs[r][c].plot(f_short)\n",
|
|
|
|
"plt.savefig('./ten_force_entries_all_alphs.png')"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
2021-07-13 17:51:08 +02:00
|
|
|
"id": "5784fe87",
|
2021-06-05 14:20:44 +02:00
|
|
|
"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",
|
2021-07-13 17:51:08 +02:00
|
|
|
"version": "3.8.10"
|
2021-06-05 14:20:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"nbformat": 4,
|
|
|
|
"nbformat_minor": 5
|
|
|
|
}
|