Skip to content

Commit 5601b4f

Browse files
committed
LinkamCMS: include uid in __init__ function signature.
Use function signature to declare the uid argument instead of manually getting it from kwargs. Only because it's simpler and serves as auto documentation.
1 parent 2a100f9 commit 5601b4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

microscope/stages/linkam.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,9 +1297,9 @@ def __repr__(self):
12971297
return "refilling: %s, t: %s, dt: %s" % (self.refilling, self.t, self.dt)
12981298

12991299

1300-
def __init__(self, *args, **kwargs):
1300+
def __init__(self, uid='', *args, **kwargs):
13011301
super().__init__(*args, **kwargs)
1302-
self.uid = kwargs.get('uid', '')
1302+
self.uid = uid
13031303
self.init_usb(self.uid)
13041304
self._cmsstatus = _CMSStatus()
13051305
self._cmserror = _CMSError()

0 commit comments

Comments
 (0)