added KW Arriach Juypter Notebbok
This commit is contained in:
154
KW Lamnitz.ipynb
154
KW Lamnitz.ipynb
@@ -2,7 +2,7 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 26,
|
||||
"execution_count": 1,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
@@ -27,7 +27,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 27,
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
@@ -85,7 +85,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 28,
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
@@ -159,7 +159,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 29,
|
||||
"execution_count": 4,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
@@ -200,94 +200,9 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 30,
|
||||
"execution_count": 5,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Turbine has the following attributes: \n",
|
||||
"----------------------------- \n",
|
||||
"Type = Francis \n",
|
||||
"Nominal flux = 1.0 m³/s \n",
|
||||
"Nominal pressure = 10.197 mWS\n",
|
||||
"Nominal LA = 100.0 % \n",
|
||||
"Closing time = 600.0 s \n",
|
||||
"Current flux = 1.0 m³/s \n",
|
||||
"Current pipe pressure = 11.217 mWS \n",
|
||||
"Current LA = 95.35 % \n",
|
||||
"Simulation timestep = 0.06666666666666667 s \n",
|
||||
"----------------------------- \n",
|
||||
"\n",
|
||||
"None\n",
|
||||
"The cuboid reservoir has the following attributes: \n",
|
||||
"----------------------------- \n",
|
||||
"Base area = 20.0 m² \n",
|
||||
"Outflux area = 0.636 m² \n",
|
||||
"Current level = 1.25 m\n",
|
||||
"Critical level low = 0.75 m \n",
|
||||
"Critical level high = inf m \n",
|
||||
"Volume in reservoir = 25.0 m³ \n",
|
||||
"Current influx = 1.0 m³/s \n",
|
||||
"Current outflux = 1.0 m³/s \n",
|
||||
"Current outflux vel = 1.572 m/s \n",
|
||||
"Current pipe pressure = 1.005 mWS \n",
|
||||
"Simulation timestep = 0.00101010101010101 s \n",
|
||||
"Density of liquid = 998.2067 kg/m³ \n",
|
||||
"----------------------------- \n",
|
||||
"\n",
|
||||
"None\n",
|
||||
"The pipeline has the following attributes: \n",
|
||||
"----------------------------- \n",
|
||||
"Length = 2000.0 m \n",
|
||||
"Diameter = 0.9 m \n",
|
||||
"Hydraulic head = 130.0 m \n",
|
||||
"Number of segments = 50 \n",
|
||||
"Number of nodes = 51 \n",
|
||||
"Length per segments = 40.0 m \n",
|
||||
"Pipeline angle = 0.065 rad \n",
|
||||
"Pipeline angle = 3.727° \n",
|
||||
"Darcy friction factor = 0.015 \n",
|
||||
"Density of liquid = 998.2067 kg/m³ \n",
|
||||
"Pressure wave vel. = 600.0 m/s \n",
|
||||
"Simulation timestep = 0.06666666666666667 s \n",
|
||||
"----------------------------- \n",
|
||||
"Velocity and pressure distribution are vectors and are accessible via the \n",
|
||||
" get_current_velocity_distribution() and get_current_pressure_distribution() methods of the pipeline object. \n",
|
||||
" See also get_lowest_XXX_per_node() and get_highest_XXX_per_node() methods.\n",
|
||||
"None\n",
|
||||
"Turbine has the following attributes: \n",
|
||||
"----------------------------- \n",
|
||||
"Type = Francis \n",
|
||||
"Nominal flux = 1.1 m³/s \n",
|
||||
"Nominal pressure = 120.0 mWS\n",
|
||||
"Nominal LA = 100.0 % \n",
|
||||
"Closing time = 60.0 s \n",
|
||||
"Current flux = 1.0 m³/s \n",
|
||||
"Current pipe pressure = 126.624 mWS \n",
|
||||
"Current LA = 88.5 % \n",
|
||||
"Simulation timestep = 0.06666666666666667 s \n",
|
||||
"----------------------------- \n",
|
||||
"\n",
|
||||
"None\n",
|
||||
"Controller has the following attributes: \n",
|
||||
"----------------------------- \n",
|
||||
"Type = PI Controller \n",
|
||||
"Setpoint = 1.25 \n",
|
||||
"Deadband = 0.0 \n",
|
||||
"Proportionality constant = 1.3 \n",
|
||||
"Integration time = 200.0 [s] \n",
|
||||
"Current control variable = 0.885 \n",
|
||||
"Lower limit CV = 0.0 \n",
|
||||
"Upper limit CV = 1.0 \n",
|
||||
"Simulation timestep = 0.06666666666666667 [s] \n",
|
||||
"----------------------------- \n",
|
||||
"\n",
|
||||
"None\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# code cell 4\n",
|
||||
"# using the get_info() methods\n",
|
||||
@@ -309,7 +224,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 20,
|
||||
"execution_count": 6,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
@@ -374,7 +289,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 21,
|
||||
"execution_count": 7,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
@@ -398,7 +313,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 22,
|
||||
"execution_count": 8,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
@@ -449,7 +364,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 23,
|
||||
"execution_count": 9,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
@@ -547,7 +462,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 24,
|
||||
"execution_count": 10,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
@@ -634,12 +549,49 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 25,
|
||||
"execution_count": 15,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Warning: Cannot change to a different GUI toolkit: qt. Using qt5 instead.\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"ename": "SystemError",
|
||||
"evalue": "initialization of QtCore failed without raising an exception",
|
||||
"output_type": "error",
|
||||
"traceback": [
|
||||
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
|
||||
"\u001b[1;31mSystemError\u001b[0m Traceback (most recent call last)",
|
||||
"\u001b[1;32mc:\\Users\\georg\\Documents\\Persönliche Dokumente\\Arbeit\\Kelag\\Coding\\Python\\DT_Slot_3\\Kelag_DT_Slot_3\\KW Lamnitz.ipynb Cell 15\u001b[0m in \u001b[0;36m<cell line: 3>\u001b[1;34m()\u001b[0m\n\u001b[0;32m <a href='vscode-notebook-cell:/c%3A/Users/georg/Documents/Pers%C3%B6nliche%20Dokumente/Arbeit/Kelag/Coding/Python/DT_Slot_3/Kelag_DT_Slot_3/KW%20Lamnitz.ipynb#X20sZmlsZQ%3D%3D?line=0'>1</a>\u001b[0m \u001b[39m# code cell 10\u001b[39;00m\n\u001b[0;32m <a href='vscode-notebook-cell:/c%3A/Users/georg/Documents/Pers%C3%B6nliche%20Dokumente/Arbeit/Kelag/Coding/Python/DT_Slot_3/Kelag_DT_Slot_3/KW%20Lamnitz.ipynb#X20sZmlsZQ%3D%3D?line=1'>2</a>\u001b[0m \u001b[39m# code for plotting and safing the figures generated in the loop\u001b[39;00m\n\u001b[1;32m----> <a href='vscode-notebook-cell:/c%3A/Users/georg/Documents/Pers%C3%B6nliche%20Dokumente/Arbeit/Kelag/Coding/Python/DT_Slot_3/Kelag_DT_Slot_3/KW%20Lamnitz.ipynb#X20sZmlsZQ%3D%3D?line=2'>3</a>\u001b[0m get_ipython()\u001b[39m.\u001b[39;49mrun_line_magic(\u001b[39m'\u001b[39;49m\u001b[39mmatplotlib\u001b[39;49m\u001b[39m'\u001b[39;49m, \u001b[39m'\u001b[39;49m\u001b[39mqt\u001b[39;49m\u001b[39m'\u001b[39;49m)\n\u001b[0;32m <a href='vscode-notebook-cell:/c%3A/Users/georg/Documents/Pers%C3%B6nliche%20Dokumente/Arbeit/Kelag/Coding/Python/DT_Slot_3/Kelag_DT_Slot_3/KW%20Lamnitz.ipynb#X20sZmlsZQ%3D%3D?line=4'>5</a>\u001b[0m level_plot_min \u001b[39m=\u001b[39m \u001b[39m0\u001b[39m\n\u001b[0;32m <a href='vscode-notebook-cell:/c%3A/Users/georg/Documents/Pers%C3%B6nliche%20Dokumente/Arbeit/Kelag/Coding/Python/DT_Slot_3/Kelag_DT_Slot_3/KW%20Lamnitz.ipynb#X20sZmlsZQ%3D%3D?line=5'>6</a>\u001b[0m level_plot_max \u001b[39m=\u001b[39m \u001b[39m3\u001b[39m\n",
|
||||
"File \u001b[1;32mc:\\Users\\georg\\anaconda3\\envs\\DT_Slot3\\lib\\site-packages\\IPython\\core\\interactiveshell.py:2304\u001b[0m, in \u001b[0;36mInteractiveShell.run_line_magic\u001b[1;34m(self, magic_name, line, _stack_depth)\u001b[0m\n\u001b[0;32m 2302\u001b[0m kwargs[\u001b[39m'\u001b[39m\u001b[39mlocal_ns\u001b[39m\u001b[39m'\u001b[39m] \u001b[39m=\u001b[39m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39mget_local_scope(stack_depth)\n\u001b[0;32m 2303\u001b[0m \u001b[39mwith\u001b[39;00m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39mbuiltin_trap:\n\u001b[1;32m-> 2304\u001b[0m result \u001b[39m=\u001b[39m fn(\u001b[39m*\u001b[39;49margs, \u001b[39m*\u001b[39;49m\u001b[39m*\u001b[39;49mkwargs)\n\u001b[0;32m 2305\u001b[0m \u001b[39mreturn\u001b[39;00m result\n",
|
||||
"File \u001b[1;32mc:\\Users\\georg\\anaconda3\\envs\\DT_Slot3\\lib\\site-packages\\IPython\\core\\magics\\pylab.py:99\u001b[0m, in \u001b[0;36mPylabMagics.matplotlib\u001b[1;34m(self, line)\u001b[0m\n\u001b[0;32m 97\u001b[0m \u001b[39mprint\u001b[39m(\u001b[39m\"\u001b[39m\u001b[39mAvailable matplotlib backends: \u001b[39m\u001b[39m%s\u001b[39;00m\u001b[39m\"\u001b[39m \u001b[39m%\u001b[39m backends_list)\n\u001b[0;32m 98\u001b[0m \u001b[39melse\u001b[39;00m:\n\u001b[1;32m---> 99\u001b[0m gui, backend \u001b[39m=\u001b[39m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49mshell\u001b[39m.\u001b[39;49menable_matplotlib(args\u001b[39m.\u001b[39;49mgui\u001b[39m.\u001b[39;49mlower() \u001b[39mif\u001b[39;49;00m \u001b[39misinstance\u001b[39;49m(args\u001b[39m.\u001b[39;49mgui, \u001b[39mstr\u001b[39;49m) \u001b[39melse\u001b[39;49;00m args\u001b[39m.\u001b[39;49mgui)\n\u001b[0;32m 100\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_show_matplotlib_backend(args\u001b[39m.\u001b[39mgui, backend)\n",
|
||||
"File \u001b[1;32mc:\\Users\\georg\\anaconda3\\envs\\DT_Slot3\\lib\\site-packages\\IPython\\core\\interactiveshell.py:3487\u001b[0m, in \u001b[0;36mInteractiveShell.enable_matplotlib\u001b[1;34m(self, gui)\u001b[0m\n\u001b[0;32m 3483\u001b[0m \u001b[39mprint\u001b[39m(\u001b[39m'\u001b[39m\u001b[39mWarning: Cannot change to a different GUI toolkit: \u001b[39m\u001b[39m%s\u001b[39;00m\u001b[39m.\u001b[39m\u001b[39m'\u001b[39m\n\u001b[0;32m 3484\u001b[0m \u001b[39m'\u001b[39m\u001b[39m Using \u001b[39m\u001b[39m%s\u001b[39;00m\u001b[39m instead.\u001b[39m\u001b[39m'\u001b[39m \u001b[39m%\u001b[39m (gui, \u001b[39mself\u001b[39m\u001b[39m.\u001b[39mpylab_gui_select))\n\u001b[0;32m 3485\u001b[0m gui, backend \u001b[39m=\u001b[39m pt\u001b[39m.\u001b[39mfind_gui_and_backend(\u001b[39mself\u001b[39m\u001b[39m.\u001b[39mpylab_gui_select)\n\u001b[1;32m-> 3487\u001b[0m pt\u001b[39m.\u001b[39;49mactivate_matplotlib(backend)\n\u001b[0;32m 3488\u001b[0m configure_inline_support(\u001b[39mself\u001b[39m, backend)\n\u001b[0;32m 3490\u001b[0m \u001b[39m# Now we must activate the gui pylab wants to use, and fix %run to take\u001b[39;00m\n\u001b[0;32m 3491\u001b[0m \u001b[39m# plot updates into account\u001b[39;00m\n",
|
||||
"File \u001b[1;32mc:\\Users\\georg\\anaconda3\\envs\\DT_Slot3\\lib\\site-packages\\IPython\\core\\pylabtools.py:359\u001b[0m, in \u001b[0;36mactivate_matplotlib\u001b[1;34m(backend)\u001b[0m\n\u001b[0;32m 354\u001b[0m \u001b[39m# Due to circular imports, pyplot may be only partially initialised\u001b[39;00m\n\u001b[0;32m 355\u001b[0m \u001b[39m# when this function runs.\u001b[39;00m\n\u001b[0;32m 356\u001b[0m \u001b[39m# So avoid needing matplotlib attribute-lookup to access pyplot.\u001b[39;00m\n\u001b[0;32m 357\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39mmatplotlib\u001b[39;00m \u001b[39mimport\u001b[39;00m pyplot \u001b[39mas\u001b[39;00m plt\n\u001b[1;32m--> 359\u001b[0m plt\u001b[39m.\u001b[39;49mswitch_backend(backend)\n\u001b[0;32m 361\u001b[0m plt\u001b[39m.\u001b[39mshow\u001b[39m.\u001b[39m_needmain \u001b[39m=\u001b[39m \u001b[39mFalse\u001b[39;00m\n\u001b[0;32m 362\u001b[0m \u001b[39m# We need to detect at runtime whether show() is called by the user.\u001b[39;00m\n\u001b[0;32m 363\u001b[0m \u001b[39m# For this, we wrap it into a decorator which adds a 'called' flag.\u001b[39;00m\n",
|
||||
"File \u001b[1;32mc:\\Users\\georg\\anaconda3\\envs\\DT_Slot3\\lib\\site-packages\\matplotlib\\pyplot.py:282\u001b[0m, in \u001b[0;36mswitch_backend\u001b[1;34m(newbackend)\u001b[0m\n\u001b[0;32m 275\u001b[0m \u001b[39m# Backends are implemented as modules, but \"inherit\" default method\u001b[39;00m\n\u001b[0;32m 276\u001b[0m \u001b[39m# implementations from backend_bases._Backend. This is achieved by\u001b[39;00m\n\u001b[0;32m 277\u001b[0m \u001b[39m# creating a \"class\" that inherits from backend_bases._Backend and whose\u001b[39;00m\n\u001b[0;32m 278\u001b[0m \u001b[39m# body is filled with the module's globals.\u001b[39;00m\n\u001b[0;32m 280\u001b[0m backend_name \u001b[39m=\u001b[39m cbook\u001b[39m.\u001b[39m_backend_module_name(newbackend)\n\u001b[1;32m--> 282\u001b[0m \u001b[39mclass\u001b[39;00m \u001b[39mbackend_mod\u001b[39;00m(matplotlib\u001b[39m.\u001b[39mbackend_bases\u001b[39m.\u001b[39m_Backend):\n\u001b[0;32m 283\u001b[0m \u001b[39mlocals\u001b[39m()\u001b[39m.\u001b[39mupdate(\u001b[39mvars\u001b[39m(importlib\u001b[39m.\u001b[39mimport_module(backend_name)))\n\u001b[0;32m 285\u001b[0m required_framework \u001b[39m=\u001b[39m _get_required_interactive_framework(backend_mod)\n",
|
||||
"File \u001b[1;32mc:\\Users\\georg\\anaconda3\\envs\\DT_Slot3\\lib\\site-packages\\matplotlib\\pyplot.py:283\u001b[0m, in \u001b[0;36mswitch_backend.<locals>.backend_mod\u001b[1;34m()\u001b[0m\n\u001b[0;32m 282\u001b[0m \u001b[39mclass\u001b[39;00m \u001b[39mbackend_mod\u001b[39;00m(matplotlib\u001b[39m.\u001b[39mbackend_bases\u001b[39m.\u001b[39m_Backend):\n\u001b[1;32m--> 283\u001b[0m \u001b[39mlocals\u001b[39m()\u001b[39m.\u001b[39mupdate(\u001b[39mvars\u001b[39m(importlib\u001b[39m.\u001b[39;49mimport_module(backend_name)))\n",
|
||||
"File \u001b[1;32mc:\\Users\\georg\\anaconda3\\envs\\DT_Slot3\\lib\\importlib\\__init__.py:127\u001b[0m, in \u001b[0;36mimport_module\u001b[1;34m(name, package)\u001b[0m\n\u001b[0;32m 125\u001b[0m \u001b[39mbreak\u001b[39;00m\n\u001b[0;32m 126\u001b[0m level \u001b[39m+\u001b[39m\u001b[39m=\u001b[39m \u001b[39m1\u001b[39m\n\u001b[1;32m--> 127\u001b[0m \u001b[39mreturn\u001b[39;00m _bootstrap\u001b[39m.\u001b[39;49m_gcd_import(name[level:], package, level)\n",
|
||||
"File \u001b[1;32m<frozen importlib._bootstrap>:1014\u001b[0m, in \u001b[0;36m_gcd_import\u001b[1;34m(name, package, level)\u001b[0m\n",
|
||||
"File \u001b[1;32m<frozen importlib._bootstrap>:991\u001b[0m, in \u001b[0;36m_find_and_load\u001b[1;34m(name, import_)\u001b[0m\n",
|
||||
"File \u001b[1;32m<frozen importlib._bootstrap>:975\u001b[0m, in \u001b[0;36m_find_and_load_unlocked\u001b[1;34m(name, import_)\u001b[0m\n",
|
||||
"File \u001b[1;32m<frozen importlib._bootstrap>:671\u001b[0m, in \u001b[0;36m_load_unlocked\u001b[1;34m(spec)\u001b[0m\n",
|
||||
"File \u001b[1;32m<frozen importlib._bootstrap_external>:843\u001b[0m, in \u001b[0;36mexec_module\u001b[1;34m(self, module)\u001b[0m\n",
|
||||
"File \u001b[1;32m<frozen importlib._bootstrap>:219\u001b[0m, in \u001b[0;36m_call_with_frames_removed\u001b[1;34m(f, *args, **kwds)\u001b[0m\n",
|
||||
"File \u001b[1;32mc:\\Users\\georg\\anaconda3\\envs\\DT_Slot3\\lib\\site-packages\\matplotlib\\backends\\backend_qt5agg.py:7\u001b[0m, in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[0;32m 4\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39m.\u001b[39;00m\u001b[39m.\u001b[39;00m \u001b[39mimport\u001b[39;00m backends\n\u001b[0;32m 6\u001b[0m backends\u001b[39m.\u001b[39m_QT_FORCE_QT5_BINDING \u001b[39m=\u001b[39m \u001b[39mTrue\u001b[39;00m\n\u001b[1;32m----> 7\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39m.\u001b[39;00m\u001b[39mbackend_qtagg\u001b[39;00m \u001b[39mimport\u001b[39;00m ( \u001b[39m# noqa: F401, E402 # pylint: disable=W0611\u001b[39;00m\n\u001b[0;32m 8\u001b[0m _BackendQTAgg, FigureCanvasQTAgg, FigureManagerQT, NavigationToolbar2QT,\n\u001b[0;32m 9\u001b[0m backend_version, FigureCanvasAgg, FigureCanvasQT\n\u001b[0;32m 10\u001b[0m )\n\u001b[0;32m 13\u001b[0m \u001b[39m@_BackendQTAgg\u001b[39m\u001b[39m.\u001b[39mexport\n\u001b[0;32m 14\u001b[0m \u001b[39mclass\u001b[39;00m \u001b[39m_BackendQT5Agg\u001b[39;00m(_BackendQTAgg):\n\u001b[0;32m 15\u001b[0m \u001b[39mpass\u001b[39;00m\n",
|
||||
"File \u001b[1;32mc:\\Users\\georg\\anaconda3\\envs\\DT_Slot3\\lib\\site-packages\\matplotlib\\backends\\backend_qtagg.py:9\u001b[0m, in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[0;32m 5\u001b[0m \u001b[39mimport\u001b[39;00m \u001b[39mctypes\u001b[39;00m\n\u001b[0;32m 7\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39mmatplotlib\u001b[39;00m\u001b[39m.\u001b[39;00m\u001b[39mtransforms\u001b[39;00m \u001b[39mimport\u001b[39;00m Bbox\n\u001b[1;32m----> 9\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39m.\u001b[39;00m\u001b[39mqt_compat\u001b[39;00m \u001b[39mimport\u001b[39;00m QT_API, _enum, _setDevicePixelRatio\n\u001b[0;32m 10\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39m.\u001b[39;00m\u001b[39m.\u001b[39;00m \u001b[39mimport\u001b[39;00m cbook\n\u001b[0;32m 11\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39m.\u001b[39;00m\u001b[39mbackend_agg\u001b[39;00m \u001b[39mimport\u001b[39;00m FigureCanvasAgg\n",
|
||||
"File \u001b[1;32mc:\\Users\\georg\\anaconda3\\envs\\DT_Slot3\\lib\\site-packages\\matplotlib\\backends\\qt_compat.py:137\u001b[0m, in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[0;32m 135\u001b[0m \u001b[39mfor\u001b[39;00m _setup, QT_API \u001b[39min\u001b[39;00m _candidates:\n\u001b[0;32m 136\u001b[0m \u001b[39mtry\u001b[39;00m:\n\u001b[1;32m--> 137\u001b[0m _setup()\n\u001b[0;32m 138\u001b[0m \u001b[39mexcept\u001b[39;00m \u001b[39mImportError\u001b[39;00m:\n\u001b[0;32m 139\u001b[0m \u001b[39mcontinue\u001b[39;00m\n",
|
||||
"File \u001b[1;32mc:\\Users\\georg\\anaconda3\\envs\\DT_Slot3\\lib\\site-packages\\matplotlib\\backends\\qt_compat.py:102\u001b[0m, in \u001b[0;36m_setup_pyqt5plus\u001b[1;34m()\u001b[0m\n\u001b[0;32m 100\u001b[0m \u001b[39mdef\u001b[39;00m \u001b[39m_isdeleted\u001b[39m(obj): \u001b[39mreturn\u001b[39;00m \u001b[39mnot\u001b[39;00m shiboken6\u001b[39m.\u001b[39misValid(obj)\n\u001b[0;32m 101\u001b[0m \u001b[39melif\u001b[39;00m QT_API \u001b[39m==\u001b[39m QT_API_PYQT5:\n\u001b[1;32m--> 102\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39mPyQt5\u001b[39;00m \u001b[39mimport\u001b[39;00m QtCore, QtGui, QtWidgets\n\u001b[0;32m 103\u001b[0m \u001b[39mimport\u001b[39;00m \u001b[39msip\u001b[39;00m\n\u001b[0;32m 104\u001b[0m __version__ \u001b[39m=\u001b[39m QtCore\u001b[39m.\u001b[39mPYQT_VERSION_STR\n",
|
||||
"\u001b[1;31mSystemError\u001b[0m: initialization of QtCore failed without raising an exception"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"# code cell 10\n",
|
||||
"# code for plotting and safing the figures generated in the loop\n",
|
||||
"%matplotlib qt\n",
|
||||
"\n",
|
||||
"level_plot_min = 0\n",
|
||||
"level_plot_max = 3\n",
|
||||
@@ -694,7 +646,7 @@
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3.8.13 ('Georg_DT_Slot3')",
|
||||
"display_name": "DT_Slot3",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
@@ -708,12 +660,12 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.8.13"
|
||||
"version": "3.8.16"
|
||||
},
|
||||
"orig_nbformat": 4,
|
||||
"vscode": {
|
||||
"interpreter": {
|
||||
"hash": "84fb123bdc47ab647d3782661abcbe80fbb79236dd2f8adf4cef30e8755eb2cd"
|
||||
"hash": "06e42ed9520aaad7103456df165a31ea40da0f41ac9dffb743274e5e314689f3"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user