Ticket #932 (closed: fixed)
GroupWorkspace algorithm can't group a Workspace and a Workspace group in Python
Reported by: | Martyn Gigg | Owned by: | Sofia Antony |
---|---|---|---|
Priority: | minor | Milestone: | Iteration 22 |
Component: | Keywords: | ||
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
In MantidPlot the 'Group' button can be used to group together a Workspace with an existing WorkspaceGroup. This doesn't work from Python since the actual Mantid GroupWorkspaces algorithm can only handle Workspaces and not mixture of Workspace and WorkspaceGroups.
It works from the GUI because the code in MantidPlot disassembles the group first and then feeds the names to the algorithm. Wouldn't it be better to have this code in Mantid?
Also, from Python calling GroupWorkspaces with 2 normal workspaces doesn't update the MantidWorkspace list in the GUI correctly.
Some test Python code:
LoadRaw('SANS2D00000992.raw','a') LoadRaw('SANS2D00000993.raw','b')
GroupWorkspaces('MyGroup', 'a,b')
LoadRaw('SANS2D00000988.raw','c') GroupWorkspaces('MyGroup', 'MyGroup,c')