Ticket #952 (closed: fixed)

Opened 11 years ago

Last modified 5 years ago

Python Algorithms

Reported by: Nick Draper Owned by: Martyn Gigg
Priority: critical Milestone: Iteration 21
Component: Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

Extend the Python interface to allow usable python algorithms.

This will need to expose details of:

  • Algorithm
  • Write access to workspaces (ideally only from within algorithms)
  • Properties
  • WrokspaceFactory

Also need to check that the code in AlgorithmFactory to register them actually works - it probably needs a bit of improvement/updating.

Change History

comment:1 Changed 11 years ago by Nick Draper

  • Priority changed from major to critical

comment:2 Changed 11 years ago by Martyn Gigg

(In [3665]) Initial setup for PythonAlgorithms. Re #952

comment:3 Changed 11 years ago by Martyn Gigg

(In [3747]) Major backbone of Python algorithms. Changing and reloading while running MantidPlot is now implemented. Re #952

comment:4 Changed 11 years ago by Martyn Gigg

(In [3748]) Fix a python test. Re #952

comment:5 Changed 11 years ago by Martyn Gigg

(In [3749]) Add updated compiled Python init file to installer. Re #952

comment:6 Changed 11 years ago by Russell Taylor

(In [3751]) Fix for tests build on Darwin. Re #952

comment:7 Changed 11 years ago by Martyn Gigg

(In [3760]) Fix for asynchronous running of algorithms from Python so that they halt the script on an error. Also re-added dock updating. Re #952

comment:8 Changed 11 years ago by Martyn Gigg

(In [3778]) Added validation to Python algorithms. Improved handling of Python cloned python references that were not being cleaned up. Re #952

comment:9 Changed 11 years ago by Martyn Gigg

(In [3785]) Added workspace validators to Python. Greatly improved error handling for Python algorithms. Moved Mantid initialization in MantidPlot to before scripting initilzation so that useful log messages get displayed. Re #952

comment:10 Changed 11 years ago by Martyn Gigg

(In [3786]) Disable algorithm reloading temporarily as it's not working quite correctly. Re #952

comment:11 Changed 11 years ago by Martyn Gigg

(In [3792]) Python algorithm reloading now doesn't corrupt running a normal script twice. Fixed problems with MantidPlot crashing if Python wasn't initialized correctly. Re #952

comment:12 Changed 11 years ago by Martyn Gigg

(In [3793]) Update compiled pyc file for the Windows installer. Re #952

comment:13 Changed 11 years ago by Martyn Gigg

(In [3795]) Update to mantidplot python init file to ensure that the simple api is always generated. Re #952

comment:14 Changed 11 years ago by Martyn Gigg

(In [3804]) Fixes for Python algorithms crash on Windows. Added logging at notice, information, warning and error level. Re #952

comment:15 Changed 11 years ago by Martyn Gigg

(In [3807]) Added List validation to Python algorithms and fixed an issue with incorrect detection of boolean type parameters. Removed old example file as it is now incorrect. New example to follow with documentation. Re #952

comment:16 Changed 11 years ago by Martyn Gigg

(In [3815]) Fix for Linux and Darwin builds. Forgot to include 'typename' keyword for nested types. Re #952

comment:17 Changed 11 years ago by Martyn Gigg

(In [3816]) Ensure that when running algorithms from the dock, that the Python object store is refreshed so that any changes are taken into account. Re #952

comment:18 Changed 11 years ago by Martyn Gigg

  • Status changed from new to accepted

comment:19 Changed 11 years ago by Martyn Gigg

  • Status changed from accepted to testing
  • Resolution set to fixed

comment:20 Changed 11 years ago by Martyn Gigg

  • Status changed from testing to reopened
  • Resolution fixed deleted

comment:21 Changed 11 years ago by Martyn Gigg

(In [3828]) Fix for a crash when running algorithms after running Python from an interface. Re #952

comment:22 Changed 11 years ago by Martyn Gigg

  • Status changed from reopened to testing
  • Resolution set to fixed

comment:23 Changed 11 years ago by Martyn Gigg

  • Status changed from testing to reopened
  • Resolution fixed deleted

comment:24 Changed 11 years ago by Martyn Gigg

(In [3850]) Minor fix to list property declaration that got picked up in testing. Re #952

comment:25 Changed 11 years ago by Martyn Gigg

(In [3853]) Partial fix for Python algorithms simple api generation and workspace properties. Re #952

comment:26 Changed 11 years ago by Martyn Gigg

(In [3854]) Fix for crashes when running PythonAlgorithms from Python. Re #952

comment:27 Changed 11 years ago by Martyn Gigg

(In [3855]) Added Python algorithm example Re #952

comment:28 Changed 11 years ago by Martyn Gigg

(In [3856]) Add a Python algorithm directory along with an example algorithm to the installer. Re #952

comment:29 Changed 11 years ago by Roman Tolchenov

(In [3857]) Fixed installer build. re #952

comment:30 Changed 11 years ago by Martyn Gigg

(In [3858]) Replace shipped .pyc files with ordinary .py files from their source location. Re #952

comment:31 Changed 11 years ago by Martyn Gigg

(In [3859]) Remove old pyc component. Re #952

comment:32 Changed 11 years ago by Roman Tolchenov

(In [3860]) Real fix this time. re #952

comment:33 Changed 11 years ago by Martyn Gigg

(In [3861]) Fix problem with always on top flag not respected by scripting window. Re #952

comment:34 Changed 11 years ago by Martyn Gigg

  • Status changed from reopened to testing
  • Resolution set to fixed

comment:35 Changed 11 years ago by Russell Taylor

  • Status changed from testing to closed

comment:36 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 1800

Note: See TracTickets for help on using tickets.