Skip to content
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

Fiddle instrument #1761

Draft
wants to merge 22 commits into
base: master
Choose a base branch
from
Draft

Fiddle instrument #1761

wants to merge 22 commits into from

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 4 times, most recently from 1f3eb43 to dadc297 Compare December 17, 2024 21:55
Brianna Major added 14 commits December 18, 2024 13:43
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
Update variable names to better reflect the two paths: one for image plates
and one for detectors.

Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
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 <brianna.major@taloid.khq.kitware.com>
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
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 <brianna.major@taloid.khq.kitware.com>
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
Brianna Major and others added 2 commits December 22, 2024 12:08
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
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 <patrick.avery@kitware.com>
Brianna Major added 6 commits January 3, 2025 12:28
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
@bnmajor bnmajor force-pushed the fiddle-instrument branch from 9b17b7b to ac00f50 Compare January 3, 2025 17:29
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