mantidproject / mslice

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

Mantid algorithms removed from `mslice.cli` namespace leading to scripts saved from plots not working #961

Closed mducle closed 6 months ago

mducle commented 7 months ago

Describe the bug

MSlice used to import all the Mantid algorithms from simpleapi into its own mslice.cli namespace wrapped such that they can operate on MSlice workspaces (which are in turn wrappers around hidden Mantid workspaces).

However, recent versions of Mantid (6.7 and 6.8) have removed most of these wrappers such that scripts no longer work.

To Reproduce Steps to reproduce the behavior:

  1. Load a data file
  2. Click the arrow next to Compose and select Scale. Click it and run the scaling operation.
  3. Select the _scaled workspace and click Display
  4. In the plot, go to File -> Generate Script to clipboard
  5. Paste the script into the Mantid editor and run it

You'll get an:

AttributeError: module 'mslice.cli' has no attribute 'Scale'

Expected behavior The script generated from the plot works.

MSlice Version (please complete the following information):