Add check if sample details exists before applying absorption correction in diffraction scripts #36017
Labels
Diffraction
Issues and pull requests related to diffraction
ISIS Team: Diffraction
Issue and pull requests managed by the Diffraction subteam at ISIS
Maintenance
Unassigned issues to be addressed in the next maintenance period.
Describe the outcome that is desired.
In the diffraction scripts, if you enable absorption correction without providing a sample_details object, the script may generate an error. It is recommended to include a check for the presence of sample details and to prompt the user with an appropriate error message if they are absent.
Describe any solutions you are considering
Add the check to the common focus function
The text was updated successfully, but these errors were encountered: