Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
InputWorkspaces | Input | str list | Mandatory | Name of the Input Workspaces to Group |
OutputWorkspace | Output | WorkspaceGroup | Mandatory | Name of the workspace to be created as the output of grouping |
This algorithm takes two or more workspaces as input and creates an output workspace group.
# Create two workspaces
ws1 = CreateSampleWorkspace()
ws2 = CreateSampleWorkspace()
# Group them
group = GroupWorkspaces( [ws1,ws2] )
# Check the result
print "Workspace's type is",type(group)
print 'It has',group.getNumberOfEntries(),'entries'
print 'Its first item is',group.getItem(0)
print 'Its second item is',group.getItem(1)
Workspace's type is <class 'mantid.api._api.WorkspaceGroup'>
It has 2 entries
Its first item is ws1
Its second item is ws2
Categories: Algorithms | Transforms\Grouping | Utility\Workspaces