Skip to content

Commit

Permalink
Refs #6550 Published a revert already
Browse files Browse the repository at this point in the history
"Refs #6550  Added a test program"

This reverts commit a1fac66.
  • Loading branch information
RuthFromDuluth committed Mar 23, 2013
1 parent a1fac66 commit 1a6738c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 274 deletions.
1 change: 0 additions & 1 deletion Code/Mantid/Framework/Crystal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ set ( TEST_FILES
LoadIsawUBTest.h
MaskPeaksWorkspaceTest.h
NormaliseVanadiumTest.h
OptimizeCrystalPlacementTest.h
PeakHKLErrorsTest.h
PeakIntegrationTest.h
PeakIntensityVsRadiusTest.h
Expand Down
10 changes: 5 additions & 5 deletions Code/Mantid/Framework/Crystal/src/OptimizeCrystalPlacement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ namespace Mantid
"Workspace of Results");


declareProperty("AdjustSampleOffsets", false,
declareProperty("AdjustSampleOffsets", true,
"If true sample offsets will be adjusted to give better fits, otherwise they will be fixed as zero(def=true)");

declareProperty("OptimizeGoniometerTilt", false, "Set true if main error is due to a tilted Goniometer(def=false)");
Expand All @@ -103,8 +103,8 @@ namespace Mantid
declareProperty(
"MaxHKLPeaks2Use", -1.0,
"If less than 0 all peaks are used, otherwise only peaks whose h,k, and l values are below the level are used(def=-1)");
declareProperty("MaxSamplePositionChange_meters", .0005,
"Maximum Change in Sample position in meters(def=.0005)");
declareProperty("MaxSamplePositionChange_meters", .005,
"Maximum Change in Sample position in meters(def=.005)");


setPropertyGroup("MaxAngularChange", "Tolerance settings");
Expand Down Expand Up @@ -350,14 +350,14 @@ namespace Mantid

//------------------ Fix up Covariance output --------------------
declareProperty( new WorkspaceProperty< ITableWorkspace>(
"OutputNormalisedCovarianceMatrixOptX" , "" , Direction::Output ) ,
"OutputNormalisedCovarianceMatrix" , "" , Direction::Output ) ,
"The name of the TableWorkspace in which to store the final covariance matrix" );


ITableWorkspace_sptr NormCov = fit_alg->getProperty( "OutputNormalisedCovarianceMatrix" );

AnalysisDataService::Instance().addOrReplace( std::string( "CovarianceInfo" ) , NormCov );
setPropertyValue( "OutputNormalisedCovarianceMatrixOptX" , std::string( "CovarianceInfo" ) );//What if 2 instances are run
setPropertyValue( "OutputNormalisedCovarianceMatrix" , std::string( "CovarianceInfo" ) );//What if 2 instances are run

if ( chisq < 0 || chisq != chisq )
sigma = -1;
Expand Down
267 changes: 0 additions & 267 deletions Code/Mantid/Framework/Crystal/test/OptimizeCrystalPlacementTest.h

This file was deleted.

2 changes: 1 addition & 1 deletion Code/Mantid/Framework/Crystal/test/PeakHKLErrorsTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Jacob: public API::Jacobian
alg.execute();
alg.setProperty("OutputWorkspace","abcd");
DataObjects::PeaksWorkspace_sptr peaks =alg.getProperty("OutputWorkspace");
//std::cout<<"Peaks number="<<peaks->getNumberPeaks()<<std::endl;
std::cout<<"Peaks number="<<peaks->getNumberPeaks()<<std::endl;

LoadIsawUB loadUB;
loadUB.initialize();
Expand Down

0 comments on commit 1a6738c

Please sign in to comment.