Ticket #627 (closed: fixed)

Opened 11 years ago

Last modified 5 years ago

Extend Python interface

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

Description

Extend the python interface in the following areas:

  1. Graph plotting: log scaling
  2. Graph plotting: ensure we can scale 2D and 3D graphs
  3. Accessing table workspace values
  4. Displaying table workspaces within Mantidplot
  5. Accessing WS instrument and detector classes (example - calculating solid angle for a spectrum from the sample position).
  6. Accessing WS log values from python

This is required to be completed before the user "python in mantid" courses

Change History

comment:1 Changed 11 years ago by Martyn Gigg

(In [2497]) Added TableWorkspace to PythonAPI. This is quite minimal and unfortunately a bit clunky due to the templated nature of the retrieval functions and Boost Python limitations. Re #627

comment:2 Changed 11 years ago by Martyn Gigg

(In [2502]) Added instrument support to PythonAPI with a demo script for calculating the solid angle. Re #627

comment:3 Changed 11 years ago by Martyn Gigg

(In [2506]) Added support for sample log retrieval in Python. There is a sample script in the scripts directory. Re #627

comment:4 Changed 11 years ago by Martyn Gigg

(In [2512]) Added a few commands to the MantidPlot Python interface so that controlling graphs is a little easier. Re #627

comment:5 Changed 11 years ago by Martyn Gigg

(In [2513]) Update to an exmplae script. Re #627

comment:6 Changed 11 years ago by Martyn Gigg

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

comment:7 Changed 11 years ago by Martyn Gigg

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:8 Changed 11 years ago by Martyn Gigg

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

(In [2515]) Exposed a few extra methods to Python for IDetector. Closes #627

comment:9 Changed 11 years ago by Martyn Gigg

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:10 Changed 11 years ago by Martyn Gigg

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

(In [2532]) Small adjustment to the syntax for scaling axes to make switching types eaiser. Closes #627

comment:11 Changed 11 years ago by Martyn Gigg

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:12 Changed 11 years ago by Martyn Gigg

(In [2533]) Added the ability to change curve titles in to Python. Re #627

comment:13 Changed 11 years ago by Martyn Gigg

(In [2535]) Fix to merge plots command so that the curve that is merged retains the correct style. Re #627

comment:14 Changed 11 years ago by Martyn Gigg

(In [2537]) Retrieving a matrix/table workspace from Python now causes an exception to be thrown if the workspace is not of the correct type. Re #627

comment:15 Changed 11 years ago by Martyn Gigg

(In [2538]) Python is now the default scripting language in MantidPlot. Re #627

comment:16 Changed 11 years ago by Martyn Gigg

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

comment:17 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 1475

Note: See TracTickets for help on using tickets.