[JUNGFRAU] [Correct] Allow selecting ROIs to save 1D projections
Description
FXE project spectra onto JUNGFRAU, so analysis requires selecting the relevant region and taking a 1D projection. They have asked for this to be integrated into calibration, to speed up later processing.
Closes calibration/planning#136
To be determined:
-
Input parameters format? -
Output format - including source name (currently like FXE_XAD_JF500K/ROIPROC/JNGFR03:output
) -
Should mask be applied before doing the reduction? -
sum, mean (or nanmean)? Or make it another parameter? -
Are 2 ROIs enough?
And probably more, this is just off the top of my head.
How Has This Been Tested?
Running the notebook manually.
Relevant Documents (optional)
Types of changes
- New feature (non-breaking change which adds functionality)
Checklist:
- My code follows the code style of this project.
Reviewers
Merge request reports
Activity
changed milestone to %3.6.2
Yohei was suggesting up to 10 ROIs, which is far more than I had thought, so I've made it accept an arbitrary number of ROI definitions, although this means the config for it is decidedly cryptic - a list of integers which will be interpreted as groups of 6 -
module_no, a1, a2, b1, b2, sum_axis
.I've also made it so the output will have ROIs numbered within each module - so if you define 2 ROIs on 2 different modules, they will both have
roi1
in the key (but different source names, e.g.FXE_XAD_JF500K/ROIPROC/JNGFR03:output
vs.../JNGFR02:output
).The test failure is already fixed in master (!706 (merged)).
added 2 commits
- Resolved by Karim Ahmed
- Resolved by Karim Ahmed
- Resolved by Karim Ahmed
- Resolved by Thomas Kluyver
- Resolved by Thomas Kluyver
Thank you for this nice MR, I have added some comments/questions. And I see that there are some unchecked points in the MR description are they still undecided? Who should answer these questions? Us or FXE?
Edited by Karim Ahmed