Skip to content

Conversation

@bnmajor
Copy link
Collaborator

@bnmajor bnmajor commented Nov 27, 2024

  • New instrument option in LLNL Import: FIDDLE
  • Two modes: With Image PLate and Without Image Plate
  • With no image plate = load image per detector w/ dark subtraction for each image
  • With image plate = images + dark + IP w/ template & masking
  • Try to automatically find remaining images + dark after first image is loaded
  • Support manually loading images + dark if automatic find fails
  • Add hdf5 path as known path so users do not need to select it
  • Need correct default config file (See Fiddle instrument hexrd#736)
  • Need template boundary(ies) file (See Fiddle instrument hexrd#736)
  • Imageseries should say frame or timestep instead of omega
  • Image + dark = 4 frames per image file/dark file
    • Subtract each dark frame from each image frame
    • Create 4 frame imageseries from results
  • All 4 frames are in single hdf5 file. Need to handle multiple hdf5 paths for this new case
  • Need 4th config option: ATLAS coordinates - Saransh will provide script and example data (Will put up in separate PR)
  • Add new intensity correction option: median w/ kernel (default to 7; user can change)
  • On load for FIDDLE instrument pop up dialog w/ option to apply new median filter and set kernel size before Physics Package dialog

@pep8speaks
Copy link

pep8speaks commented Nov 27, 2024

Hello @bnmajor! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 554:80: E501 line too long (95 > 79 characters)

Line 81:80: E501 line too long (83 > 79 characters)

Line 101:9: E122 continuation line missing indentation or outdented
Line 235:9: E122 continuation line missing indentation or outdented
Line 258:13: E122 continuation line missing indentation or outdented
Line 265:13: E122 continuation line missing indentation or outdented
Line 273:13: E122 continuation line missing indentation or outdented
Line 305:9: E122 continuation line missing indentation or outdented
Line 494:32: W605 invalid escape sequence '\d'
Line 495:31: W605 invalid escape sequence '\d'
Line 496:31: W605 invalid escape sequence '\d'
Line 532:13: E122 continuation line missing indentation or outdented
Line 588:13: E122 continuation line missing indentation or outdented
Line 665:9: E122 continuation line missing indentation or outdented
Line 736:9: E122 continuation line missing indentation or outdented
Line 743:9: E122 continuation line missing indentation or outdented
Line 782:9: E122 continuation line missing indentation or outdented
Line 786:9: E122 continuation line missing indentation or outdented
Line 836:9: E122 continuation line missing indentation or outdented
Line 840:9: E122 continuation line missing indentation or outdented
Line 848:9: E122 continuation line missing indentation or outdented

Comment last updated at 2025-01-03 17:29:26 UTC

@bnmajor bnmajor force-pushed the fiddle-instrument branch 5 times, most recently from 448e672 to 0bd8bfb Compare December 18, 2024 18:43
@bnmajor bnmajor force-pushed the fiddle-instrument branch from 9b17b7b to ac00f50 Compare January 3, 2025 17:29
Brianna Major and others added 20 commits February 26, 2025 09:22
Signed-off-by: Brianna Major <[email protected]>
Update variable names to better reflect the two paths: one for image plates
and one for detectors.

Signed-off-by: Brianna Major <[email protected]>
It will automatically be applied once the LLNL import concludes. Kernel size
defaults to 7 but users will be prompted to change this value after import if
they'd like to. Median filtering can also be applied/removed from the
"Intensity Corrections" menu, where users will always be allowed to change the
kernel size.

Signed-off-by: Brianna Major <[email protected]>
The UI expects that all imageseries are the same length. To keep this in sync,
for now we simply create for copies of the image plate image and create the
imageseries from those frames.

Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
This takes up about ~200 MB to contain the results for all 21 FIDDLE
images. We may want to multi-thread across images as well...

Signed-off-by: Patrick Avery <[email protected]>
We use NaNs in our template vertices in order to draw "holes" within an outer
boundary. When we check a click event to determine if a user has selected the
template or not we should only check if the outer boundary contains the event.
Using the full polygon causes some weird and inconsistent behaviors.

Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
Do not apply median filter until user sets/approves the kernel size. Do not
display physics package dialog until kernel size is set or rejected.

Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
@bnmajor bnmajor requested a review from psavery February 28, 2025 22:14
@bnmajor bnmajor marked this pull request as ready for review March 3, 2025 13:53
@bnmajor bnmajor mentioned this pull request Mar 14, 2025
Signed-off-by: Brianna Major <[email protected]>
@bnmajor bnmajor force-pushed the fiddle-instrument branch from 4289fac to b40a179 Compare March 20, 2025 18:20
Copy link
Collaborator

@psavery psavery left a comment

Choose a reason for hiding this comment

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

LGTM! I tried it and verified that it works.

@psavery psavery merged commit 7aecf99 into HEXRD:master Mar 20, 2025
9 checks passed
@psavery psavery deleted the fiddle-instrument branch March 20, 2025 20:39
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