Ticket #127 (closed: fixed)

Opened 12 years ago

Last modified 5 years ago

Extend the MantidPythonAPI for Python use

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

Description (last modified by Nick Draper) (diff)

We need to add

  • the ability to create any algorithm
  • The ability to set parameters on algorithms
  • the ability to execute algorithms
  • The ability to extract 2D workspaces (prefereable any workspace)
  • Access to the data on 2D workspaces

This should be avaivable through providing a python interface to the following classes FrameworkManager Parameter IAlgorithm Algorithm Instrument Sample WorkspaceHistory AlgorithmHistory AlgorithmParameter

Change History

comment:1 Changed 12 years ago by Nick Draper

(In [963]) re #127 Edit the windows build to embed the manifest files required to import the API to python.

comment:2 Changed 12 years ago by Nick Draper

(In [964]) re #127 Basic MantidScript.bat and MantidStartup.py added

comment:3 Changed 12 years ago by Nick Draper

  • Priority changed from major to critical
  • Milestone changed from Iteration 8 to Iteration 9

comment:4 Changed 12 years ago by Nick Draper

  • Description modified (diff)

comment:5 Changed 12 years ago by Matt Clarke

(In [1093]) Added frameworkManager to the python API. Refs #127

comment:6 Changed 12 years ago by Matt Clarke

(In [1097]) Remove shared pointer reference from loadraw. Refs #127

comment:7 Changed 12 years ago by Matt Clarke

(In [1098]) Refs #127. Adjusted WorkspaceProperty so clear() is called in store() as the method was returning before executing that line.

comment:8 Changed 12 years ago by Matt Clarke

(In [1100]) Refs #127. Adjusted test to match changes

comment:9 Changed 12 years ago by Matt Clarke

(In [1143]) Added tests from framework manager wrapper. Refs #127

comment:10 Changed 12 years ago by Matt Clarke

(In [1144]) Forgot to add DLLExport as usual! Refs #127

comment:11 Changed 12 years ago by Matt Clarke

(In [1145]) Try using full namespace! Refs #127

comment:12 Changed 12 years ago by Matt Clarke

(In [1147]) Forgot to checkin the file I added DLLExport to! Refs #127

comment:13 Changed 12 years ago by Matt Clarke

(In [1150]) Removed the interface class as it provided the same functionality as the framework class. Hopefully the DLLExports are correct! Refs #127

comment:14 Changed 12 years ago by Matt Clarke

(In [1151]) Have renamed GetHistogramNumber to GetNumberHistograms as it is hopefully less ambiguous. Refs #127

comment:15 Changed 12 years ago by Matt Clarke

(In [1153]) Added Algorithm to PythonWrapper. Refs #127

comment:16 Changed 12 years ago by Matt Clarke

(In [1155]) Added AlgorithmParameter, WorkspaceHistory and AlgorithmHistory to Python wrapper. Had to define a == operator for AlgorithmParameter and AlgorithmHistory. Had to define a method to return AlgorithmParameters from WorkspaceHistory as Python is not happy with overloading on const. Refs #127

comment:17 Changed 12 years ago by Matt Clarke

(In [1157]) Added definition to Workspace Wrapper for getHistory. Refs #127

comment:18 Changed 12 years ago by Matt Clarke

(In [1158]) Added a python test script. Refs #127

comment:19 Changed 12 years ago by Matt Clarke

(In [1159]) First attempt at automating python tests (Linux only). Refs #127

comment:20 Changed 12 years ago by Matt Clarke

(In [1160]) Bad python! Refs #127

comment:21 Changed 12 years ago by Matt Clarke

(In [1161]) Path now correct for saving python test log. Refs #127

comment:22 Changed 12 years ago by Matt Clarke

(In [1162]) typo in email script! Refs #127

comment:23 Changed 12 years ago by Matt Clarke

(In [1163]) typo in email script! Refs #127

comment:24 Changed 12 years ago by Matt Clarke

(In [1164]) typo in email script! Refs #127

comment:25 Changed 12 years ago by Nick Draper

  • Owner changed from Matt Clarke to Nick Draper
  • Status changed from new to assigned
  • Milestone changed from Iteration 9 to Iteration 10

comment:26 Changed 12 years ago by Nick Draper

  • Owner changed from Nick Draper to Matt Clarke
  • Status changed from assigned to new

comment:27 Changed 12 years ago by Matt Clarke

(In [1187]) Python tests should finally work.Refs #127

comment:28 Changed 12 years ago by Matt Clarke

(In [1197]) Changed PythonWrapper and tests to match Russell's changes. Refs #127

comment:29 Changed 12 years ago by Matt Clarke

(In [1222]) Added IDetector and SpectraDetectorMap for Python. Refs #127

comment:30 Changed 12 years ago by Matt Clarke

(In [1231]) Added push_back to python versions of vector<double> and vector<string>. Refs #127

comment:31 Changed 12 years ago by Matt Clarke

(In [1232]) Missed an ampersand. Refs #127

comment:32 Changed 12 years ago by Nick Draper

  • Status changed from new to assigned
  • Owner changed from Matt Clarke to Nick Draper

comment:33 Changed 12 years ago by Nick Draper

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

comment:34 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 975

Note: See TracTickets for help on using tickets.