fixup: close plot to release memory
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
8867f54a22
commit
7b58e59c90
|
@ -255,6 +255,7 @@ class Simulator:
|
||||||
os.makedirs("results/"+self.execID)
|
os.makedirs("results/"+self.execID)
|
||||||
filePath = "results/"+self.execID+"/"+str(self.shape)+".png"
|
filePath = "results/"+self.execID+"/"+str(self.shape)+".png"
|
||||||
matplotlib.pyplot.savefig(filePath)
|
matplotlib.pyplot.savefig(filePath)
|
||||||
|
matplotlib.pyplot.close()
|
||||||
|
|
||||||
self.result.populate(self.shape, self.config, missingVector)
|
self.result.populate(self.shape, self.config, missingVector)
|
||||||
return self.result
|
return self.result
|
||||||
|
|
Loading…
Reference in New Issue