From 205ffe367cbe32a7bec4cd721cb0707ae5f67438 Mon Sep 17 00:00:00 2001
From: pgleeson
Date: Tue, 27 Aug 2024 09:46:08 +0100
Subject: [PATCH] Don't show rlc plot in test
---
examples/MDF/switched_rlc.py | 5 +++++
test_all.sh | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/examples/MDF/switched_rlc.py b/examples/MDF/switched_rlc.py
index 01d8638d..4346c824 100644
--- a/examples/MDF/switched_rlc.py
+++ b/examples/MDF/switched_rlc.py
@@ -31,6 +31,11 @@ def run_simulation(mod_graph, duration=2, dt=0.001):
V_values.append(V)
t += dt
+ print(
+ "Finished simulation of MDF model: %s of duration: %s sec"
+ % (mod_graph.id, duration)
+ )
+
plt.figure(figsize=(10, 5))
plt.plot(times, i_L_values, label="Inductor Current (i_L)")
plt.plot(times, i_R_values, label="Resistor Current (i_R)")
diff --git a/test_all.sh b/test_all.sh
index 1525870d..4d09a4d1 100755
--- a/test_all.sh
+++ b/test_all.sh
@@ -22,7 +22,7 @@ python states.py -run -nogui
python abc_conditions.py -run
python params_funcs.py -run
python newton.py -run -nogui
-python switched_rlc.py -run
+python switched_rlc.py -run -nogui
## Test exporting to NeuroML