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 8867f54a22
commit 7b58e59c90
No known key found for this signature in database
GPG Key ID: 0FE274EE8C95166E
1 changed files with 1 additions and 0 deletions

View File

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