Skip to content

Commit

Permalink
add FIXME comments
Browse files Browse the repository at this point in the history
  • Loading branch information
talonchandler committed Apr 12, 2023
1 parent fbbd7c8 commit 97df866
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions recOrder/plugin/main_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1845,6 +1843,7 @@ 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)
Expand Down Expand Up @@ -1900,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)
Expand Down Expand Up @@ -2294,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])
Expand All @@ -2303,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):
Expand Down

0 comments on commit 97df866

Please sign in to comment.