diff --git a/recOrder/plugin/main_widget.py b/recOrder/plugin/main_widget.py index 398ef2b6..8b4559b0 100644 --- a/recOrder/plugin/main_widget.py +++ b/recOrder/plugin/main_widget.py @@ -529,7 +529,6 @@ def _promote_slider_offline(self, ui_slider, range_): ui_slider.setRange(range_[0], range_[1]) def _promote_slider_init(self): - """ Used to promote the Display Tab sliders from QSlider to QDoubeRangeSlider with superqt Returns @@ -1174,7 +1173,6 @@ def handle_bire_image_update(self, value: NDArray): @Slot(object) def handle_phase_image_update(self, value): - name = "Phase2D" if self.acq_mode == "2D" else "Phase3D" # Add new layer if none exists, otherwise update layer data @@ -1845,6 +1843,11 @@ def load_calibration(self): def update_extinction(extinction): self.calib.extinction_ratio = float(extinction) + # FIXME: for 1.0.0 we'd like to avoid MM call in the main thread + # Make sure Live Mode is off + if self.calib.snap_manager.getIsLiveModeOn(): + self.calib.snap_manager.setLiveModeOn(False) + # initialize worker properties for multi-threading self.ui.qbutton_stop_calib.clicked.connect(self.worker.quit) self.worker.yielded.connect(self.ui.le_extinction.setText) @@ -1896,6 +1899,7 @@ def run_calibration(self): self.directory, "calibration_metadata.txt" ) + # FIXME: for 1.0.0 we'd like to avoid MM call in the main thread # Make sure Live Mode is off if self.calib.snap_manager.getIsLiveModeOn(): self.calib.snap_manager.setLiveModeOn(False) @@ -2290,7 +2294,6 @@ def save_config(self): @Slot(tuple) def update_dims(self, dims): - if not self.pause_updates: self.viewer.dims.set_current_step(0, dims[0]) self.viewer.dims.set_current_step(1, dims[1]) @@ -2299,7 +2302,6 @@ def update_dims(self, dims): pass def _open_file_dialog(self, default_path, type): - return self._open_dialog("select a directory", str(default_path), type) def _open_dialog(self, title, ref, type):