Ticket #10024 (new)
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.
Note: See
TracTickets for help on using
tickets.
This ticket has been transferred to github issue 10866