Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when unchecking "enable width" #1777

Open
gustafsonsven opened this issue Jan 21, 2025 · 0 comments
Open

Error when unchecking "enable width" #1777

gustafsonsven opened this issue Jan 21, 2025 · 0 comments

Comments

@gustafsonsven
Copy link

Hi all,

Running into an issue in the new pre-release that unchecking the "enable width" option in the overlay manager does not remove the overlays. Instead it spits out this:

Traceback (most recent call last):
File "/nfs/chess/user/seg246/software/anaconda3_20230506/envs/hexrdgui_pre_2025-1/lib/python3.11/site-packages/hexrdgui/image_canvas.py", line 733, in update_overlays
self.draw_overlay(overlay)
File "/nfs/chess/user/seg246/software/anaconda3_20230506/envs/hexrdgui_pre_2025-1/lib/python3.11/site-packages/hexrdgui/image_canvas.py", line 416, in draw_overlay
for axis, det_key, data in self.overlay_axes_data(overlay):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nfs/chess/user/seg246/software/anaconda3_20230506/envs/hexrdgui_pre_2025-1/lib/python3.11/site-packages/hexrdgui/image_canvas.py", line 363, in overlay_axes_data
data = self.iviewer.create_overlay_data(overlay)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nfs/chess/user/seg246/software/anaconda3_20230506/envs/hexrdgui_pre_2025-1/lib/python3.11/site-packages/hexrdgui/calibration/raw_iviewer.py", line 122, in create_overlay_data
return self.create_roi_overlay_data(overlay)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nfs/chess/user/seg246/software/anaconda3_20230506/envs/hexrdgui_pre_2025-1/lib/python3.11/site-packages/hexrdgui/calibration/raw_iviewer.py", line 146, in create_roi_overlay_data
prev_max = max(chain(*ret[group][data_key]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: max() arg is an empty sequence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant