Ticket #6603: TestWorkspaceGroupProperty.py

File TestWorkspaceGroupProperty.py, 894 bytes (added by Martyn Gigg, 8 years ago)
Line 
1"""*WIKI*
2*WIKI*"""
3
4
5from mantid.kernel import *
6from mantid.api import *
7import numpy as np
8
9import os
10
11class TestWorkspaceGroupProperty(PythonAlgorithm):
12    """
13    """
14   
15    def category(self):
16        return "PythonAlgorithms"
17
18    def name(self):
19        return "WorkspaceGroupProperty"
20
21    def PyInit(self):
22        self.declareProperty(WorkspaceGroupProperty("InputWorkspace", "", Direction.Input), doc="Group workspace that automatically includes all members.")
23        self.declareProperty(MatrixWorkspaceProperty("InputWorkspace2", "", Direction.Input), doc="asd")
24   
25    def PyExec(self):
26        ws = self.getProperty("InputWorkspace").value
27        logger.notice("Input type: %s" % str(type(ws)))
28        ws2 = self.getProperty("InputWorkspace2").value
29        logger.notice("Input type: %s" % str(type(ws2)))
30       
31       
32registerAlgorithm(TestWorkspaceGroupProperty)