From 769a260e0bacefcab6bdae09477bedb2a39d3e54 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Tue, 16 Jul 2019 14:38:36 +0100 Subject: [PATCH] Remove __del__ from SangaStage class --- openflexure_microscope/stage/sanga.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/openflexure_microscope/stage/sanga.py b/openflexure_microscope/stage/sanga.py index 6ee4c8e8..9e4c25ec 100644 --- a/openflexure_microscope/stage/sanga.py +++ b/openflexure_microscope/stage/sanga.py @@ -194,13 +194,6 @@ class SangaStage(BaseStage): """De-energise the stepper motor coils""" self.board.release_motors() - def __del__(self): - """Close the port when the object is deleted - - NB if the object is created in a with statement, this will cause - the port to be closed at the end of the with block.""" - self.close() - def __enter__(self): """When we use this in a with statement, remember where we started.""" self._position_on_enter = self.position