Skip to content

Commit

Permalink
Re #8675. Finished the rename of PDLoadCharacterizations.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Mar 14, 2014
1 parent ba820de commit 8f6f169
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 36 deletions.
12 changes: 6 additions & 6 deletions Code/Mantid/Framework/DataHandling/CMakeLists.txt
Expand Up @@ -58,7 +58,6 @@ set ( SRC_FILES
src/LoadNexusLogs.cpp
src/LoadNexusMonitors.cpp
src/LoadNexusProcessed.cpp
src/LoadPDCharacterizations.cpp
src/LoadPDFgetNFile.cpp
src/LoadParameterFile.cpp
src/LoadPreNexus.cpp
Expand Down Expand Up @@ -91,7 +90,8 @@ set ( SRC_FILES
src/ModifyDetectorDotDatFile.cpp
src/MoveInstrumentComponent.cpp
src/NexusTester.cpp
src/ProcessDasNexusLog.cpp
src/PDLoadCharacterizations.cpp
src/ProcessDasNexusLog.cpp
src/RawFileInfo.cpp
src/RemoveLogs.cpp
src/RenameLog.cpp
Expand Down Expand Up @@ -189,7 +189,6 @@ set ( INC_FILES
inc/MantidDataHandling/LoadNexusLogs.h
inc/MantidDataHandling/LoadNexusMonitors.h
inc/MantidDataHandling/LoadNexusProcessed.h
inc/MantidDataHandling/LoadPDCharacterizations.h
inc/MantidDataHandling/LoadPDFgetNFile.h
inc/MantidDataHandling/LoadParameterFile.h
inc/MantidDataHandling/LoadPreNexus.h
Expand Down Expand Up @@ -217,7 +216,8 @@ set ( INC_FILES
inc/MantidDataHandling/ModifyDetectorDotDatFile.h
inc/MantidDataHandling/MoveInstrumentComponent.h
inc/MantidDataHandling/NexusTester.h
inc/MantidDataHandling/ProcessDasNexusLog.h
inc/MantidDataHandling/PDLoadCharacterizations.h
inc/MantidDataHandling/ProcessDasNexusLog.h
inc/MantidDataHandling/RawFileInfo.h
inc/MantidDataHandling/RemoveLogs.h
inc/MantidDataHandling/RenameLog.h
Expand Down Expand Up @@ -312,7 +312,6 @@ set ( TEST_FILES
LoadNexusMonitorsTest.h
LoadNexusProcessedTest.h
LoadNexusTest.h
LoadPDCharacterizationsTest.h
LoadPDFgetNFileTest.h
LoadParameterFileTest.h
LoadPreNexusMonitorsTest.h
Expand Down Expand Up @@ -340,7 +339,8 @@ set ( TEST_FILES
ModifyDetectorDotDatFileTest.h
MoveInstrumentComponentTest.h
NexusTesterTest.h
ProcessDasNexusLogTest.h
PDLoadCharacterizationsTest.h
ProcessDasNexusLogTest.h
RawFileInfoTest.h
RemoveLogsTest.h
RenameLogTest.h
Expand Down
@@ -1,5 +1,5 @@
#ifndef MANTID_DATAHANDLING_LOADPDCHARACTERIZATIONS_H_
#define MANTID_DATAHANDLING_LOADPDCHARACTERIZATIONS_H_
#ifndef MANTID_DATAHANDLING_PDLOADCHARACTERIZATIONS_H_
#define MANTID_DATAHANDLING_PDLOADCHARACTERIZATIONS_H_

#include "MantidKernel/System.h"
#include "MantidAPI/Algorithm.h"
Expand Down Expand Up @@ -32,11 +32,11 @@ namespace DataHandling
File change history is stored at: <https://github.com/mantidproject/mantid>
Code Documentation is available at: <http://doxygen.mantidproject.org>
*/
class DLLExport LoadPDCharacterizations : public API::Algorithm
class DLLExport PDLoadCharacterizations : public API::Algorithm
{
public:
LoadPDCharacterizations();
virtual ~LoadPDCharacterizations();
PDLoadCharacterizations();
virtual ~PDLoadCharacterizations();

virtual const std::string name() const;
virtual int version() const;
Expand All @@ -54,4 +54,4 @@ namespace DataHandling
} // namespace DataHandling
} // namespace Mantid

#endif /* MANTID_DATAHANDLING_LOADPDCHARACTERIZATIONS_H_ */
#endif /* MANTID_DATAHANDLING_PDLOADCHARACTERIZATIONS_H_ */
24 changes: 12 additions & 12 deletions Code/Mantid/Framework/DataHandling/src/PDLoadCharacterizations.cpp
Expand Up @@ -5,7 +5,7 @@ in [[EditInstrumentGeometry]]. If a section is missing then those parameters wil
empty. This includes an empty table (zero rows) if that information is missing.
*WIKI*/

#include "MantidDataHandling/LoadPDCharacterizations.h"
#include "MantidDataHandling/PDLoadCharacterizations.h"
#include "MantidAPI/FileProperty.h"
#include "MantidAPI/TableRow.h"
#include "MantidAPI/WorkspaceFactory.h"
Expand All @@ -24,7 +24,7 @@ namespace DataHandling
{

// Register the algorithm into the AlgorithmFactory
DECLARE_ALGORITHM(LoadPDCharacterizations)
DECLARE_ALGORITHM(PDLoadCharacterizations)

/// key for a instrument parameter file being listed
static const std::string IPARM_KEY("Instrument parameter file:");
Expand All @@ -34,31 +34,31 @@ namespace DataHandling
//----------------------------------------------------------------------------------------------
/** Constructor
*/
LoadPDCharacterizations::LoadPDCharacterizations()
PDLoadCharacterizations::PDLoadCharacterizations()
{
}

//----------------------------------------------------------------------------------------------
/** Destructor
*/
LoadPDCharacterizations::~LoadPDCharacterizations()
PDLoadCharacterizations::~PDLoadCharacterizations()
{
}


//----------------------------------------------------------------------------------------------
/// Algorithm's name for identification. @see Algorithm::name
const std::string LoadPDCharacterizations::name() const { return "LoadPDCharacterizations";};
const std::string PDLoadCharacterizations::name() const { return "PDLoadCharacterizations";};

/// Algorithm's version for identification. @see Algorithm::version
int LoadPDCharacterizations::version() const { return 1;};
int PDLoadCharacterizations::version() const { return 1;};

/// Algorithm's category for identification. @see Algorithm::category
const std::string LoadPDCharacterizations::category() const { return "Workflow\\DataHandling";}
const std::string PDLoadCharacterizations::category() const { return "Workflow\\DataHandling";}

//----------------------------------------------------------------------------------------------
/// Sets documentation strings for this algorithm
void LoadPDCharacterizations::initDocs()
void PDLoadCharacterizations::initDocs()
{
std::string descr("Load a characterization file used in Powder Diffraction Reduction.");
this->setWikiSummary(descr);
Expand All @@ -68,7 +68,7 @@ namespace DataHandling
//----------------------------------------------------------------------------------------------
/** Initialize the algorithm's properties.
*/
void LoadPDCharacterizations::init()
void PDLoadCharacterizations::init()
{
std::vector<std::string> exts;
exts.push_back(".txt");
Expand Down Expand Up @@ -97,7 +97,7 @@ namespace DataHandling
//----------------------------------------------------------------------------------------------
/** Execute the algorithm.
*/
void LoadPDCharacterizations::exec()
void PDLoadCharacterizations::exec()
{
// open the file for reading
std::string filename = this->getProperty("Filename");
Expand Down Expand Up @@ -143,7 +143,7 @@ namespace DataHandling
*
* @param file The stream to parse.
*/
void LoadPDCharacterizations::readFocusInfo(std::ifstream &file)
void PDLoadCharacterizations::readFocusInfo(std::ifstream &file)
{
// end early if already at the end of the file
if (file.eof()) return;
Expand Down Expand Up @@ -193,7 +193,7 @@ namespace DataHandling
* @param file The stream to parse.
* @param wksp The table workspace to fill in.
*/
void LoadPDCharacterizations::readCharInfo(std::ifstream &file, ITableWorkspace_sptr &wksp)
void PDLoadCharacterizations::readCharInfo(std::ifstream &file, ITableWorkspace_sptr &wksp)
{
// end early if already at the end of the file
if (file.eof()) return;
Expand Down
Expand Up @@ -4,20 +4,20 @@
#include <boost/shared_ptr.hpp>
#include <cxxtest/TestSuite.h>

#include "MantidDataHandling/LoadPDCharacterizations.h"
#include "MantidDataHandling/PDLoadCharacterizations.h"
using Mantid::API::ITableWorkspace;
using Mantid::API::ITableWorkspace_sptr;

using Mantid::DataHandling::LoadPDCharacterizations;
class LoadPDCharacterizationsTest : public CxxTest::TestSuite
using Mantid::DataHandling::PDLoadCharacterizations;
class PDLoadCharacterizationsTest : public CxxTest::TestSuite
{
public:
// This pair of boilerplate methods prevent the suite being created statically
// This means the constructor isn't called when running other tests
static LoadPDCharacterizationsTest *createSuite() { return new LoadPDCharacterizationsTest(); }
static void destroySuite( LoadPDCharacterizationsTest *suite ) { delete suite; }
static PDLoadCharacterizationsTest *createSuite() { return new PDLoadCharacterizationsTest(); }
static void destroySuite( PDLoadCharacterizationsTest *suite ) { delete suite; }

void runAlg(LoadPDCharacterizations &alg, ITableWorkspace_sptr &wksp, const std::string &filename)
void runAlg(PDLoadCharacterizations &alg, ITableWorkspace_sptr &wksp, const std::string &filename)
{
TS_ASSERT_THROWS_NOTHING( alg.initialize() );
TS_ASSERT( alg.isInitialized() );
Expand All @@ -35,7 +35,7 @@ class LoadPDCharacterizationsTest : public CxxTest::TestSuite
}

// checks the focus positions for NOMAD
void checkNOMAD(LoadPDCharacterizations &alg)
void checkNOMAD(PDLoadCharacterizations &alg)
{
TS_ASSERT_EQUALS(alg.getPropertyValue("IParmFilename"), std::string("NOMAD_11_22_11.prm"));
double l1 = alg.getProperty("PrimaryFlightPath");
Expand Down Expand Up @@ -112,7 +112,7 @@ class LoadPDCharacterizationsTest : public CxxTest::TestSuite

void test_Init()
{
LoadPDCharacterizations alg;
PDLoadCharacterizations alg;
TS_ASSERT_THROWS_NOTHING( alg.initialize() )
TS_ASSERT( alg.isInitialized() )
}
Expand All @@ -123,7 +123,7 @@ class LoadPDCharacterizationsTest : public CxxTest::TestSuite
ITableWorkspace_sptr wksp;

// initialize and run the algorithm
LoadPDCharacterizations alg;
PDLoadCharacterizations alg;
runAlg(alg, wksp, CHAR_FILE);

// test the table workspace
Expand Down Expand Up @@ -161,7 +161,7 @@ class LoadPDCharacterizationsTest : public CxxTest::TestSuite
ITableWorkspace_sptr wksp;

// initialize and run the algorithm
LoadPDCharacterizations alg;
PDLoadCharacterizations alg;
runAlg(alg, wksp, CHAR_FILE);

// test the table workspace
Expand Down Expand Up @@ -190,7 +190,7 @@ class LoadPDCharacterizationsTest : public CxxTest::TestSuite
ITableWorkspace_sptr wksp;

// initialize and run the algorithm
LoadPDCharacterizations alg;
PDLoadCharacterizations alg;
runAlg(alg, wksp, CHAR_FILE);

// test the table workspace
Expand All @@ -207,7 +207,7 @@ class LoadPDCharacterizationsTest : public CxxTest::TestSuite
ITableWorkspace_sptr wksp;

// initialize and run the algorithm
LoadPDCharacterizations alg;
PDLoadCharacterizations alg;
runAlg(alg, wksp, CHAR_FILE);

// test the table workspace
Expand Down

0 comments on commit 8f6f169

Please sign in to comment.