Remove __del__ from SangaStage class
This commit is contained in:
parent
5424883a38
commit
769a260e0b
1 changed files with 0 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue