Skip to content

Commit

Permalink
Skip focus mode for powder/laue calibration
Browse files Browse the repository at this point in the history
It keeps on causing issues, so let's just disable it for now.

We can enable it as long as we are sure that this issue will not
happen again: #1556

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
  • Loading branch information
psavery committed Oct 19, 2023
1 parent 337e837 commit 55aaf85
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions hexrdgui/calibration/calibration_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,13 @@ def validate(self):
raise Exception('There are no refinable parameters')

def enable_focus_mode(self, b):
HexrdConfig().enable_canvas_focus_mode.emit(b)
HexrdConfig().enable_canvas_toolbar.emit(not b)
# FIXME: We must avoid using focus mode until we can be sure
# that this issue will not happen again: https://github.com/HEXRD/hexrdgui/issues/1556
# We *cannot* allow the GUI to remain disabled after calibration.

# HexrdConfig().enable_canvas_focus_mode.emit(b)
# HexrdConfig().enable_canvas_toolbar.emit(not b)
pass

def clear_all_overlay_picks(self):
for overlay in self.active_overlays:
Expand Down

0 comments on commit 55aaf85

Please sign in to comment.