Better check for large numbers in TOF converter #38653
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
Found during manual testing #38634 - but present in v6.11 as well.
TOF converter seems to have a check for large numbers, but it looks like some not-quite-as-large numbers can also produce an error.
To Reproduce
(1) Interfaces > Utility > TOF Converter
(2) Select input unit to be Temperature, Output to be Energy (cm^-1)
(3) Set input 1e256
(4) Convert
Expected behavior
Perhaps what is done for 1e600 input which returns inf?
The text was updated successfully, but these errors were encountered: