Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create ExtractSpectra Algorithm -- A More Generic Version of ExtractSingleSpectrum #10867

Closed
PeterParker opened this issue Jul 30, 2014 · 1 comment
Labels
Framework Issues and pull requests related to components in the Framework
Milestone

Comments

@PeterParker
Copy link
Contributor

This issue was originally TRAC 10025

It would be nice to have a more generic version of the ExtractSingleSpectrum algorithm, so one can specify an arbitrary list of detector IDs / workspace indices / spectra numbers to keep, and ignore the rest.

(Note that CropWorkspace does not provide this functionality, since that only accepts a single range of workspace indices, and our arbitrary list of spectra may not be contiguous.)

Martyn has said that it would make sense for such an algorithm to take out the existing code from ExtractSingleSpectrum and adjust it so that it works in the new general case. ExtractSingleSpectrum could then just make a forwarding call to ExtractSpectra.

Note that there currently is a workaround (multiple calls to ExtractSingleSpectrum followed by calls to ConjoinWorkspaces), but this new algorithm would be more convenient.

@PeterParker PeterParker added the Framework Issues and pull requests related to components in the Framework label Jun 3, 2015
@martyngigg martyngigg added this to the Release 3.5 milestone Jun 17, 2015
@martyngigg
Copy link
Member

This has been done as part of #12457

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues and pull requests related to components in the Framework
Projects
None yet
Development

No branches or pull requests

2 participants