This is an automated email from the ASF dual-hosted git repository. rkk pushed a commit to branch tmp-stv in repository https://gitbox.apache.org/repos/asf/sdap-nexus.git
commit 2210a24c0111b938d376aed39ed2dc17a0389705 Author: rileykk <[email protected]> AuthorDate: Mon May 6 15:22:03 2024 -0700 minor updates --- analysis/webservice/algorithms/Tomogram.py | 2 ++ analysis/webservice/algorithms/Tomogram3D.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/analysis/webservice/algorithms/Tomogram.py b/analysis/webservice/algorithms/Tomogram.py index 37ddc85..51ce091 100644 --- a/analysis/webservice/algorithms/Tomogram.py +++ b/analysis/webservice/algorithms/Tomogram.py @@ -633,6 +633,7 @@ class ElevationTomoResults(NexusResults): plt.savefig(buffer, format='png', facecolor='white') buffer.seek(0) + plt.close() return buffer.read() @@ -678,4 +679,5 @@ class ProfileTomoResults(NexusResults): plt.savefig(buffer, format='png', facecolor='white') buffer.seek(0) + plt.close() return buffer.read() diff --git a/analysis/webservice/algorithms/Tomogram3D.py b/analysis/webservice/algorithms/Tomogram3D.py index 686dc45..6bc49bf 100644 --- a/analysis/webservice/algorithms/Tomogram3D.py +++ b/analysis/webservice/algorithms/Tomogram3D.py @@ -489,6 +489,7 @@ class Tomogram3DResults(NexusResults): plt.savefig(buffer, format='png', facecolor='white') buffer.seek(0) + plt.close(fig) return buffer.read() def toGif(self): @@ -627,6 +628,7 @@ class Tomogram3DResults(NexusResults): img.save(buffer, format='GIF', append_images=imgs, save_all=True, duration=frame_duration, loop=0) buffer.seek(0) + plt.close(fig) return buffer.read() def toCSV(self):
