anisotropy/playground/analytics.ipynb

1028 lines
193 KiB
Plaintext
Raw Normal View History

2021-10-06 00:58:37 +05:00
{
"cells": [
{
"cell_type": "code",
2021-10-10 21:46:54 +05:00
"execution_count": 2,
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",
2021-10-10 21:46:54 +05:00
"execution_count": 3,
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",
2021-10-10 21:46:54 +05:00
"execution_count": 4,
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",
2021-10-10 21:46:54 +05:00
"execution_count": 5,
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+/T4sWLWjevDkAw4cPp3Xr1sTExLBt2zbi4uIIC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cSjli6hbt+5Db/b/YTKZ+PLLL5kxYwbbt2/Pkuwia3Xs2JH169cTFBTEtGnT0p/XaDQPHafRaFAUhc6dOzN8+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/PDDBsuoVCq88sorOHv2LFgsFng8Ht566y2EhITgoYcewhtvvAFPT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is0NjZi1qxZmveIjY3VvNejjz6KQ4cO4fnnn0deXh4AoKGhAatXr8bDDz+MDz/8EMeOHYNcLsfMmTOxatUqyOVyyOVyzbf55uZmbNq0CTweD+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+yb1l8IhhOi0cnJycHV1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ezs2Px4sUkJSUxadIk7rnnHoKCgli5ciVpaWlA7QT62LFj+eqrr1iyZAnR0dGG/XNycsjLy2PkyJFGx33mmWeIiYkhJiaGoqIinnjiCUul0Kau6qpZsfOkoWgA5BVXcPDM5TaMSojOq6dH3cNO9bXfisLCQpYsWcIDDzyASqVixIgRbN26FYAzZ86Ql5fHbbfV/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/08oY1FRUUOX6NNQ4QQwnMUBIQQwnMUBIQQwnMUBIQQwnMUBIQQwnMUBIQQwnMUBIQQwnO97jwCQgjhA5ZlodFoc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NG21e37lzJ0aNGoXp06dj+vTp+PTTT91ZHUIIIXaI3bVghmGwfPlybN68GQqFArNnz0ZaWhri4uKsyk2ePBk5OTnuqgYhhJB2uG2NoKCgADExMVAqlZBKpcjKykJ+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",
2021-10-10 21:46:54 +05:00
"execution_count": 8,
"id": "e994037e-e266-444a-9ee3-80cccdf8386f",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:xlabel='theta', ylabel='fillets'>"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAY4AAAEGCAYAAABy53LJAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAsGElEQVR4nO3de1yUdd7/8dcwnERR8dCAQniAkjx7Vzem1jqKqKiIh3R3K23X6teupVm22pqltVm7bGbdW6tR7bZth9U0V6eWNchbLTN309iMVO4kQWFM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Kpur2gSYeXhsXKM+1ZeXlzNz5kzX4bjJycnceeed+Pn5MWvWLB5//HFuvfVWzGYzTz/9NB06dCAwMBB/f3/X65rNZoKCgujevTtPP/00jzzyCA6HA8MweOCBB+jTp0+tNQQEBFz26rg18VhwWCwWCgsLXY/tdrvrZiSXzikoKCA8PJzKykpKSkoICwur9zoLCwurrdP3mC4/rH3+IleUi0dPNfVRVbX9gg4KCmLFihXVxqdMmcKUKVNcj1evXu36+9ChQ3n33XcBH9xU1b9/f3Jzc8nLy8NisWCz2fjtb39bZY7VamXDhg0MHjyY9PR04uPjMZlq+EUKXHXVVbRr1469e/e6vsLdfvvtnmqhWfTu2paBUR35Iu+ka8za5yp6dNE+DpErzeTB3Zv08Ftf5bHg8Pf3Z+nSpcyZMwen08nUqVOJjY1l1apV9OvXj1GjRjF
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fc = df.assign(direction = df[\"direction\"].astype(\"str\"))\n",
"fc = fc[\n",
" (fc[\"type\"] == \"faceCentered\") & (fc[\"direction\"] == \"[1.0, 1.0, 1.0]\")\n",
"]\n",
"seaborn.set_style('whitegrid')\n",
"seaborn.scatterplot(data = fc, x = \"theta\", y = \"fillets\", hue = \"meshStatus\")"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "b541a36e-f3b2-4b50-bfc9-ec8958666053",
2021-10-06 00:58:37 +05:00
"metadata": {},
"outputs": [],
"source": [
"general: list = db.loadGeneral()\n",
2021-10-10 21:46:54 +05:00
"dfe: list = [] #DataFrame()"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "2d93a051-acab-448b-a7fd-5fe281cc323f",
"metadata": {},
"outputs": [],
"source": [
"def pandasify(listOfDicts):\n",
" dfe: list = []\n",
2021-10-06 00:58:37 +05:00
" \n",
2021-10-10 21:46:54 +05:00
" for entry in listOfDicts:\n",
" structure: dict = entry[\"structure\"]\n",
" extended: dict = db.load(structure[\"type\"], structure[\"direction\"], structure[\"theta\"])\n",
" fields: list = extended.keys()\n",
2021-10-06 00:58:37 +05:00
"\n",
2021-10-10 21:46:54 +05:00
" 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",
" )\n",
" \n",
" return dfe"
2021-10-06 00:58:37 +05:00
]
},
{
"cell_type": "code",
2021-10-10 21:46:54 +05:00
"execution_count": 6,
2021-10-06 00:58:37 +05:00
"id": "437d9432-206e-4d23-a5cb-d9958b65f68a",
"metadata": {},
2021-10-10 21:46:54 +05:00
"outputs": [],
"source": [
"from anisotropy.core.main import Anisotropy"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "756351e4-34b6-49d1-8cdb-29e3def4361d",
"metadata": {},
"outputs": [],
"source": [
"model = Anisotropy()\n",
"params = model.loadFromScratch(\"test_anisotropy.toml\")"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "a6a7b464-045a-4d81-a7ad-eca75590179f",
"metadata": {},
2021-10-06 00:58:37 +05:00
"outputs": [
{
"data": {
"text/plain": [
2021-10-10 21:46:54 +05:00
"171"
2021-10-06 00:58:37 +05:00
]
},
2021-10-10 21:46:54 +05:00
"execution_count": 9,
2021-10-06 00:58:37 +05:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2021-10-10 21:46:54 +05:00
"len(params)"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "cdbc661b-701f-475b-a72a-51b3bd2937ee",
"metadata": {},
"outputs": [],
"source": [
"dfparams = pandasify(params)"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "73e04119-9f70-4e22-928b-caef022c365d",
"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>structure_id</th>\n",
" <th>type</th>\n",
" <th>direction</th>\n",
" <th>theta</th>\n",
" <th>r0</th>\n",
" <th>L</th>\n",
" <th>radius</th>\n",
" <th>filletsEnabled</th>\n",
" <th>fillets</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1</td>\n",
" <td>simple</td>\n",
" <td>[1.0, 0.0, 0.0]</td>\n",
" <td>0.01</td>\n",
" <td>1.0</td>\n",
" <td>2.0</td>\n",
" <td>1.010101</td>\n",
" <td>True</td>\n",
" <td>0.191919</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>2</td>\n",
" <td>simple</td>\n",
" <td>[1.0, 0.0, 0.0]</td>\n",
" <td>0.02</td>\n",
" <td>1.0</td>\n",
" <td>2.0</td>\n",
" <td>1.020408</td>\n",
" <td>True</td>\n",
" <td>0.183900</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>3</td>\n",
" <td>simple</td>\n",
" <td>[1.0, 0.0, 0.0]</td>\n",
" <td>0.03</td>\n",
" <td>1.0</td>\n",
" <td>2.0</td>\n",
" <td>1.030928</td>\n",
" <td>True</td>\n",
" <td>0.175945</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>4</td>\n",
" <td>simple</td>\n",
" <td>[1.0, 0.0, 0.0]</td>\n",
" <td>0.04</td>\n",
" <td>1.0</td>\n",
" <td>2.0</td>\n",
" <td>1.041667</td>\n",
" <td>True</td>\n",
" <td>0.168056</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>5</td>\n",
" <td>simple</td>\n",
" <td>[1.0, 0.0, 0.0]</td>\n",
" <td>0.05</td>\n",
" <td>1.0</td>\n",
" <td>2.0</td>\n",
" <td>1.052632</td>\n",
" <td>True</td>\n",
" <td>0.160234</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",
" </tr>\n",
" <tr>\n",
" <th>79</th>\n",
" <td>80</td>\n",
" <td>simple</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.24</td>\n",
" <td>1.0</td>\n",
" <td>2.0</td>\n",
" <td>1.315789</td>\n",
" <td>True</td>\n",
" <td>0.028070</td>\n",
" </tr>\n",
" <tr>\n",
" <th>80</th>\n",
" <td>81</td>\n",
" <td>simple</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.25</td>\n",
" <td>1.0</td>\n",
" <td>2.0</td>\n",
" <td>1.333333</td>\n",
" <td>True</td>\n",
" <td>0.022222</td>\n",
" </tr>\n",
" <tr>\n",
" <th>81</th>\n",
" <td>82</td>\n",
" <td>simple</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.26</td>\n",
" <td>1.0</td>\n",
" <td>2.0</td>\n",
" <td>1.351351</td>\n",
" <td>True</td>\n",
" <td>0.016517</td>\n",
" </tr>\n",
" <tr>\n",
" <th>82</th>\n",
" <td>83</td>\n",
" <td>simple</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.27</td>\n",
" <td>1.0</td>\n",
" <td>2.0</td>\n",
" <td>1.369863</td>\n",
" <td>True</td>\n",
" <td>0.010959</td>\n",
" </tr>\n",
" <tr>\n",
" <th>83</th>\n",
" <td>84</td>\n",
" <td>simple</td>\n",
" <td>[1.0, 1.0, 1.0]</td>\n",
" <td>0.28</td>\n",
" <td>1.0</td>\n",
" <td>2.0</td>\n",
" <td>1.388889</td>\n",
" <td>True</td>\n",
" <td>0.005556</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>84 rows × 9 columns</p>\n",
"</div>"
],
"text/plain": [
" structure_id type direction theta r0 L radius \\\n",
"0 1 simple [1.0, 0.0, 0.0] 0.01 1.0 2.0 1.010101 \n",
"1 2 simple [1.0, 0.0, 0.0] 0.02 1.0 2.0 1.020408 \n",
"2 3 simple [1.0, 0.0, 0.0] 0.03 1.0 2.0 1.030928 \n",
"3 4 simple [1.0, 0.0, 0.0] 0.04 1.0 2.0 1.041667 \n",
"4 5 simple [1.0, 0.0, 0.0] 0.05 1.0 2.0 1.052632 \n",
".. ... ... ... ... ... ... ... \n",
"79 80 simple [1.0, 1.0, 1.0] 0.24 1.0 2.0 1.315789 \n",
"80 81 simple [1.0, 1.0, 1.0] 0.25 1.0 2.0 1.333333 \n",
"81 82 simple [1.0, 1.0, 1.0] 0.26 1.0 2.0 1.351351 \n",
"82 83 simple [1.0, 1.0, 1.0] 0.27 1.0 2.0 1.369863 \n",
"83 84 simple [1.0, 1.0, 1.0] 0.28 1.0 2.0 1.388889 \n",
"\n",
" filletsEnabled fillets \n",
"0 True 0.191919 \n",
"1 True 0.183900 \n",
"2 True 0.175945 \n",
"3 True 0.168056 \n",
"4 True 0.160234 \n",
".. ... ... \n",
"79 True 0.028070 \n",
"80 True 0.022222 \n",
"81 True 0.016517 \n",
"82 True 0.010959 \n",
"83 True 0.005556 \n",
"\n",
"[84 rows x 9 columns]"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dfparams.structure[dfparams.structure.type == \"simple\"]"
2021-10-06 00:58:37 +05:00
]
},
{
"cell_type": "code",
"execution_count": null,
2021-10-10 21:46:54 +05:00
"id": "c7abc63e-960c-4157-99b3-d947acf10c10",
2021-10-06 00:58:37 +05:00
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
2021-10-23 17:36:17 +05:00
"display_name": "Python 3 (ipykernel)",
2021-10-06 00:58:37 +05:00
"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-10-12 22:31:57 +05:00
"version": "3.10.0"
2021-10-06 00:58:37 +05:00
}
},
"nbformat": 4,
"nbformat_minor": 5
}