Skip to content

Commit

Permalink
Refs #5293 - Slight adjustment to MantidFramework.py
Browse files Browse the repository at this point in the history
Allow for declareWorkspaceProperty([...] Type=ITableWorkspace) in
PythonAlgorithms - currently using it would raise an exception.
  • Loading branch information
PeterParker committed May 9, 2012
1 parent 0b80208 commit 5937fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/PythonAPI/MantidFramework.py
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ def declareWorkspaceProperty(self, PropertyName, WorkspaceName, Direction, Valid
decl_fn = self._declareMatrixWorkspace
elif Type == Workspace:
decl_fn = self._declareWorkspace
elif Type == TableWorkspace:
elif Type == ITableWorkspace:
decl_fn = self._declareTableWorkspace
else:
raise TypeError('Unrecognized type of workspace specified for property "' + PropertyName + '"')
Expand Down

0 comments on commit 5937fcd

Please sign in to comment.