Ticket #1485 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

MatrixWorkspace: add convenience methods that return maps between workspace index, spectrum number, and detector(pixel) ID.

Reported by: Janik Zikovsky Owned by: Janik Zikovsky
Priority: major Milestone: Iteration 24
Component: Keywords:
Cc: pf9@… Blocked By:
Blocking: Tester: Martyn Gigg

Description

There are many situations where you want to be able to convert between these 3 indices in one direction or another, and the implementation is mashed up in axes and other places. I will write functions (or at least function prototypes) with CLEAR function names that return simple maps of the type <int, int> mapping between one index and the other.

Change History

comment:1 Changed 10 years ago by Janik Zikovsky

  • Status changed from new to accepted

comment:2 Changed 10 years ago by Janik Zikovsky

(In [5697]) Refs #1485: convenient mapping functions between workspace index and spectrum number and detector id.

comment:3 Changed 10 years ago by Janik Zikovsky

(In [5700]) Refs #1485: made my convenience functions const, and fixed a test that fails under windows and darwin because only the linux C++ has the at() function, apparently. Linux rules, mac and win drools. :)

comment:4 Changed 10 years ago by Janik Zikovsky

  • Status changed from accepted to verify

comment:5 Changed 10 years ago by Nick Draper

  • Resolution set to fixed

fill in missing resolution

comment:6 Changed 10 years ago by Martyn Gigg

  • Status changed from verify to verifying
  • Tester set to Martyn Gigg

comment:7 Changed 10 years ago by Martyn Gigg

  • Status changed from verifying to closed

Verified in [5969]

Functions work as advertised judging from the units tests.

comment:8 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 2332

Note: See TracTickets for help on using tickets.