From 7b58e59c9018e0779f28d56e83ce7262f5d3e3e2 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 447cf0f..3268a2a 100644 --- a/DAS/simulator.py +++ b/DAS/simulator.py @@ -255,6 +255,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, self.config, missingVector) return self.result