Amend WorkspaceProperty so that it can hold a pointer to a WorkspaceGroup #9616
Labels
Extra Attention
Testers and Gate keepers should pay extra attention as this affects core aspects.
Framework
Issues and pull requests related to components in the Framework
Milestone
Original Reporter: Russell Taylor
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.
Keywords: Core
The text was updated successfully, but these errors were encountered: