@@ -513,7 +513,9 @@ def start_device(
513513 device_not_found (microscope_name , device_category , device_type , device_id )
514514
515515
516- def start_daq (configuration : Dict [str , Any ], device_type : str = "NI" , name : str = "name" ) -> DAQBase :
516+ def start_daq (
517+ configuration : Dict [str , Any ], device_type : str = "NI" , name : str = "name"
518+ ) -> DAQBase :
517519 """Initializes the data acquisition (DAQ) class on a dedicated thread.
518520
519521 Load daq information from the configuration file. Proper daq types include NI and
@@ -583,9 +585,9 @@ def device_not_found(*args: Any) -> None:
583585def load_devices (
584586 microscope_name : str ,
585587 configuration : Dict [str , Any ],
586- is_synthetic = False ,
587- devices_dict = {},
588- plugin_devices = None ,
588+ is_synthetic : bool = False ,
589+ devices_dict : dict = {},
590+ plugin_devices : Optional [ dict ] = None ,
589591) -> dict :
590592 """Load devices from configuration.
591593
@@ -597,6 +599,8 @@ def load_devices(
597599 Configuration dictionary
598600 is_synthetic : bool
599601 Run synthetic version of hardware?
602+ devices_dict : dict
603+ Dictionary of devices to load
600604 plugin_devices : dict
601605 Dictionary of plugin devices
602606
@@ -620,8 +624,10 @@ def load_devices(
620624 ]["hardware" ]["type" ]
621625
622626 if device_type not in devices_dict ["daq" ]:
623- if (device_type == "asi.ASI" ):
624- devices_dict ["daq" ][device_type ] = start_daq (configuration , device_type , microscope_name )
627+ if device_type == "asi.ASI" :
628+ devices_dict ["daq" ][device_type ] = start_daq (
629+ configuration , device_type , microscope_name
630+ )
625631 else :
626632 devices_dict ["daq" ][device_type ] = start_daq (configuration , device_type )
627633
0 commit comments