Skip to content
Snippets Groups Projects
Commit 62c5529e authored by Anthony Lim's avatar Anthony Lim
Browse files

refs #23166 Muon results table incudes log values with value of 0

parent c27545d9
No related branches found
No related tags found
No related merge requests found
......@@ -9,4 +9,27 @@ MuSR Changes
putting new features at the top of the section, followed by
improvements, followed by bug fixes.
Interface
---------
Improvements
############
Bugfixes
########
- Results table now includes all logs that are common to all of the loaded files.
Algorithms
----------
New
###
Improvements
############
Bugfixes
########
:ref:`Release 3.14.0 <v3.14.0>`
......@@ -530,21 +530,20 @@ void MuonAnalysisResultTableTab::populateLogsAndValues(
// Check if is a timeseries log
if (TimeSeriesProperty<double> *log =
dynamic_cast<TimeSeriesProperty<double> *>(prop)) {
QString logName = QString::fromStdString(prop->name());
std::string fdsadf = logName.toStdString();
auto mylog = log->clone();
if (foundRunning) {
mylog->filterWith(runningLog);
}
QString logFile(QFileInfo(prop->name().c_str()).fileName());
auto time_ave = mylog->timeAverageValue(); // get the time average
if (time_ave != 0) {
// Return average
wsLogValues[logFile] = time_ave;
}
// Return average
wsLogValues[logFile] = time_ave;
} else // Should be a non-timeseries one
{
QString logName = QString::fromStdString(prop->name());
std::string fdsadf = logName.toStdString();
// Check if we should display it
if (NON_TIMESERIES_LOGS.contains(logName)) {
......
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