Skip to content

Commit

Permalink
Add a not yet correct test of a parameter re #8398
Browse files Browse the repository at this point in the history
Test does not pass because it is not yet correct. Do not git checkbuild.

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
  • Loading branch information
KarlPalmen committed Dec 20, 2013
1 parent 8171401 commit 0cbfe35
Showing 1 changed file with 15 additions and 0 deletions.
Expand Up @@ -8,6 +8,9 @@
#include "MantidAPI/TableRow.h"
#include "MantidDataHandling/LoadInstrument.h"
#include "MantidDataObjects/Workspace2D.h"
#include "MantidGeometry/Instrument.h"
#include "MantidGeometry/Instrument/Component.h"
#include "MantidGeometry/Instrument/FitParameter.h"
#include <fstream>
#include <Poco/File.h>

Expand Down Expand Up @@ -297,6 +300,18 @@ class LoadFullprofResolutionTest : public CxxTest::TestSuite
TS_ASSERT(alg.isExecuted());

// Check parameters in workspace
MatrixWorkspace_sptr ws;
ws = AnalysisDataService::Instance().retrieveWS<MatrixWorkspace>(wsName);
Mantid::Geometry::ParameterMap& paramMap = ws->instrumentParameters();
boost::shared_ptr<const Mantid::Geometry::Instrument> instr = ws->getInstrument();


Mantid::Geometry::Parameter_sptr alpha0Param = paramMap.get(&(*instr), "IkedaCarpenterPV:Alpha0", "fitting");
TS_ASSERT(alpha0Param);
if(alpha0Param) {
const Mantid::Geometry::FitParameter& fitParam1 = alpha0Param->value<Mantid::Geometry::FitParameter>();
TS_ASSERT_DELTA( fitParam1.getValue(), 100.0, 0.0001);
}

// Clean
Poco::File("TestWorskpace.irf").remove();
Expand Down

0 comments on commit 0cbfe35

Please sign in to comment.