Skip to content

Commit

Permalink
Refs #6086 Wiki doc changes, removed code from test case constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
RuthFromDuluth committed May 1, 2013
1 parent ba2c77e commit 4047e60
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ namespace Mantid
void OptimizeCrystalPlacement::initDocs()
{
this->setWikiSummary(
"This algorithms optimizing goniometer settings and sample orientation to better index the peaks." );
"This algorithm optimizes goniometer settings and sample orientation to better index the peaks." );
this->setOptionalMessage(
"This algorithms optimizing goniometer settings and sample orientation to better index the peaks." );
"This algorithm optimizes goniometer settings and sample orientation to better index the peaks." );
}

void OptimizeCrystalPlacement::init()
Expand Down
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/Crystal/src/SCDCalibratePanels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
This algorithm calibrates sets of Rectangular Detectors in one instrument.
The initial path, time offset,panel width's, panel height's, panel locations and orientation are all
The initial path, time offset,panel widths, panel heights, panel locations and orientation are all
adjusted so the error in q positions from the theoretical q positions is minimized. Also, there
are options to optimize taking into account sample position and to have the rotations be rigid rotations.
are optimize options that take into account sample position and the need for rigid rotations.
Some features:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ class OptimizeCrystalPlacementTest: public CxxTest::TestSuite
public:
OptimizeCrystalPlacementTest()
{
initted = false;
}

void init()
{
if( initted)
return;
initted = true;
LoadIsawPeaks alg;
alg.initialize();
alg.setProperty("Filename", "TOPAZ_5637_8.peaks");
Expand All @@ -58,7 +66,7 @@ class OptimizeCrystalPlacementTest: public CxxTest::TestSuite

}
void test_basic()
{
{ init();
OptimizeCrystalPlacement alg;
alg.initialize();
alg.setPropertyValue("PeaksWorkspace", "abcd");
Expand Down Expand Up @@ -131,6 +139,7 @@ class OptimizeCrystalPlacementTest: public CxxTest::TestSuite

void test_tilt()
{
init();
Kernel::Matrix<double> tilt = PeakHKLErrors::RotationMatrixAboutRegAxis(1, 'x')
* PeakHKLErrors::RotationMatrixAboutRegAxis(-2, 'y')
* PeakHKLErrors::RotationMatrixAboutRegAxis(1.3, 'z');
Expand Down Expand Up @@ -214,6 +223,7 @@ class OptimizeCrystalPlacementTest: public CxxTest::TestSuite

void test_SamplePosition()
{
init();
API::IPeak & peak = peaks1->getPeak(0);
boost::shared_ptr<const Geometry::Instrument> Inst = peak.getInstrument();
Kernel::V3D SampPos(.0003, -.00025, .00015);
Expand Down Expand Up @@ -262,6 +272,7 @@ class OptimizeCrystalPlacementTest: public CxxTest::TestSuite
DataObjects::PeaksWorkspace_sptr peaks;
DataObjects::PeaksWorkspace_sptr peaks1;
Kernel::Matrix<double> origGon5637, origGon5638;
bool initted;
};

#endif /* OPTIMIZECRYSTALPLACEMENTTEST_H_ */

0 comments on commit 4047e60

Please sign in to comment.