Skip to content

Commit c0a7073

Browse files
committed
LinkamBase: add missing methods _on_shutdown and initialize (issue #113)
* microscope/stages/linkam.py (LinkamBase): class was missing an implementation for the Device abstract methods _on_shutdown() and initialize(). This fixes the issue when creating a LinkCMS instance. This was failing since 83f1256 (which fixed ABCs for Python 3).
1 parent 997fc45 commit c0a7073

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

microscope/stages/linkam.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,12 @@ def __init__(self, **kwargs):
10181018
self.init_sdk()
10191019
self._reconnect_thread = None
10201020

1021+
def initialize(self):
1022+
pass
1023+
1024+
def _on_shutdown(self):
1025+
pass
1026+
10211027
def __del__(self):
10221028
"""Close comms on object deletion"""
10231029
self._process_msg(Msg.CloseComms)

0 commit comments

Comments
 (0)