anisotropy/playground/analytics.ipynb

740 lines
170 KiB
Plaintext
Raw Normal View History

2021-10-06 00:58:37 +05:00
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
2021-10-06 00:58:37 +05:00
"id": "cbaf1c39-e423-47a3-a3ea-e78a528bc4c1",
"metadata": {},
"outputs": [],
"source": [
"from anisotropy.core.database import Database, Structure\n",
"import pandas\n",
"from pandas import DataFrame, Series\n",
"import matplotlib.pyplot as plt\n",
"import seaborn\n",
"import numpy\n",
"import warnings\n",
"\n",
"# ignore some warnings, especially from seaborn\n",
"warnings.filterwarnings('ignore')"
]
},
{
"cell_type": "code",
"execution_count": 2,
2021-10-06 00:58:37 +05:00
"id": "09b1bf83-6b42-4144-81a0-b57c661181b1",
"metadata": {},
"outputs": [],
"source": [
"db = Database(\"anisotropy\", \"woPrismaticLayer\")\n",
"db.setup()"
]
},
{
"cell_type": "code",
"execution_count": 3,
2021-10-06 00:58:37 +05:00
"id": "f341fbd4-797b-4d5d-8393-0f7cf2e67883",
"metadata": {},
"outputs": [],
"source": [
"res = db.search([])\n",
"df = DataFrame(res)\n",
"\n",
"df_prep = df[[\n",
" col for col in df.columns \n",
" if not isinstance(df[col][0], str) \n",
" and not isinstance(df[col][0], numpy.bool_)\n",
" and not isinstance(df[col][0], dict)\n",
" and not isinstance(df[col][0], list)\n",
" and not df[col][0] is None\n",
" and not col[-3: ] == \"_id\"\n",
"]]"
]
},
{
"cell_type": "code",
"execution_count": 4,
2021-10-06 00:58:37 +05:00
"id": "c2dbce30-d80a-4b78-b2a6-cf9c2075f5b5",
"metadata": {},
"outputs": [],
"source": [
"df_prep = df_prep.assign(direction = df[\"direction\"].astype(\"str\"))\n",
"df_prep = df_prep.assign(type = df[\"type\"])"
]
},
{
"cell_type": "code",
"execution_count": 5,
2021-10-06 00:58:37 +05:00
"id": "d182461e-1e42-4e0b-8dd2-ba6425654ee7",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<seaborn.axisgrid.FacetGrid at 0x7f7cb8333af0>"
2021-10-06 00:58:37 +05:00
]
},
"execution_count": 5,
2021-10-06 00:58:37 +05:00
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABJkAAAFgCAYAAAAYb6hdAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAAEAAElEQVR4nOzdd3gU1dvG8e/uZje9Q0ILJXTpTXqoodeACiiIgCAioIAFkN58FRBQpAhSf6KiQIBQpPci0iFILwFSIAmpm7KZ94/VKB2SbCabPJ/rysXszuyc+yQ6yT575hyNoigKQgghhBBCCCGEEEJkglbtAEIIIYQQQgghhBDC+kmRSQghhBBCCCGEEEJkmhSZhBBCCCGEEEIIIUSmSZFJCCGEEEIIIYQQQmSaFJmEEEIIIYQQQgghRKZJkUkIIYQQQgghhBBCZJoUmYTViImJ4X//+5/aMV5It27dsuQ8R44cYcCAAVlyLiFE7pUTr49r1qxh4sSJGX79N998w+LFi595TEpKCtOnT6dFixZ07tyZN954gz179mSovSNHjnD8+PEMvfZFNG3alMjISIudXwiRPXLi9RZg2LBhtG/fnqVLl2bZOePj4xk7dizNmzcnICCAnj17curUqQyda/v27Vy+fDnLsj2qWrVqFju3EOLl2KgdQIgXFRMTw6pVq3jzzTfVjvJcP/30k9oRhBB5iDVdH7PS7NmziYiIYOPGjRgMBu7du8fRo0czdK6jR4/i4OBA9erVX/g1qamp2NjIn1JC5CU58XobERHBmTNn2LZtW5ae9/PPP6dIkSL8/vvvaLVabt26xZUrVzJ0ru3bt9O4cWNKlSr1wq+Ra6wQ1kn+rxVWY8aMGdy8eZOOHTtSr1497t+/T4sWLWjevDkAw4cPp3Xr1sTExLBt2zbi4uIICwujQ4cOfPDBBwAEBgayYsUKUlJSqFKlCuPGjUOn02U406VLlxg5ciQpKSmkpaXxzTffULx4capVq8aJEy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Uhc6dOzN8+PBnnnPq1KlP/O+hbdu29O/f/6Hn2rdvT5UqVdi9ezf9+/dnwoQJ1K1b96Fj/rmNA0Cr1aY/1mq1mEymZ2Z+1Jw5c/D19X1mfiGySnZda1etWsWMGTPSh+M/6Y9t8fLUvj4+ra2MaNmyJXPnzqVOnTpUqFABd3d37OzsuHv3LnFxcTg5OT10vKIo1K9fn5kzZz7xfHq9Hnj8OvxfaWlp/PLLL9ja2j62759C2POOE+JFZNe19h9xcXEcPnz4oeuCyJyccL39r88++4zvvvuOcuXKsWbNmmfOVfe0PDdv3uTChQuYTKbHbuV7Vh/0en16v592jVUUBRcXFwIDA5+Y6Z9r7POOy+jvFCGEZeWa1eXGjBnDmDFjWLNmDZ9++ikTJkzI9DlXrlxJs2bN0kehCHU5Ojqmf4r8j4CAAJYtWwbw0ESCBw4cIDo6GqPRyPbt26levTp169Zl69at6aMkoqOjuX379mPtjBo1isDAwMe+nvQL/datW/j4+NCrVy+aNWvGX3/9leH+bdmyhbS0tPS5PkqUKPHQ/gYNGrBy5cr0eT3Onz+f4baEyChLXGtv3brFpk2bCAgIoF+/fly/fj3zQfOYnHh9fFpbNWvWZPv27SQmJpKQkMD27dupWbMmtWrVYvv27RiNRuLi4ti1a1f6eWxtbWnQoAHjx48nICAAML8J6dKlC1OmTEn/ZDsyMpLNmzdTtWpVjh8/zo0bNwDznHbXrl17qe9hgwYNWLFiRfrj4ODgJ77uacfVqlWLDRs2ALBnzx4ZFS1eiiWutf/Yvn07devWfaw4K15MTr3e/ld8fDz58+cnJSUl/ToE5gLkPyPaTCYTsbGxT81TtGh
"text/plain": [
"<Figure size 1184x360 with 3 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"seaborn.set_style('whitegrid')\n",
"seaborn.lmplot(\n",
" x = \"theta\", y = \"flowRate\", \n",
" hue = \"direction\", col = \"type\", \n",
" data = df_prep, order = 3, \n",
" sharex = False, sharey = False, ci = None)"
]
},
{
"cell_type": "code",
"execution_count": 6,
2021-10-06 00:58:37 +05:00
"id": "7b7092aa-de0e-430c-9ed5-07483b278d45",
"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>type</th>\n",
" <th>direction</th>\n",
" <th>theta</th>\n",
" <th>meshStatus</th>\n",
" <th>flowStatus</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>101</th>\n",
" <td>bodyCentered</td>\n",
" <td>[0.0, 0.0, 1.0]</td>\n",
" <td>0.01</td>\n",
" <td>Done</td>\n",
" <td>Failed</td>\n",
" </tr>\n",
" <tr>\n",
" <th>113</th>\n",
" <td>bodyCentered</td>\n",
" <td>[0.0, 0.0, 1.0]</td>\n",
" <td>0.13</td>\n",
" <td>Done</td>\n",
" <td>Failed</td>\n",
" </tr>\n",
" <tr>\n",
" <th>114</th>\n",
" <td>bodyCentered</td>\n",
" <td>[0.0, 0.0, 1.0]</td>\n",
" <td>0.14</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>115</th>\n",
" <td>bodyCentered</td>\n",
" <td>[0.0, 0.0, 1.0]</td>\n",
" <td>0.15</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>117</th>\n",
" <td>bodyCentered</td>\n",
" <td>[0.0, 0.0, 1.0]</td>\n",
" <td>0.17</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>96</th>\n",
" <td>bodyCentered</td>\n",
" <td>[1.0, 0.0, 0.0]</td>\n",
" <td>0.13</td>\n",
" <td>Done</td>\n",
" <td>Failed</td>\n",
" </tr>\n",
" <tr>\n",
" <th>97</th>\n",
" <td>bodyCentered</td>\n",
" <td>[1.0, 0.0, 0.0]</td>\n",
" <td>0.14</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>98</th>\n",
" <td>bodyCentered</td>\n",
" <td>[1.0, 0.0, 0.0]</td>\n",
" <td>0.15</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>99</th>\n",
" <td>bodyCentered</td>\n",
" <td>[1.0, 0.0, 0.0]</td>\n",
" <td>0.16</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>100</th>\n",
" <td>bodyCentered</td>\n",
" <td>[1.0, 0.0, 0.0]</td>\n",
" <td>0.17</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>128</th>\n",
" <td>bodyCentered</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.11</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>129</th>\n",
" <td>bodyCentered</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.12</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>130</th>\n",
" <td>bodyCentered</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.13</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>131</th>\n",
" <td>bodyCentered</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.14</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>132</th>\n",
" <td>bodyCentered</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.15</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>133</th>\n",
" <td>bodyCentered</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.16</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>134</th>\n",
" <td>bodyCentered</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.17</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>152</th>\n",
" <td>faceCentered</td>\n",
" <td>[0.0, 0.0, 1.0]</td>\n",
" <td>0.06</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>155</th>\n",
" <td>faceCentered</td>\n",
" <td>[0.0, 0.0, 1.0]</td>\n",
" <td>0.09</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>156</th>\n",
" <td>faceCentered</td>\n",
" <td>[0.0, 0.0, 1.0]</td>\n",
" <td>0.10</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>157</th>\n",
" <td>faceCentered</td>\n",
" <td>[0.0, 0.0, 1.0]</td>\n",
" <td>0.11</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>158</th>\n",
" <td>faceCentered</td>\n",
" <td>[0.0, 0.0, 1.0]</td>\n",
" <td>0.12</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>137</th>\n",
" <td>faceCentered</td>\n",
" <td>[1.0, 0.0, 0.0]</td>\n",
" <td>0.03</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>143</th>\n",
" <td>faceCentered</td>\n",
" <td>[1.0, 0.0, 0.0]</td>\n",
" <td>0.09</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>144</th>\n",
" <td>faceCentered</td>\n",
" <td>[1.0, 0.0, 0.0]</td>\n",
" <td>0.10</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>145</th>\n",
" <td>faceCentered</td>\n",
" <td>[1.0, 0.0, 0.0]</td>\n",
" <td>0.11</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>146</th>\n",
" <td>faceCentered</td>\n",
" <td>[1.0, 0.0, 0.0]</td>\n",
" <td>0.12</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>167</th>\n",
" <td>faceCentered</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.09</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>168</th>\n",
" <td>faceCentered</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.10</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>169</th>\n",
" <td>faceCentered</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.11</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>170</th>\n",
" <td>faceCentered</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.12</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>58</th>\n",
" <td>simple</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.03</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>60</th>\n",
" <td>simple</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.05</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>61</th>\n",
" <td>simple</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.06</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>64</th>\n",
" <td>simple</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.09</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>65</th>\n",
" <td>simple</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.10</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>66</th>\n",
" <td>simple</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.11</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>67</th>\n",
" <td>simple</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.12</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>68</th>\n",
" <td>simple</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.13</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>69</th>\n",
" <td>simple</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.14</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>70</th>\n",
" <td>simple</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.15</td>\n",
" <td>Failed</td>\n",
" <td>Idle</td>\n",
" </tr>\n",
" <tr>\n",
" <th>82</th>\n",
" <td>simple</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.27</td>\n",
" <td>Done</td>\n",
" <td>Failed</td>\n",
" </tr>\n",
" <tr>\n",
" <th>83</th>\n",
" <td>simple</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.28</td>\n",
" <td>Done</td>\n",
" <td>Failed</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" type direction theta meshStatus flowStatus\n",
"101 bodyCentered [0.0, 0.0, 1.0] 0.01 Done Failed\n",
"113 bodyCentered [0.0, 0.0, 1.0] 0.13 Done Failed\n",
"114 bodyCentered [0.0, 0.0, 1.0] 0.14 Failed Idle\n",
"115 bodyCentered [0.0, 0.0, 1.0] 0.15 Failed Idle\n",
"117 bodyCentered [0.0, 0.0, 1.0] 0.17 Failed Idle\n",
"96 bodyCentered [1.0, 0.0, 0.0] 0.13 Done Failed\n",
"97 bodyCentered [1.0, 0.0, 0.0] 0.14 Failed Idle\n",
"98 bodyCentered [1.0, 0.0, 0.0] 0.15 Failed Idle\n",
"99 bodyCentered [1.0, 0.0, 0.0] 0.16 Failed Idle\n",
"100 bodyCentered [1.0, 0.0, 0.0] 0.17 Failed Idle\n",
"128 bodyCentered [1.0, 1.0, 1.0] 0.11 Failed Idle\n",
"129 bodyCentered [1.0, 1.0, 1.0] 0.12 Failed Idle\n",
"130 bodyCentered [1.0, 1.0, 1.0] 0.13 Failed Idle\n",
"131 bodyCentered [1.0, 1.0, 1.0] 0.14 Failed Idle\n",
"132 bodyCentered [1.0, 1.0, 1.0] 0.15 Failed Idle\n",
"133 bodyCentered [1.0, 1.0, 1.0] 0.16 Failed Idle\n",
"134 bodyCentered [1.0, 1.0, 1.0] 0.17 Failed Idle\n",
"152 faceCentered [0.0, 0.0, 1.0] 0.06 Failed Idle\n",
"155 faceCentered [0.0, 0.0, 1.0] 0.09 Failed Idle\n",
"156 faceCentered [0.0, 0.0, 1.0] 0.10 Failed Idle\n",
"157 faceCentered [0.0, 0.0, 1.0] 0.11 Failed Idle\n",
"158 faceCentered [0.0, 0.0, 1.0] 0.12 Failed Idle\n",
"137 faceCentered [1.0, 0.0, 0.0] 0.03 Failed Idle\n",
"143 faceCentered [1.0, 0.0, 0.0] 0.09 Failed Idle\n",
"144 faceCentered [1.0, 0.0, 0.0] 0.10 Failed Idle\n",
"145 faceCentered [1.0, 0.0, 0.0] 0.11 Failed Idle\n",
"146 faceCentered [1.0, 0.0, 0.0] 0.12 Failed Idle\n",
"167 faceCentered [1.0, 1.0, 1.0] 0.09 Failed Idle\n",
"168 faceCentered [1.0, 1.0, 1.0] 0.10 Failed Idle\n",
"169 faceCentered [1.0, 1.0, 1.0] 0.11 Failed Idle\n",
"170 faceCentered [1.0, 1.0, 1.0] 0.12 Failed Idle\n",
"58 simple [1.0, 1.0, 1.0] 0.03 Failed Idle\n",
"60 simple [1.0, 1.0, 1.0] 0.05 Failed Idle\n",
"61 simple [1.0, 1.0, 1.0] 0.06 Failed Idle\n",
"64 simple [1.0, 1.0, 1.0] 0.09 Failed Idle\n",
"65 simple [1.0, 1.0, 1.0] 0.10 Failed Idle\n",
"66 simple [1.0, 1.0, 1.0] 0.11 Failed Idle\n",
"67 simple [1.0, 1.0, 1.0] 0.12 Failed Idle\n",
"68 simple [1.0, 1.0, 1.0] 0.13 Failed Idle\n",
"69 simple [1.0, 1.0, 1.0] 0.14 Failed Idle\n",
"70 simple [1.0, 1.0, 1.0] 0.15 Failed Idle\n",
"82 simple [1.0, 1.0, 1.0] 0.27 Done Failed\n",
"83 simple [1.0, 1.0, 1.0] 0.28 Done Failed"
]
},
"execution_count": 6,
2021-10-06 00:58:37 +05:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"failed = df[[\"type\", \"direction\", \"theta\", \"meshStatus\", \"flowStatus\"]][\n",
" (df[\"meshStatus\"] == \"Failed\") | (df[\"flowStatus\"] == \"Failed\")\n",
"].assign(\n",
" direction = df[\"direction\"].astype(\"str\")\n",
").sort_values(\n",
" by = [\"type\", \"direction\", \"theta\"]\n",
")\n",
"failed"
]
},
{
"cell_type": "code",
"execution_count": 12,
2021-10-06 00:58:37 +05:00
"id": "1a25020c-5bcc-4e46-985f-cfe55c30d117",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:xlabel='theta', ylabel='chordalError'>"
]
},
"execution_count": 12,
2021-10-06 00:58:37 +05:00
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAEGCAYAAABo25JHAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAABGzUlEQVR4nO3deVxTV/o/8E8SkrCvQgRBdiEEBK1rXWhBRUGr1dpaa9Vau804Xb6dWjvtMN/aabXTZWr76+h0s1+rXbWbYtWW6ljr0rqBhB0B2fclAklIcn9/MInELCQkIUCe9+uVl+Tm3JtzCN4n55znnstiGIYBIYQQh8W2dwUIIYTYFwUCQghxcBQICCHEwVEgIIQQB0eBgBBCHJyTvStgrsuXL4PP52uey2QyreejzWhvHzD620jtG/lGQxtlMhmSkpL0vjbiAgGfz4dQKNQ8Lygo0Ho+2oz29gGjv43UvpFvNLSxoKDA4Gs0NEQIIQ6OAgEhhDg4CgSEEOLgRtwcAXFsvb29qK6uhlQqtXdVTNbb22t0fNbWnJ2dERwcDC6Xa7c6kOGNAgEZUaqrq+Hh4YGwsDCwWCx7V8ckPT09cHFxsct7MwyDlpYWVFdXIzw83C51IMMfDQ2REUUqlcLPz2/EBAF7Y7FY8PPzG1E9KDL0KBCQEYeCgHno90UGQkNDhBAyTDEMg8rKSuTk5KCyshJr1qyBr6+v1d+HAgEhNpCdnY2ysjI8/PDDBsuoVCq88sorOHv2LFgsFng8Ht566y2EhITgoYcewhtvvAFPT88hrDWxJ6lUCrFYjJycHFy+fBk5OTnIzc1Fe3s7AIDL5WL69OmYPn261d+bAgEhNpCamorU1FSjZQ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OxatUqyOVyyOVyzbf55uZmbNq0CTweD+PHj0doaCjS09MRGhqq9QgODqYsHAdEgYCMWHv27MFHH31k1WNu2LBBs5yDMQMtQ/2Pf/wD+/btg5OTE44fP45//vOfeOedd7B27Vrcf//9+PHHH7Fz5068+OKLcHFxwX333YennnoKe/fuxa233oqlS5fCx8cHEokECoUCtbW1eOihhyCXy1FTU4OtW7ciOjoan376Ka5cuYIXXngBDMPgn//8J3JzczFp0iR4eXmBy+WCx+PByckJtbW1EAgEw3YFTGI/FAgIGYSBlqGWSCR49tlnUVlZqRmiAfqGXrZv34477rgD99xzD2655RYAwJw5c3Dw4EF8++23OH/+PD766CO8+uqrkMlk6O3tRW1tLbhcLhiGwZtvvonHH38cSUlJOHfuHAoLC/HSSy+BxWKhu7sbDMMgMjJSq74NDQ0IDAwc2l8SGTEoEJARa+3atSZ9e7eFgZah3rFjB6ZPn453330XpaWlWvcurqiogKurKxobG3WOO3XqVGRkZCAzMxNtbW1ISEgAn8/H5MmTwWazsWXLFixZsgR33nknAMDZ2RmPPvooVq1aZeMWk9GM+oiE2IBEIoFAIAAAfP/991rb//73v2Pv3r1ob2/HkSNHAABnzpxBR0cHnJyc4Ovri4aGBs2FVGw2G2w2G/v27UNXV5dWUJk9ezYOHDiArq4uAH3f/FtaWoawpWQ0oB4BITawceNGbNmyBTt37tSaBH7llVdw3333ITw8HC+//DLWrl2LqVOnQiwW47PPPgOHwwGPx8PKlSsxceJEVFdXa/b98MMPweVysXTpUgDAqlWrcO+996KsrEzTI3B1dcVrr70GPz+/oW0wGdFoGephbrS3D6BlqNVycnLg5eWFsLAwq9fBEZahtqXR0EZjbaChIUKGAaVSid7eXrryltgFBQJChgH1fXCdnZ3tXBPiiGw6R3Dy5Em8/PLLUKlUWLlypdYkFwDU1tbi2WefhUQigVK
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"simple3 = df.assign(direction = df[\"direction\"].astype(\"str\"))\n",
"simple3 = simple3[\n",
" (simple3[\"type\"] == \"simple\") & (simple3[\"direction\"] == \"[1.0, 1.0, 1.0]\")\n",
"]\n",
"\n",
"seaborn.scatterplot(data = simple3, x = \"theta\", y = \"chordalError\", hue = \"meshStatus\")\n",
"seaborn.lineplot(data = simple3, x = \"theta\", y = \"minSize\", color = \"grey\", label = \"minSize\")\n",
"seaborn.lineplot(data = simple3, x = \"theta\", y = \"maxSize\", color = \"black\", label = \"maxSize\")"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "78e0c05f-3161-404a-9ed7-cd9ebc981a43",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:xlabel='theta', ylabel='fillets'>"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAY4AAAEGCAYAAABy53LJAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAAA3TUlEQVR4nO3de1xUdf748ddwGS5y9cKAgkiCioqimclquoGIiYggmF3M2sg285vpZmvtpmUX67ukaVua2+rud+3XRdNIqVxFjXTVKDVSSc28AMKggtwUBobz+4N1bBxuIwyX4f18PHw8OJ/5nOP7zUHens/nnM9RKYqiIIQQQjSRTVsHIIQQomORwiGEEMIsUjiEEEKYRQqHEEIIs0jhEEIIYRa7tg6gNRw5cgQHBwfDdmVlpdG2tZH8Oj5rz9Ha8wPryLGyspLQ0FCT9k5ROBwcHAgODjZsZ2VlGW1bG8mv47P2HK09P7COHLOysupsl6EqIYQQZpHCIYQQwixSOIQQQpilU8xxCCFEXaqqqsjJyaGiosIix65vjqC9cXR0xNfXF3t7+yb1l8IhhOi0cnJycHV1pU+fPqhUqhY99rVr13BycmrRY1qCoihcvnyZnJwcAgICmrSPFI56/HKxjKMXSqipUQj2caO/t2tbhySEaG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x33mmWeIiYkhJiaGoqIinnjiCUul0Kau6qpZsfOkoWgA5BVXcPDM5TaMSojOq6dH3cNO9bXfisLCQpYsWcIDDzyASqVixIgRbN26FYAzZ86Ql5fHbbfV/9xXaGg
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"seaborn.scatterplot(data = simple3.round({ \"fillets\": 2 }), x = \"theta\", y = \"fillets\", hue = \"meshStatus\")"
]
},
2021-10-06 00:58:37 +05:00
{
"cell_type": "code",
"execution_count": 42,
"id": "7d6de026-fe25-497f-a872-66b249e0e979",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:xlabel='theta', ylabel='chordalError'>"
]
},
"execution_count": 42,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAEGCAYAAABo25JHAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAAA3VklEQVR4nO3deVxU9f4/8NfsDPs+oAyIQoqCYeWKSYKIiWtqWlqWkdWjxe71ZnX7RWVfl7K6od30mmU3NVvMcsG0JLtmpZlLRJK5jQwIw77Peub8/qA5Mc7CIA7LnPfz8ZjHnHPmc858PjPwec3ZBSzLsiCEEMJbwu6uACGEkO5FQUAIITxHQUAIITxHQUAIITxHQUAIITwn7u4KdNTp06chk8m4cb1ebzXuaTy9fYDnt5Ha1/t5Qhv1ej2Sk5PtvtbrgkAmkyEhIYEbLyoqshr3NJ7ePsDz20jt6/08oY1FRUUOX6NNQ4QQwnMUBIQQwnMUBIQQwnMUBIQQwnMUBIQQwnMUBIQQwnMUBIQQwnO97jwCQgjhA5ZlodFocPHiRVy8eBGVlZVYuHAhgoODr/t7URAQQkg30ev1UKlUXGd/4cIFq+eWlhaurEQiwZgxYzBy5MjrXg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2ePBk5OTnuqgYhhJB2uG2NoKCgADExMVAqlZBKpcjKykJ+fr673o4QQsg1ajcIGIbB+++/3+EFazQaREREcOMKhQIajcam3FdffYWpU6fiiSeeQFlZWYffhxBCSOe0u2lIJBJh7969uO+++677m48fPx5TpkyBVCrFRx99hKeffhoffPCB03n0ej2Kioq
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"simple1 = df.assign(direction = df[\"direction\"].astype(\"str\"))\n",
"simple1 = simple1[\n",
" (simple1[\"type\"] == \"simple\") & (simple1[\"direction\"] == \"[1.0, 0.0, 0.0]\")\n",
"]\n",
"\n",
"seaborn.scatterplot(data = simple1, x = \"theta\", y = \"chordalError\", hue = \"meshStatus\")\n",
"seaborn.lineplot(data = simple1, x = \"theta\", y = \"minSize\", color = \"grey\", label = \"minSize\")\n",
"seaborn.lineplot(data = simple1, x = \"theta\", y = \"maxSize\", color = \"black\", label = \"maxSize\")"
]
},
{
"cell_type": "code",
"execution_count": 43,
"id": "90d3e556-9576-47fe-85d0-e43168886299",
"metadata": {},
"outputs": [],
"source": [
"general: list = db.loadGeneral()\n",
"dfe: list = [] #DataFrame()\n",
"\n",
"for entry in general:\n",
" structure: dict = entry[\"structure\"]\n",
" extended: dict = db.load(structure[\"type\"], structure[\"direction\"], structure[\"theta\"])\n",
" fields: list = extended.keys()\n",
" \n",
" for key in fields:\n",
" extended[key] = pandas.json_normalize(extended[key])\n",
" \n",
" dfe.append(extended)\n",
"\n",
"dfe: DataFrame = DataFrame(dfe)\n",
"dfe: Series = Series(\n",
" [ pandas.concat(dfe[field].to_list(), ignore_index = True) for field in dfe.keys() ],\n",
" dfe.keys()\n",
")"
]
},
{
"cell_type": "code",
"execution_count": 44,
"id": "437d9432-206e-4d23-a5cb-d9958b65f68a",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"structure structure_id type directi...\n",
"mesh mesh_id structure_id maxSize minSize...\n",
"submesh submesh_id mesh_id name maxSize m...\n",
"meshresult meshresult_id mesh_id surfaceArea vo...\n",
"flow flow_id structure_id sc...\n",
"flowapproximation flow_approximation_id flow_id pressure.b...\n",
"flowresult flowresult_id flow_id flowRate por...\n",
"dtype: object"
]
},
"execution_count": 44,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dfe"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "756351e4-34b6-49d1-8cdb-29e3def4361d",
"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.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}