fixup: close plot to release memory
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
04ad03f175
commit
75a9b484e9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue