fixup: close plot to release memory

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2023-03-27 23:28:12 +02:00
parent 04ad03f175
commit 75a9b484e9
No known key found for this signature in database
GPG Key ID: 0FE274EE8C95166E
1 changed files with 1 additions and 0 deletions

View File

@ -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