Skip to content
Snippets Groups Projects
Commit cec3db70 authored by Savici, Andrei T.'s avatar Savici, Andrei T.
Browse files

Re #27704. Clang formmating

parent 5bc97190
No related branches found
No related tags found
No related merge requests found
...@@ -182,6 +182,7 @@ public: ...@@ -182,6 +182,7 @@ public:
bool keepOpen = false); bool keepOpen = false);
/// Clear the logs /// Clear the logs
void clearLogs(); void clearLogs();
protected: protected:
/// Load the run from a NeXus file with a given group name /// Load the run from a NeXus file with a given group name
void loadNexus(::NeXus::File *file, void loadNexus(::NeXus::File *file,
......
...@@ -343,13 +343,13 @@ LogManager::getTimeSeriesProperty(const std::string &name) const { ...@@ -343,13 +343,13 @@ LogManager::getTimeSeriesProperty(const std::string &name) const {
* @return A single double value * @return A single double value
*/ */
double LogManager::getTimeAveragedStd(const std::string &name) const { 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); auto tsp = dynamic_cast<Kernel::TimeSeriesProperty<double> *>(prop);
if (!tsp) { if (!tsp) {
throw std::runtime_error( throw std::runtime_error("Could not retrieve a double time series property "
"Could not retrieve a double time series property for the property name " + "for the property name " +
name); name);
} }
return tsp->getStatistics().time_standard_deviation; return tsp->getStatistics().time_standard_deviation;
} }
......
...@@ -412,7 +412,7 @@ public: ...@@ -412,7 +412,7 @@ public:
const std::string name = "series"; const std::string name = "series";
addTestTimeSeries<double>(run, name); 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() { void test_clear() {
......
...@@ -178,8 +178,7 @@ void export_Run() { ...@@ -178,8 +178,7 @@ void export_Run() {
"Return a log as a single float value. Time series values are " "Return a log as a single float value. Time series values are "
"averaged.") "averaged.")
.def("getTimeAveragedStd", .def("getTimeAveragedStd", &Run::getTimeAveragedStd,
&Run::getTimeAveragedStd,
(arg("self"), arg("name")), (arg("self"), arg("name")),
"Returns the time averaged standard deviation") "Returns the time averaged standard deviation")
......
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