Skip to content

Commit 1bdc3ed

Browse files
committed
Galil type safe parent
1 parent 98094b1 commit 1bdc3ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/qcodes/instrument_drivers/Galil/dmc_41x3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def clear_sequence(self, coord_sys: str) -> None:
254254
"""
255255

256256

257-
class GalilDMC4133Motor(InstrumentChannel):
257+
class GalilDMC4133Motor(InstrumentChannel["GalilDMC4133Controller"]):
258258
"""
259259
Class to control a single motor (independent of possible other motors)
260260
"""
@@ -458,7 +458,7 @@ def wait_till_motor_motion_complete(self) -> None:
458458
while self.is_in_motion():
459459
pass
460460
except KeyboardInterrupt:
461-
self.root_instrument.abort()
461+
self.parent.abort()
462462
self.off()
463463

464464
def error_magnitude(self) -> float:

0 commit comments

Comments
 (0)