You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When transferring images to the Live Viewer path, if the images are arriving slowly or are corrupt, then the Intensity in the Live Viewer is not displayed correctly, with errors around loading of files.
Steps To Reproduce
Open Live Viewer with the Intensity Plot activated.
(with the paths replaced with the locations on your system)
Current Behaviour
When the corrupt image is displayed, an error dialog pops up and the intensity plot does not display correctly
Expected Behaviour
The intensity plot should behave as expected, ignoring when partial or faulty images arrive.
Failure Logs
2025-01-28 10:55:38,833 [tifffile.tifffile:L23579] WARNING: <tifffile.TiffPages @8388616> invalid offset to first page 8388616
2025-01-28 10:55:38,833 [mantidimaging.gui.windows.main.view:L562] ERROR: Traceback (most recent call last):
File "/home/sam/git/mantidimaging/mantidimaging/gui/windows/live_viewer/model.py", line 174, in _handle_image_changed_in_list
self.presenter.update_image_list(image_files)
File "/home/sam/git/mantidimaging/mantidimaging/gui/windows/live_viewer/presenter.py", line 118, in update_image_list
self.model.add_mean(images_list[-1], image_data)
File "/home/sam/git/mantidimaging/mantidimaging/gui/windows/live_viewer/model.py", line 191, in add_mean
mean_to_add = np.mean(image_array[top:bottom, left:right])
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
Screenshot(s)
The text was updated successfully, but these errors were encountered:
Summary
When transferring images to the Live Viewer path, if the images are arriving slowly or are corrupt, then the Intensity in the Live Viewer is not displayed correctly, with errors around loading of files.
Steps To Reproduce
Open Live Viewer with the Intensity Plot activated.
Run the simulator with slow mode and tiff files
python scripts/simulate_live_data.py -s /data/imaging/tof/MCP_Fe_Calibration/Fe_Powder_Run1_PH60_Dis50mm_NewShutter/Corrected/ -d /tmp/live_test/ -r 1 --mode slow
(with the paths replaced with the locations on your system)
Current Behaviour
When the corrupt image is displayed, an error dialog pops up and the intensity plot does not display correctly
Expected Behaviour
The intensity plot should behave as expected, ignoring when partial or faulty images arrive.
Failure Logs
Screenshot(s)
The text was updated successfully, but these errors were encountered: