mantidproject / mslice

Source code for Mantid MSlice
http://mantidproject.github.io/mslice
1 stars 2 forks source link

Check intensity is a real number #906

Closed robertapplin closed 1 year ago

robertapplin commented 1 year ago

Description of work: This PR fixes an unhandled exception that causes MSlice to crash when the intensity min or max is a nan or inf value. The Intensity min or max should be set to None if this is the case, thereby avoiding a crash.

To test: Follow the instructions in the attached issue. There should be no crash. The plot generated will be empty and there may be warnings in the console, but this is still an improvement on the previous behaviour.

Fixes #905