| 1 | |
|---|
| 2 | import mantid.simpleapi as api |
|---|
| 3 | |
|---|
| 4 | from mantid.api import * |
|---|
| 5 | from mantid.kernel import * |
|---|
| 6 | |
|---|
| 7 | class AlgOne(PythonAlgorithm): |
|---|
| 8 | |
|---|
| 9 | def category(self): |
|---|
| 10 | return "PythonAlgorithms" |
|---|
| 11 | |
|---|
| 12 | def name(self): |
|---|
| 13 | return "AlgOne" |
|---|
| 14 | |
|---|
| 15 | def PyInit(self): |
|---|
| 16 | self.declareProperty(MatrixWorkspaceProperty("InputWorkspace", "", Direction.Input), "Input workspace") |
|---|
| 17 | self.declareProperty(MatrixWorkspaceProperty("OutputWorkspace", "", Direction.Output), "Output Workspace") |
|---|
| 18 | |
|---|
| 19 | def PyExec(self): |
|---|
| 20 | pass |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | ############################################################################################# |
|---|
| 24 | |
|---|
| 25 | AlgorithmFactory.subscribe(AlgOne()) |
|---|