mantidproject / mslice

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

Add tolerance to axis step validation #918

Closed MialLewis closed 1 year ago

MialLewis commented 1 year ago

Description of work:

This PR adds a tolerance to axis step validation, preventing a warning bring triggered by precision errors.

I've taken the validation code inside of axis so I only have to define this tolerance in one place. Tests edited/moved to suit.

To test:

Run script in #912

Fixes #912