mantidproject / mslice

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

Fix SaveAscii index out of range error #908

Closed robertapplin closed 1 year ago

robertapplin commented 1 year ago

Description of work: This PR adds a flag is_slice to the common workspace properties class. This will provide us with a unified way for determining whether a workspace is a slice or not. Previously, the GUI and CLI used a different method for determining whether a workspace was a slice. I believe the CLI implementation was incorrect and therefore caused the error in the attached issue.

To test: Follow the steps in the attached issue. There should be no error. The file should be saved as expected.

Fixes #907