mantidproject / mslice

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

Use closest whole step number if within a small tolerance #900

Closed robertapplin closed 1 year ago

robertapplin commented 1 year ago

Description of work: This PR ensures that the number of steps in an axis gets rounded to the closest whole number if (axis.end - axis.start)/axis.step is close to a whole number. We might want to adjust the absolute tolerance in the future if 0.05 is too small.

To test: Follow the instructions in the attached issue

Fixes #899