Ticket #373 (closed: fixed)
Allow removal to non edge bins with RemoveTimeBins (also rename to RemoveBins)
Reported by: | Nick Draper | Owned by: | Russell Taylor |
---|---|---|---|
Priority: | major | Milestone: | Iteration 15 |
Component: | Keywords: | ||
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
Allow the removal of bins from the middle of the range. Add a parameter for interpolation (initially allow None and linear). If linear interpolation interpolate the value across the remaining bins.
If None then just remove it.
Change History
comment:6 Changed 12 years ago by Nick Draper
We need to alter the StartX and EndX to take the x bin values, not the indexes.
Just iterate over the X array until you find the first bin that would contain the value, and then crop until the bin that contains the EndX value.
comment:10 Changed 12 years ago by Russell Taylor
comment:12 Changed 12 years ago by Russell Taylor
(In [1947]) RemoveBins can now take in an X range which is in different units to that of the input workspace. This is required for the SANS instruments. Also, when not interpolating, the counts in a bin that straddles the edge of the range is scaled proportionately to the portion of the bin that is within the range. Indices used for interpolation end points should be looked at at some point, and the tests should be expanded... Re #373.
comment:13 Changed 12 years ago by Russell Taylor
comment:14 Changed 12 years ago by Russell Taylor
comment:15 Changed 12 years ago by Russell Taylor
- Status changed from new to closed
- Resolution set to fixed
At some point, the interpolation will need upgrading to, e.g., cubic spline.
comment:16 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 1221
(In [1872]) First attempt at the new RemoveBins algorithm. Refs #373