TOF converter should catch division by zero error when two-theta is zero #38652
Labels
Bug
Issues and pull requests that are regressions or would be considered a bug by users (e.g. crashing)
Induction
Straightforward, low risk issues suitable for new starters
ISIS Team: Core
Issue and pull requests managed by the Core subteam at ISIS
Milestone
Describe the bug
TOF converter should catch division by zero error when two-theta is zero.
Found during manual testing #38634 - but present in v6.11 as well
To Reproduce
(1) Interfaces > Utility > TOF Converter
(2) Select input unit to be Wavelength, Output to be d-spacing
(3) Set scattering angle to be 0
Expected behavior
Would expect error to be caught and a nicer message as done when input number is 0.
Note it does actually work for negative angles, just 0 needs to be caught
The text was updated successfully, but these errors were encountered: