Ticket #2651 (assigned)

Opened 10 years ago

Last modified 5 years ago

Add common commands to matrix workspaces in Python

Reported by: Nick Draper Owned by: Peter Peterson
Priority: critical Milestone: Backlog
Component: Framework Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

This could be implemented in:

  1. PythonAPI\src\workspaceproxies.cpp
  2. PythonAPI\MantidFramework.py

I suppose implementing it in C++ and exposing it is the best way.

The following options are uncontraversial (although only work on matrix workspaces):

  1. Clone
  2. Transpose
  3. Rebin (possibly also RebinToWorkspace, rebunch and regroup)
  4. ConvertUnits
  5. Crop
  6. Save (SaveNexus)
  7. Rename

These might be worth while:

  1. Mask.Extract (ExtractMasking)
  2. Mask.ApplyWS (Maskdetectors using a MaskedWorkspace)
  3. Mask.Apply (Maskdetectors specified detectors or spectra)
  4. Mask.ApplyBins (Maskbins)
  5. Integrate
  6. Sum (SumSpectra)
  7. Merge (MergeRuns)
  8. ReplaceSpeacialValues
  9. SolidAngle
  10. Scale

These I'm not too sure about:

  1. Load (Overwriting existing data, not the best way)
  2. Delete (it would be deleting itself and therefore rensering it's own handle invalid)

These would only work within Mantidplot (Martyn set's a magic flag):

  1. Display (shows the matrix)
  2. Plot (1D or colour map depending on dimensionality)
  3. DisplayInstrument

We could make plot work standalone if MatplotLib was available.

The names I have suggested are just suggestions, have a think about the overall user experience.

Change History

comment:1 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 28 to Iteration 29

Bulk move of tickets at the end of iteration 28

comment:2 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 29 to Iteration 30

"New" tickets moved at the code freeze of iteration 29

comment:3 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 30 to Iteration 31

Bulk move of tickets to iteration 31 at the iteration 30 code freeze

comment:4 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 32 to Iteration 33

Moved to iteration 33 at iteration 32 code freeze

comment:5 Changed 8 years ago by Nick Draper

  • Milestone changed from Release 2.1 to Release 2.2

Moved at end of release 2.1

comment:6 Changed 8 years ago by Nick Draper

  • Milestone changed from Release 2.2 to Release 2.3

Moved at the end of release 2.2

comment:7 Changed 8 years ago by Nick Draper

  • Milestone changed from Release 2.3 to Release 2.4

Moved to milestone 2.4

comment:8 Changed 8 years ago by Peter Peterson

  • Milestone changed from Release 2.4 to Release 2.5

comment:9 Changed 7 years ago by Nick Draper

  • Milestone changed from Release 2.5 to Release 2.6

Moved to r2.6 at the end of r2.5

comment:10 Changed 7 years ago by Nick Draper

  • Component changed from Mantid to Framework

comment:11 Changed 7 years ago by Nick Draper

  • Milestone changed from Release 2.6 to Backlog

Moved to the Backlog after R2.6

comment:12 Changed 7 years ago by Nick Draper

  • Status changed from new to assigned

Bulk move to assigned at the introduction of the triage step

comment:13 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 3498

Note: See TracTickets for help on using tickets.