diff --git a/Framework/DataHandling/inc/MantidDataHandling/SavePDFGui.h b/Framework/DataHandling/inc/MantidDataHandling/SavePDFGui.h index d9433fe9e5de8598dbbe8669c2311f7956a5db88..f631bc33573b466e0f7ad535acd9328f1d5bd76a 100644 --- a/Framework/DataHandling/inc/MantidDataHandling/SavePDFGui.h +++ b/Framework/DataHandling/inc/MantidDataHandling/SavePDFGui.h @@ -13,15 +13,14 @@ namespace Mantid { namespace DataHandling { -/** SavePDFGui : Saves a workspace containing a pair distrebution function in -a format readable by the PDFgui package. +/** SavePDFGui : Saves a workspace containing a pair distrebution function in a format readable by the PDFgui package. Required Properties: <UL> <LI> InputWorkspace - An input workspace with units of Atomic Distance </LI> <LI> Filename - The filename to use for the saved data </LI> </UL> - */ +*/ class DLLExport SavePDFGui : public API::Algorithm { public: const std::string name() const override; diff --git a/Framework/DataHandling/inc/MantidDataHandling/SaveRMCProfile.h b/Framework/DataHandling/inc/MantidDataHandling/SaveRMCProfile.h index 32c887b768df7e379255a8a14dc5bd99f5b4b0a0..a6f545c9706c6fffe4a5479596394acc2d3f08ba 100644 --- a/Framework/DataHandling/inc/MantidDataHandling/SaveRMCProfile.h +++ b/Framework/DataHandling/inc/MantidDataHandling/SaveRMCProfile.h @@ -13,8 +13,7 @@ namespace Mantid { namespace DataHandling { -/** SaveRMCProfile : Saves a workspace containing a spectral density in -a format readable by the RMCProfile package. +/** SaveRMCProfile : Saves a workspace containing a spectral density in a format readable by the RMCProfile package. Required Properties: <UL> @@ -37,9 +36,8 @@ private: void init() override; void exec() override; void writeMetaData(std::ofstream &out, - API::MatrixWorkspace_const_sptr inputWS); - void writeWSData(std::ofstream &out, - API::MatrixWorkspace_const_sptr inputWS); + API::MatrixWorkspace_const_sptr inputWS); + void writeWSData(std::ofstream &out, API::MatrixWorkspace_const_sptr inputWS); }; } // namespace DataHandling diff --git a/Framework/DataHandling/src/SavePDFGui.cpp b/Framework/DataHandling/src/SavePDFGui.cpp index 3721e52a99260389fea7104e894bb8462985fb3e..591345d21c96fcfae720a2c29012e2d2cd37fac4 100644 --- a/Framework/DataHandling/src/SavePDFGui.cpp +++ b/Framework/DataHandling/src/SavePDFGui.cpp @@ -86,7 +86,7 @@ void SavePDFGui::exec() { // --------- write the data writeWSData(out, inputWS); - + // --------- close the file out.close(); } @@ -120,7 +120,7 @@ void SavePDFGui::writeMetaData(std::ofstream &out, } void SavePDFGui::writeWSData(std::ofstream &out, - API::MatrixWorkspace_const_sptr inputWS) { + API::MatrixWorkspace_const_sptr inputWS) { const auto &x = inputWS->x(0); const auto &y = inputWS->y(0); const auto &dy = inputWS->e(0); diff --git a/Framework/DataHandling/src/SaveRMCProfile.cpp b/Framework/DataHandling/src/SaveRMCProfile.cpp index 5dd50dc37984c444635f1f320ed2cd9565b24611..5ccfb33e007f7b7c4b12085bd967bf28374b04ec 100644 --- a/Framework/DataHandling/src/SaveRMCProfile.cpp +++ b/Framework/DataHandling/src/SaveRMCProfile.cpp @@ -32,7 +32,9 @@ const std::string SaveRMCProfile::name() const { return "SaveRMCProfile"; } int SaveRMCProfile::version() const { return 1; } /// Algorithm's category for identification. @see Algorithm::category -const std::string SaveRMCProfile::category() const { return "DataHandling\\Text"; } +const std::string SaveRMCProfile::category() const { + return "DataHandling\\Text"; +} /// Algorithm's summary for use in the GUI and help. @see Algorithm::summary const std::string SaveRMCProfile::summary() const { @@ -89,7 +91,7 @@ void SaveRMCProfile::exec() { // --------- write the data writeWSData(out, inputWS); - + // --------- close the file out.close(); } @@ -105,7 +107,7 @@ void SaveRMCProfile::writeMetaData(std::ofstream &out, std::cout << "rmc " << inputType << " # " << title << std::endl; } -void SaveRMCProfile::writeWSData(std::ofstream& out, +void SaveRMCProfile::writeWSData(std::ofstream &out, API::MatrixWorkspace_const_sptr inputWS) { const auto &x = inputWS->x(0); const auto &y = inputWS->y(0); diff --git a/Framework/DataHandling/test/SaveRMCProfileTest.h b/Framework/DataHandling/test/SaveRMCProfileTest.h index 8180990b9c51e53127aa0af1fc883c091b1df80e..83efcbaac0808ad10ff5962c88c008d6cdb18b12 100644 --- a/Framework/DataHandling/test/SaveRMCProfileTest.h +++ b/Framework/DataHandling/test/SaveRMCProfileTest.h @@ -127,7 +127,7 @@ public: TS_ASSERT_THROWS_NOTHING(alg.execute()); TS_ASSERT(alg.isExecuted()); - // do the checks, output should only contain the output from the + // do the checks Poco::File outFile(outFilename); TS_ASSERT(outFile.isFile()); TS_ASSERT_EQUALS(countLines(outFilename), 1006);