Skip to content

Fix filter options for absorption correction#1826

Merged
psavery merged 3 commits intomasterfrom
absorption-correction
Apr 17, 2025
Merged

Fix filter options for absorption correction#1826
psavery merged 3 commits intomasterfrom
absorption-correction

Conversation

@bnmajor
Copy link
Collaborator

@bnmajor bnmajor commented Apr 9, 2025

Make sure that we manage filter inputs separately for each detector.

@bnmajor bnmajor marked this pull request as ready for review April 9, 2025 17:37
@bnmajor bnmajor requested review from psavery and saransh13 April 9, 2025 17:37
Comment on lines 19 to 20
HexrdConfig().update_detector_filter(det)
filter = HexrdConfig().detector_filter(det)
Copy link
Collaborator

@psavery psavery Apr 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, if there isn't a filter, we also wouldn't want to add one unless the user clicks "OK", right? I think we shouldn't modify any settings unless the user clicks "OK".

In this case, if the user clicks "Cancel", would there now be a filter present for that detector (even though there wasn't one before)?

bnmajor added 2 commits April 11, 2025 13:17
Make sure that we manage filter inputs separately for each detector.

Signed-off-by: Brianna Major <brianna.major@kitware.com>
Signed-off-by: Brianna Major <brianna.major@kitware.com>
@bnmajor bnmajor force-pushed the absorption-correction branch from 58a372b to fbdc23e Compare April 11, 2025 17:17
@saransh13
Copy link
Member

saransh13 commented Apr 11, 2025

Screen.Recording.2025-04-11.at.1.52.04.PM.mov

I still see the filter material going back to the default one when cycling between detectors. There's also a stray print statement somewhere generating this text

config filter IMAGE-PLATE-L: Cu 2.7 12.5
config filter IMAGE-PLATE-R: Cu 2.7 12.5
config filter IMAGE-PLATE-U: Cu 2.7 12.5

Signed-off-by: Brianna Major <brianna.major@kitware.com>
Copy link
Member

@saransh13 saransh13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, LGTM ready to merge now.

@psavery psavery merged commit 1946cd0 into master Apr 17, 2025
9 checks passed
@psavery psavery deleted the absorption-correction branch April 17, 2025 20:25
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

Successfully merging this pull request may close these issues.

3 participants