Ticket #2730 (closed: fixed)
ConvertUnitsTest has incorrect 'standard' values.
Reported by: | Stuart Campbell | Owned by: | Stuart Campbell |
---|---|---|---|
Priority: | major | Milestone: | Iteration 28 |
Component: | Mantid | Keywords: | |
Cc: | jon.taylor@…, nick.draper@… | Blocked By: | |
Blocking: | Tester: | Andrei Savici |
Description
For the testDeltaE() unit test in ConvertUnitsTest there is a discrepancy whether you load the instrument from the RAW file for the instrument definition. So loading MAR11060.raw and then converting to energy (Ei=12) you get a difference in the blocksize. (line 218)
For the RAW file: blocksize = 472 For the IDF file: blocksize = 475
The current test fails to load the IDF because it uses the beamline name "MAR" to find the IDF - so then loads the geometry from the RAW.
If you do this test manually in Mantid, you get the value for using the IDF.
I am going to tighten up the looking up of instrument name to use the FacilityInfo, so this will mean that this test will correctly get the instrument name and therefore find the IDF and therefore fail the test.
I will change the expected value to the one from the IDF for now.
Change History
comment:1 Changed 10 years ago by Stuart Campbell
- Status changed from new to accepted
- Cc jon.taylor@…, nick.draper@… added
comment:4 Changed 10 years ago by Stuart Campbell
- Summary changed from ConvertUnitsTest to ConvertUnitsTest has incorrect 'standard' values.
comment:6 Changed 9 years ago by Stuart Campbell
- Status changed from accepted to verify
- Resolution set to fixed