def run(): camera_base.run() scan_base.run() video_base.run() CameraControlPanel.run() ScanControlPanel.run() MultipleShiftEELSAcquire.run() VideoControlPanel.run()
def run(): global configuration_location camera_base.run(configuration_location) camera_base_1.run() scan_base.run() video_base.run() CameraControlPanel.run() ScanControlPanel.run() MultipleShiftEELSAcquire.run() VideoControlPanel.run()
def run() -> None: global configuration_location if configuration_location: HardwareSource.run() camera_base.run(configuration_location) scan_base.run() video_base.run() CameraControlPanel.run() ScanControlPanel.run() MultipleShiftEELSAcquire.run() VideoControlPanel.run()
def __init__(self, *, is_eels: bool = False, camera_exposure: float = 0.025): super().__init__() # HardwareSource.run() # camera_base.run(configuration_location) # scan_base.run() # video_base.run() # CameraControlPanel.run() # ScanControlPanel.run() # MultipleShiftEELSAcquire.run() # VideoControlPanel.run() HardwareSource.run() instrument = self.setup_stem_controller() ScanDevice.run(typing.cast(InstrumentDevice.Instrument, instrument)) scan_base.run() scan_hardware_source = Registry.get_component("scan_hardware_source") camera_hardware_source = self.setup_camera_hardware_source( instrument, camera_exposure, is_eels) HardwareSource.HardwareSourceManager().hardware_sources = [] HardwareSource.HardwareSourceManager( ).hardware_source_added_event = Event.Event() HardwareSource.HardwareSourceManager( ).hardware_source_removed_event = Event.Event() self.instrument = instrument self.scan_hardware_source = scan_hardware_source self.camera_hardware_source = camera_hardware_source HardwareSource.HardwareSourceManager().register_hardware_source( self.camera_hardware_source) HardwareSource.HardwareSourceManager().register_hardware_source( self.scan_hardware_source) self.document_controller = self.create_document_controller( auto_close=False) self.document_model = self.document_controller.document_model stem_controller.register_event_loop( self.document_controller.event_loop) self.__exit_stack: typing.List[typing.Any] = list()