qiime2 / q2-diversity

BSD 3-Clause "New" or "Revised" License
4 stars 45 forks source link

Closes `plt.Figure()` after saving mantel test plot to free up memory #316

Closed valentynbez closed 3 years ago

valentynbez commented 3 years ago

In the code, beta correlation mantel() in _visualizer.py opens an instance of plt.Figure() and doesn't close it, consuming memory. Added a line to close the instance and free up memory after saving.

ebolyen commented 3 years ago

Going to let the tests run on this and then I'll merge :)