@@ -394,7 +394,7 @@ class DataDevice(Device):
394394
395395 def __init__ (self , buffer_length = 0 , ** kwargs ):
396396 """Derived.__init__ must call this at some point."""
397- super (DataDevice , self ).__init__ (** kwargs )
397+ super ().__init__ (** kwargs )
398398 # A thread to fetch and dispatch data.
399399 self ._fetch_thread = None
400400 # A flag to control the _fetch_thread.
@@ -469,7 +469,7 @@ def disable(self):
469469 if self ._fetch_thread .is_alive ():
470470 self ._fetch_thread_run = False
471471 self ._fetch_thread .join ()
472- super (DataDevice , self ).disable ()
472+ super ().disable ()
473473
474474 @abc .abstractmethod
475475 def _fetch_data (self ):
@@ -599,7 +599,7 @@ def set_client(self, new_client):
599599 @keep_acquiring
600600 def update_settings (self , settings , init = False ):
601601 """Update settings, toggling acquisition if necessary."""
602- super (DataDevice , self ).update_settings (settings , init )
602+ super ().update_settings (settings , init )
603603
604604 # noinspection PyPep8Naming
605605 def receiveClient (self , client_uri ):
@@ -641,7 +641,7 @@ class CameraDevice(DataDevice):
641641 ALLOWED_TRANSFORMS = [p for p in itertools .product (* 3 * [[False , True ]])]
642642
643643 def __init__ (self , ** kwargs ):
644- super (CameraDevice , self ).__init__ (** kwargs )
644+ super ().__init__ (** kwargs )
645645 # A list of readout mode descriptions.
646646 self ._readout_modes = ['default' ]
647647 # The index of the current readout mode.
@@ -880,7 +880,7 @@ class SerialDeviceMixIn:
880880 __metaclass__ = abc .ABCMeta
881881
882882 def __init__ (self , ** kwargs ):
883- super (SerialDeviceMixIn , self ).__init__ (** kwargs )
883+ super ().__init__ (** kwargs )
884884 ## TODO: We should probably construct the connection here but
885885 ## the Serial constructor takes a lot of arguments, and
886886 ## it becomes tricky to separate those from arguments to
@@ -959,7 +959,7 @@ def __init__(self, **kwargs) -> None:
959959 `_pattern_idx` are initialized to None to support the queueing
960960 of patterns and software triggering.
961961 """
962- super (DeformableMirror , self ).__init__ (** kwargs )
962+ super ().__init__ (** kwargs )
963963
964964 self ._patterns = None # type: typing.Optional[numpy.ndarray]
965965 self ._pattern_idx = - 1 # type: int
@@ -1030,7 +1030,7 @@ class LaserDevice(Device):
10301030
10311031 @abc .abstractmethod
10321032 def __init__ (self , ** kwargs ):
1033- super (LaserDevice , self ).__init__ (** kwargs )
1033+ super ().__init__ (** kwargs )
10341034 self ._set_point = None
10351035
10361036 @abc .abstractmethod
@@ -1090,7 +1090,7 @@ class FilterWheelBase(Device):
10901090 __metaclass__ = abc .ABCMeta
10911091
10921092 def __init__ (self , filters = [], positions = 0 , ** kwargs ):
1093- super (FilterWheelBase , self ).__init__ (** kwargs )
1093+ super ().__init__ (** kwargs )
10941094 if isinstance (filters , dict ):
10951095 self ._filters = filters
10961096 else :
0 commit comments