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.
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