-
Notifications
You must be signed in to change notification settings - Fork 7
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
Live Viewer calculates intensity of live images via QThreads #2457
Conversation
cc43f76
to
c53660e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good from a first pass, here are some requests for the code.
15d707b
to
9aca1b6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. I couple of code nitpicks.
I hit a couple of issues when running the simulate script in slow mode --mode slow
, but I'd be happy to merge this and fix those after.
ebfbdb0
to
25001e0
Compare
…e buffered into the spectrum
…r.update_image_list
…g deleted prematurely
…d, test_WHEN_roi_set_enabled_THEN_roi_enabled, test_WHEN_nans_in_mean_THEN_handle_roi_change_timer_start, test_WHEN_no_nans_in_mean_THEN_handle_roi_change_timer_not_started
25001e0
to
660ec9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue
Closes #2448
Description
The calculation of the Intensity Profile in the Live Viewer is now done asynchronously via a QThread and the GUI is updated via the main thread upon the QThread termination. The intensity is calculated in chunks of 100 points, each done via a different thread. It is done in this way so that the GUI will remain responsive and smooth while the ROI is moved on the image, all while the intensity updates to the new position. The calculation speed is also increased by using the
ImageCache
class.Unit and System tests have been added for the Live Viewer.
This PR will require PR #2425 after which this PR will need to be rebased.Testing
make check
make test-system
Acceptance Criteria
Check that all tests pass.
Documentation
Release Note