Ticket #932 (closed: fixed)

Opened 11 years ago

Last modified 5 years ago

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')

Change History

comment:1 Changed 11 years ago by Nick Draper

  • Owner set to Sofia Antony
  • Priority changed from major to minor

comment:2 Changed 11 years ago by Sofia Antony

(In [4184]) re #1072, #1075 ,#1076, #932 -Fix for workspace group issues.

comment:3 Changed 11 years ago by Sofia Antony

  • Status changed from new to accepted

comment:4 Changed 11 years ago by Sofia Antony

  • Status changed from accepted to testing
  • Resolution set to fixed

comment:5 Changed 11 years ago by Roman Tolchenov

  • Status changed from testing to closed

comment:6 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 1780

Note: See TracTickets for help on using tickets.