Ticket #10024 (new)

Opened 6 years ago

Last modified 5 years ago

Improve Spectrum Number, Workspace Index and Detector ID Lookup

Reported by: Peter Parker Owned by:
Priority: major Milestone: Backlog
Component: Framework Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

There are a few things you have to do to convert between Spectrum Number, Workspace Index and Detector ID, especially in Python, depending on what you start with and which of the three you need to convert to.

We have code in several places with "home brewed" solutions to the conversion process. It would be nice if we had a standardised, single place to get this information from. Martyn has said that he is against exposing some of the underlying C++ methods that do this, since they have performance/efficiency issues.

Requirements:

  • Simple to use from the Python API.
  • Efficient in the use case where you only want to convert, for example, a single detector ID in a workspace that has a large number of spectra.

Change History

comment:1 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 10866

Note: See TracTickets for help on using tickets.