From 7d35a2b70363d519b293de807fdd9412a922a174 Mon Sep 17 00:00:00 2001 From: Marvin Tollnitsch <marvin.tollnitsch@rwth-aachen.de> Date: Thu, 18 May 2023 13:35:23 +0200 Subject: [PATCH] removed sys.path.append; Renamed fig variables Signed-off-by: Marvin Tollnitsch <marvin.tollnitsch@rwth-aachen.de> --- .../06_LinearStateSpaceNodal/EMT_Ph1_SSN_DufourRLC.ipynb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lectures/06_LinearStateSpaceNodal/EMT_Ph1_SSN_DufourRLC.ipynb b/lectures/06_LinearStateSpaceNodal/EMT_Ph1_SSN_DufourRLC.ipynb index 305e46d..f94c4d0 100644 --- a/lectures/06_LinearStateSpaceNodal/EMT_Ph1_SSN_DufourRLC.ipynb +++ b/lectures/06_LinearStateSpaceNodal/EMT_Ph1_SSN_DufourRLC.ipynb @@ -151,8 +151,6 @@ "source": [ "import villas.dataprocessing.readtools as rt\n", "import matplotlib.pyplot as plt\n", - "import sys\n", - "sys.path.append(\"/home/mto/dpsim/build/\")\n", "import dpsimpy\n", "#%matplotlib widget\n", "\n", @@ -412,7 +410,7 @@ "ts_emt_ph1_dufour_rlc_ssn = rt.read_timeseries_dpsim(work_dir_SSN + log_name_SSN + '.csv')\n", "\n", "#Plot Results\n", - "fig3 = plt.figure()\n", + "fig4 = plt.figure()\n", "plt.plot(ts_emt_ph1_dufour_rlc['v3'].time, ts_emt_ph1_dufour_rlc['v3'].values, \"b-\", label='V_3')\n", "plt.plot(ts_emt_ph1_dufour_rlc_ssn['v3'].time, ts_emt_ph1_dufour_rlc_ssn['v3'].values, \"c--\", label='V_3_SSN')\n", "plt.title('Voltages Node 3')\n", @@ -420,7 +418,7 @@ "plt.ylabel('Voltages [V]')\n", "plt.legend(loc = 4)\n", "\n", - "fig4 = plt.figure()\n", + "fig5 = plt.figure()\n", "plt.plot(ts_emt_ph1_dufour_rlc['i_c1'].time, ts_emt_ph1_dufour_rlc['i_c1'].values, \"m-\", label='I_C1')\n", "plt.plot(ts_emt_ph1_dufour_rlc_ssn['i_c1'].time, ts_emt_ph1_dufour_rlc_ssn['i_c1'].values, \"y--\", label='I_C1_SSN')\n", "plt.title('Capacitor currents')\n", @@ -428,7 +426,7 @@ "plt.ylabel('Currents [A]')\n", "plt.legend(loc = 4)\n", "\n", - "fig4 = plt.figure()\n", + "fig6 = plt.figure()\n", "plt.plot(ts_emt_ph1_dufour_rlc['i_rlc'].time, ts_emt_ph1_dufour_rlc['i_rlc'].values, \"m-\", label='I_RLC')\n", "plt.plot(ts_emt_ph1_dufour_rlc_ssn['i_rlc'].time, ts_emt_ph1_dufour_rlc_ssn['i_rlc'].values, \"y--\", label='I_RLC_SSN')\n", "plt.title('RLC currents')\n", -- GitLab