Ticket #5716 (closed: fixed)

Opened 8 years ago

Last modified 5 years ago

Determine if Group Workspace is Multiperiod

Reported by: Owen Arnold Owned by: Owen Arnold
Priority: major Milestone: Release 2.3
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Karl Palmen

Description

There's a few places where we need to determine if a Group workspace is multi-period or not. See MergeRuns for example. We could do with a method to this effect on the GroupWorkspace, which should be exposed to python too.

This has been requested by the ISIS reflectometry group.

Change History

comment:1 Changed 8 years ago by Owen Arnold

  • Status changed from new to accepted

comment:2 Changed 8 years ago by Owen Arnold

Tester: Once the python api additions are made, the following should work.

from mantid.simpleapi import *
group = Load(Filename="CSP78173")
if not group.isMultiPeriod():
        raise RuntimeError("This is a multi-period workspace")

comment:3 Changed 8 years ago by Owen Arnold

refs #5716. Implemented in API and used in MergeRuns

Changeset: cc62b6e4cc0e9ed7e9909e86a046c1e27cfc85c3

comment:4 Changed 8 years ago by Owen Arnold

refs #5716. Python API extended.

Changeset: 8550c69e9cb02bc2a1821ea0f7cb2a2136283e84

comment:5 Changed 8 years ago by Owen Arnold

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

comment:6 Changed 8 years ago by Owen Arnold

refs #5716. Implemented in API and used in MergeRuns

Changeset: cc62b6e4cc0e9ed7e9909e86a046c1e27cfc85c3

comment:7 Changed 8 years ago by Owen Arnold

refs #5716. Python API extended.

Changeset: 8550c69e9cb02bc2a1821ea0f7cb2a2136283e84

comment:8 Changed 8 years ago by Karl Palmen

  • Status changed from verify to verifying
  • Tester set to Karl Palmen

comment:9 Changed 8 years ago by Karl Palmen

  • Status changed from verifying to closed

The script quoted above worked without giving an error message.

comment:10 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 6562

Note: See TracTickets for help on using tickets.