Skip to content
Snippets Groups Projects
Commit d67b8f86 authored by Harriet Brown's avatar Harriet Brown
Browse files

Fix clang format failures.

parent 54d0ce30
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment