[AGIPD] [CORRECT] Fix / Correcting AGIPD run with no images.
Twp bugs were found when there was a request to correct AGIPD@MID runs with no data.
- The printout for the empty modules was wrong Q4M4(AGIDP00).
- The report was not created.
Traceback (most recent call last):
File "/home/xcal/.pyenv/versions/3.8.11/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home/xcal/.pyenv/versions/3.8.11/lib/python3.8/multiprocessing/pool.py", line 51, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "<ipython-input-9-2025cd48196c>", line 23, in retrieve_constants
raise ValueError(
ValueError: No raw images found for Q4M4(AGIPD02) for all sequences
Description
- The wrong module_index was used for indexing modules when it comes to printing empty module or selecting slopes_ff local constants.
- Removed unused defined parameters.
- A pre-check if all modules have no images for an early exit.
- Making sure the notebook runs fine if one module has no images.
- Fill the summary table for constants successfully with a no constants retrieved text. To avoid latex errors while creating the report.
How Has This Been Tested?
-
Interactively, by running the notebook. -
Running automated test.
Relevant Documents (optional)
-
Attach a report for an empty AGIPD MID run.
no_images_agipd_mid_report.pdf
Types of changes
- Bug fix (non-breaking change which fixes an issue)
Checklist:
Reviewers
Edited by Karim Ahmed