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

Re #27704. Simplify code

parent cec3db70
No related branches found
No related tags found
No related merge requests found
......@@ -343,14 +343,7 @@ 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 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);
}
return tsp->getStatistics().time_standard_deviation;
return getTimeSeriesProperty<double>(name)->getStatistics().time_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