Circuitscape.py
Circuitscape.py copied to clipboard
Memory not released when computations complete
At least when called from csgui.exe, Circuitscape continues to consume memory after calculations are complete. This is presumably because large arrays are not deleted once results are returned. This can be problematic when running on shared servers.
The GUI does not seem to be holding on to any global reference to the circuitscape.Compute, there are also no large static references. Not sure about pyamg.
Calling gc in the GUI after displaying the result may probably help?
Do we have any global dictionaries?