Skip to content

Commit

Permalink
refs #11056. CreateSampleWorkspace fixed.
Browse files Browse the repository at this point in the history
CreateSampleWorkspace does not set up a ReferenceFrame which is consistent with the actual layout of the instrument.
I don't know how this probelem got in there in the first-place, or why it hadn't cause problem up to now! Peak calculations require that the reference frame is known so that we can dot product with the beam direction in order to determine dQ.

Fixing this should now make the doc-tests pass.
  • Loading branch information
OwenArnold committed Feb 19, 2015
1 parent c7c5e1b commit 1ec1f83
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -396,7 +396,7 @@ Instrument_sptr CreateSampleWorkspace::createTestInstrumentRectangular(
int num_banks, int pixels, double pixelSpacing) {
boost::shared_ptr<Instrument> testInst(new Instrument("basic_rect"));
testInst->setReferenceFrame(
boost::shared_ptr<ReferenceFrame>(new ReferenceFrame(Y, X, Left, "")));
boost::shared_ptr<ReferenceFrame>(new ReferenceFrame(Y, Z, Left, "")));

const double cylRadius(pixelSpacing / 2);
const double cylHeight(0.0002);
Expand Down

0 comments on commit 1ec1f83

Please sign in to comment.