Ticket #207 (closed: fixed)

Opened 12 years ago

Last modified 5 years ago

Allow Python Algorithms to be created and deomnstrate with a script

Reported by: Nick Draper Owned by: Matt Clarke
Priority: minor Milestone: Iteration 13
Component: Keywords: python
Cc: Blocked By:
Blocking: Tester:

Description

Extend the python API to include a class that inherits from Algorithm called PyAlgorithm. This should overload the init and exec methods, but in each they should only call new public abstract methods pyInit() and pyExec().

Then when you add a python wrapper for this class you should be able to inherit from this class in python.

It will probably not be possible to insert the new algorithm into the factory, but it should be able to be used directly in python.

Change History

comment:1 Changed 12 years ago by Matt Clarke

(In [1358]) Refs #207. Helper script for RPM.

comment:2 Changed 12 years ago by Nick Draper

  • Milestone changed from Iteration 11 to Iteration 12

comment:3 Changed 12 years ago by Matt Clarke

(In [1383]) Refs #207. SConstruct adjusted to work for RPM

comment:4 Changed 12 years ago by Matt Clarke

(In [1385]) Refs #207. Slight mistake

comment:5 Changed 12 years ago by Matt Clarke

(In [1386]) Refs #207. File needed for producing RPM.

comment:6 Changed 12 years ago by Matt Clarke

(In [1387]) Refs #207. Added the area for creating the RPM

comment:7 Changed 12 years ago by Matt Clarke

(In [1393]) Refs #207. Added initial code for creating an instance of a algorithm in python then having access from it in Mantid.

comment:8 Changed 12 years ago by Matt Clarke

(In [1394]) Forgot to add new class to SVN. Refs #207

comment:9 Changed 12 years ago by Matt Clarke

(In [1395]) Corrected assignment operator. Refs #207

comment:10 Changed 12 years ago by Nick Draper

  • Milestone changed from Iteration 12 to Iteration 13

We just need an example script now

comment:11 Changed 12 years ago by Matt Clarke

(In [1460]) Example python algorithm script. Refs #207

comment:12 Changed 12 years ago by Matt Clarke

  • Status changed from new to closed
  • Resolution set to fixed

comment:13 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 1055

Note: See TracTickets for help on using tickets.