Commit cec3db70 authored by Savici, Andrei T's avatar Savici, Andrei T
Browse files

Re #27704. Clang formmating

parent 5bc97190
......@@ -182,6 +182,7 @@ public:
bool keepOpen = false);
/// Clear the logs
void clearLogs();
protected:
/// Load the run from a NeXus file with a given group name
void loadNexus(::NeXus::File *file,
......
......@@ -343,13 +343,13 @@ LogManager::getTimeSeriesProperty(const std::string &name) const {
* @return A single double value
*/
double LogManager::getTimeAveragedStd(const std::string &name) const {
auto prop=this->getProperty(name);
auto prop = this->getProperty(name);
auto tsp = dynamic_cast<Kernel::TimeSeriesProperty<double> *>(prop);
if (!tsp) {
throw std::runtime_error(
"Could not retrieve a double time series property for the property name " +
name);
}
throw std::runtime_error("Could not retrieve a double time series property "
"for the property name " +
name);
}
return tsp->getStatistics().time_standard_deviation;
}
......
......@@ -412,7 +412,7 @@ public:
const std::string name = "series";
addTestTimeSeries<double>(run, name);
TS_ASSERT_DELTA(run.getTimeAveragedStd(name),8.5239,0.001);
TS_ASSERT_DELTA(run.getTimeAveragedStd(name), 8.5239, 0.001);
}
void test_clear() {
......
......@@ -178,8 +178,7 @@ void export_Run() {
"Return a log as a single float value. Time series values are "
"averaged.")
.def("getTimeAveragedStd",
&Run::getTimeAveragedStd,
.def("getTimeAveragedStd", &Run::getTimeAveragedStd,
(arg("self"), arg("name")),
"Returns the time averaged standard deviation")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment