-
Notifications
You must be signed in to change notification settings - Fork 1
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
un-reverso the removeBackground flag #473
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## next #473 +/- ##
==========================================
+ Coverage 96.48% 96.54% +0.06%
==========================================
Files 65 64 -1
Lines 4832 4836 +4
==========================================
+ Hits 4662 4669 +7
+ Misses 170 167 -3 ☔ View full report in Codecov by Sentry. |
not sure I notice a difference? is there a better run to highlight background removal? |
addb627
to
50ec14f
Compare
These are issues that were already reported to Darsh and we've been trying to work out what's going wrong. The background fitting/subtraction is not working correctly. Where we're at is that we concluded the background subtracted spectra have large amounts of noise for an unknown reason. That noise then corrupts the cross-correlation and the GetDetectorOffsets fails for > 15% of the peaks. |
@mguthriem While that is a defect, I don't it should block work on this defect. This work is just exposing the toggle to users and making sure it has the correct true/false relation. Nothing should have changed in whatever the background subtraction calculations are doing |
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.
opened and confirmed that the remove background box is disabled and calibration completes successfully
Description of work
The flag to remove the background is called
removeBackground
, but is set backwards. IfTrue
it will NOT remove the background, and ifFalse
it WILL.The easiest solution is to rename this
dontRemoveBackground
, and rename the associated UI elements.However, the better solution is to have this work the way it was expected to.
Explanation of work
The flag was set to work with the meaning of "YES remove the background".
False
--> do NOT remove backgroundTrue
--> yes please DO remove backgroundIt defaults to
False
Also the checkbox to indicate this was made always visible. It was at first thought this was only wanted for advanced users in CIS mode, but @mguthriem has clarified this should be generally available.
The checkbox was changed to a toggle, for more unified UX.
While updating some of the DAOs, it is not necessary to involve the
ConfigDict
to setextra=forbid
, so I removed that. A test was added of this.To test
Dev testing
Run the script
diffcal_pixel_diffraction_background_subtraction_script.py
observe the BEFORE and AFTER workspaces to ensure the background is being removed.Run the GUI with run 58882. Make sure
False
CIS testing
After PR #498 is merged, you will be able to test the functionality when in CIS mode. Test as above. Note that this does not fix the bugs within
RemoveEventBackground
; it only addresses the meaning and visibility of the toggle.Link to EWM item
EWM#7731
Following on from PR #449
Verification
Acceptance Criteria
This list is for ease of reference, and does not replace reading the EWM story as part of the review. Verify this list matches the EWM story before reviewing.