Ticket #5290: someAlgorithm.py
File someAlgorithm.py, 302 bytes (added by Peter Parker, 8 years ago) |
---|
Line | |
---|---|
1 | class SomeAlgorithm(PythonAlgorithm): |
2 | def PyInit(self): |
3 | # Declare algorithm properties. |
4 | self.declareProperty('Input', '' , MandatoryValidator(), Description='') |
5 | |
6 | def PyExec(self): |
7 | print self.getPropertyValue("Input") |
8 | |
9 | # Register algorthm with Mantid. |
10 | mantid.registerPyAlgorithm(SomeAlgorithm()) |