diff --git a/Framework/API/src/LogManager.cpp b/Framework/API/src/LogManager.cpp index 45795b483e85eb719eaab75d9962deaaddac3c97..040cb771e5ff4c961ce98e67b48b7578ec44653f 100644 --- a/Framework/API/src/LogManager.cpp +++ b/Framework/API/src/LogManager.cpp @@ -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; } /**