Ticket #3934 (closed: fixed)
ConvertUnits should leave sort order
Reported by: | Peter Peterson | Owned by: | Janik Zikovsky |
---|---|---|---|
Priority: | major | Milestone: | Release 2.0 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Owen Arnold |
Description
Rather than always marking the event list as unsorted once a unit conversion is done, it should leave the sort order alone if possible. There are three cases that need to be accounted for:
- Unsorted - convert units and be done
- Sorted by tof - convert units and reverse list of events if appropriate
- Sorted by pulse - convert units and be done
ConvertUnits has two basic branches to look at which can be improved separately: ConvertQuickly and ConvertViaTOF.
Whether or not this works is easily tested by:
- Load an event list
- SortEvents by whatever type is appropriate
- ConvertUnits
- SortEvents by the same type again
If everything went according to plan, the second sort will take no time to run.
Change History
comment:1 Changed 9 years ago by Janik Zikovsky
- Status changed from new to assigned
- Owner changed from Anyone to Janik Zikovsky
comment:5 Changed 9 years ago by Janik Zikovsky
- Status changed from accepted to verify
- Resolution set to fixed
comment:6 Changed 9 years ago by Owen Arnold
- Status changed from verify to verifying
- Tester set to Owen Arnold
Note: See
TracTickets for help on using
tickets.