From 75a9b484e915f5a804486936a50d25acc1c54793 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Mon, 27 Mar 2023 23:28:12 +0200 Subject: [PATCH] fixup: close plot to release memory Signed-off-by: Csaba Kiraly --- DAS/simulator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/DAS/simulator.py b/DAS/simulator.py index c2f4654..04d1eca 100644 --- a/DAS/simulator.py +++ b/DAS/simulator.py @@ -251,6 +251,7 @@ class Simulator: os.makedirs("results/"+self.execID) filePath = "results/"+self.execID+"/"+str(self.shape)+".png" matplotlib.pyplot.savefig(filePath) + matplotlib.pyplot.close() self.result.populate(self.shape, missingVector) return self.result