| 1 | """*WIKI* |
|---|
| 2 | *WIKI*""" |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | from mantid.kernel import * |
|---|
| 6 | from mantid.api import * |
|---|
| 7 | import numpy as np |
|---|
| 8 | |
|---|
| 9 | import os |
|---|
| 10 | |
|---|
| 11 | class 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 | |
|---|
| 32 | registerAlgorithm(TestWorkspaceGroupProperty) |
|---|