Ticket #5640 (closed: fixed)
Indexing GroupWorkspaces in Python Error
Reported by: | Owen Arnold | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | critical | Milestone: | Release 2.2 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Owen Arnold |
Description
Try this:
P6567 = Load(Filename=r'\\isis\inst$\Instruments$\NDXPOLREF\Instrument\data\cycle_12_2\POLREF00006567.raw',LoadMonitors=r'Separate') for i in range(0, len(P6567)): print P6567[i]
Produces 4 output workspaces, when there should only be 2 MatrixWorkspaces. Should not have nested group workspaces.
Change History
comment:2 Changed 8 years ago by Martyn Gigg
So the issue here is that Load has extra output properties declared at runtime: one for each period loaded. We only want to return the groups in these cases so we want to ignore the extra output properties and this doesn't happen correctly if LoadMonitors=Separate because the output properties are not called the expected thing.
Should be easy to fix.
comment:3 Changed 8 years ago by Martyn Gigg
Fix python Load fn for separate multiperiod monitors. Refs #5640
Fixes the problem of only ignoring OutputWorkspace_ properties so it was returning the additional MonitorWorkspace properties. It now does not return any property with an underscore in the name.
Changeset: a119a3aca8049a44686d0db9cfd960f273c667a6
comment:4 Changed 8 years ago by Martyn Gigg
- Status changed from accepted to verify
- Resolution set to fixed