def calibrate_xy_gui(self): """Run an XY calibration, with a progress bar in the foreground""" # run_function_modally(self.cwl.calibrate_xy, progress_maximum=self.cwl.af_steps + 1, step=None if self.calibration_distance <= 0 else float(self.calibration_distance))
def take_timelapse(self): run_function_modally(self.take_timelapse_foreground, progress_maximum=self.timelapse_n, data_group=self.create_data_group("timelapse_%d"), n=self.timelapse_n, dt=self.timelapse_dt)
def Calibrate_Power_gui(self): run_function_modally(self.PC.Calibrate_Power, progress_maximum = len(self.PC.points))
def quick_autofocus_gui(self): """Run an autofocus using default parameters, with a GUI progress bar.""" run_function_modally(self.quick_autofocus, progress_maximum=self.af_steps + 1)
def time_series(self): run_function_modally(self.spectrometer.time_series, progress_maximum=self.spectrometer.num_spectra)