Ticket #8772 (closed: duplicate)

Opened 7 years ago

Last modified 5 years ago

Amend WorkspaceProperty so that it can hold a pointer to a WorkspaceGroup

Reported by: Russell Taylor Owned by: Russell Taylor
Priority: major Milestone: Release 3.1
Component: Framework Keywords: Core
Cc: Blocked By:
Blocking: Tester: Andrei Savici

Description

At present, WorkspaceProperty cannot generally hold or return the pointer to a WorkspaceGroup because it holds that pointer (in PropertyWithValue) as the WorkspaceProperty template type. This is usually MatrixWorkspace or a subtype, and WorkspaceGroup does not subclass MatrixWorkspace. Note that this template type also plays a role in validating input workspaces.

Because of this, in order to get hold of the pointer you have to go off to the ADS. This imposes a number of restrictions on us - for example, you can't pass a group to a sub-algorithm.

We need to find a way of holding a base Workspace pointer in a WorkspaceProperty. I think that ideally this should not change the interface of WorkspaceProperty, in particular the template type as this would impact just about every single algorithm.

Change History

comment:1 Changed 7 years ago by Russell Taylor

  • Owner set to Russell Taylor
  • Status changed from new to verify
  • Resolution set to duplicate

Turns out this is a duplicate of #6257.

comment:2 Changed 7 years ago by Andrei Savici

  • Status changed from verify to verifying
  • Tester set to Andrei Savici

comment:3 Changed 7 years ago by Andrei Savici

  • Milestone changed from Backlog to Release 3.1

comment:4 Changed 7 years ago by Andrei Savici

  • Status changed from verifying to closed

comment:5 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 9616

Note: See TracTickets for help on using tickets.