Ticket #1593 (closed: fixed)
Fix GetDetectorOffsets and add validators and a unit test
Reported by: | Russell Taylor | Owned by: | Vickie Lynch |
---|---|---|---|
Priority: | major | Milestone: | Iteration 25 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Martyn Gigg |
Description
GetDetectorOffsets is broken since some stickler added a const to a workspace pointer that's passed to a sub-algorithm in check-in [5142]. This algorithm could also use some validators because a number of mandatory parameters have none.
Change History
comment:5 Changed 10 years ago by Russell Taylor
- Status changed from accepted to assigned
- Owner changed from Russell Taylor to Vickie Lynch
- Component set to Mantid
- Summary changed from Fix GetDetectorOffsets and add validators to Fix GetDetectorOffsets and add validators and a unit test
I'm handing this off as I really don't know enough about it to write a sensible unit test.
Also, although I would like to add more validators I'm concerned that some users of this algorithm might be relying on the defaults being as they are even if it doesn't seem sensible.
comment:8 Changed 10 years ago by Vickie Lynch
- Status changed from accepted to verify
- Resolution set to fixed
Validators and test work for PG3 data.
comment:10 Changed 10 years ago by Russell Taylor
comment:11 Changed 10 years ago by Martyn Gigg
comment:12 Changed 10 years ago by Martyn Gigg
- Status changed from verify to verifying
- Tester set to Martyn Gigg
comment:13 Changed 10 years ago by Martyn Gigg
- Status changed from verifying to closed
Verified the unit test runs and is not a sensible size. Output cal file seems sensible when tested with HRP39191.
comment:14 Changed 10 years ago by Martyn Gigg
Previous comment was supposed to say 'unit tests are using a sensible size workspace now' not that they are not of a sensible size!
comment:15 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 2440
A unit test for this algorithm would be a good idea as well. And its inclusion in a system test.