Ticket #1066 (closed: fixed)

Opened 11 years ago

Last modified 5 years ago

Allow cropping of ragged workspaces

Reported by: Russell Taylor Owned by: Russell Taylor
Priority: major Milestone: Iteration 21
Component: Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

From Laurent:

Can we please have a version of CropWorkspace that crop even if the range in X is different for each spectra. At the moment the algorithm is not very useful as you can only crop in TOF or if you have rebinned your data to a common grid, which usually means loosing resolution.

Crop could keep the same X values and simply turn the Y and E values outside the cropping range to zeros.

Change History

comment:1 Changed 11 years ago by Nick Draper

  • Owner set to Russell Taylor
  • Status changed from new to assigned

comment:2 Changed 11 years ago by Russell Taylor

  • Status changed from assigned to accepted

comment:3 Changed 11 years ago by Russell Taylor

(In [3648]) Enhance CropWorkspace so that it can operate on so-called 'ragged' workspaces. Previously, these would fail validation, now any data+error values that fall outside the X range given are set to zero. So note that in this case you get back a workspace that has the same number of bins, whereas with a workspace with common binning you would get one with fewer bins as the output. Re #1066.

comment:4 Changed 11 years ago by Russell Taylor

(In [3649]) Fix warnings. Re #1066.

comment:5 Changed 11 years ago by Russell Taylor

  • Status changed from accepted to testing
  • Resolution set to fixed

comment:6 Changed 11 years ago by Roman Tolchenov

  • Status changed from testing to closed

comment:7 Changed 6 years ago by Nick Draper

wrongly assigned commit

Last edited 6 years ago by Nick Draper (previous) (diff)

comment:8 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 1914

Note: See TracTickets for help on using tickets.