From 8928d48428cca17490bdf0ef58d40535aade61cc Mon Sep 17 00:00:00 2001 From: Georg Date: Wed, 8 Feb 2023 14:20:24 +0100 Subject: [PATCH] mini change to figname for saving --- KW Vorlage.ipynb | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/KW Vorlage.ipynb b/KW Vorlage.ipynb index 9442804..3be3a9c 100644 --- a/KW Vorlage.ipynb +++ b/KW Vorlage.ipynb @@ -1,11 +1,12 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "# Markdown for converting jupyter notebook into a python script for looping\n", - "- make a copy of \"KW Vorlage.ipynb\" (will be deleted later)\n", + "- make a copy of \"KW Vorlage.ipynb\" (will be deleted later) and open it\n", "- changes to called functions\n", " - in the Ausgleichsbecken_class file, in the update_level() method, comment out the raise_Exception('Reservoir ran empty') lines 228/229\n", " - this might lead to a warning, for a divide by 0 situation, which can usually be ignored:\n", @@ -63,7 +64,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -88,12 +89,12 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ - "# code cell 1\n", - "# for loop creation\n", + "# # code cell 1\n", + "# # for loop creation\n", "\n", "# Area_list = np.round(np.arange(40.,90.,5.),1)\n", "# Kp_list = np.round(np.arange(0.1,3.0,0.2),1)\n", @@ -161,7 +162,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -650,12 +651,12 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ - "# code cell 10\n", - "# code for plotting and safing the figures generated in the loop\n", + "# # code cell 10\n", + "# # code for plotting and safing the figures generated in the loop\n", "\n", "# level_plot_min = 0\n", "# level_plot_max = 3\n", @@ -707,14 +708,14 @@ "# fig3.tight_layout()\n", "# plt.show()\n", "\n", - "# figname = 'Simulation Vorlage\\KW_Vorlage_Fläche_'+str(Res_area_base)+'_Ti_'+str(Con_T_i)+'_Kp'+str(round(Con_K_p,1))+'.png'\n", + "# figname = 'Simulation Vorlage\\KW_Vorlage_Fläche_'+str(Res_area_base)+'_Kp_'+str(round(Con_K_p,1))+'_Ti_'+str(Con_T_i)+'.png'\n", "# fig3.savefig(figname)" ] } ], "metadata": { "kernelspec": { - "display_name": "Python 3.8.13 ('Georg_DT_Slot3')", + "display_name": "DT_Slot3", "language": "python", "name": "python3" }, @@ -728,12 +729,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" } } },