Skip to content
Snippets Groups Projects
Commit 9a29f2d7 authored by Anton Piccardo-Selg's avatar Anton Piccardo-Selg
Browse files

Merge pull request #13937 from mantidproject/feature/13936_Error_Parsing_duration_warning

Changed hard coded default value for SaveNexusProcessed duration
parents 2c8a249c 96193102
No related branches found
No related tags found
Loading
...@@ -370,7 +370,7 @@ WorkspaceHistory::parseAlgorithmHistory(const std::string &rawData) { ...@@ -370,7 +370,7 @@ WorkspaceHistory::parseAlgorithmHistory(const std::string &rawData) {
// Get the duration // Get the duration
getWordsInString(info[EXEC_DUR], dummy, dummy, temp, dummy); getWordsInString(info[EXEC_DUR], dummy, dummy, temp, dummy);
double dur = boost::lexical_cast<double>(temp); double dur = boost::lexical_cast<double>(temp);
if (dur < 0.0) { if (dur < -1.0) {
g_log.warning() << "Error parsing duration in algorithm history entry." g_log.warning() << "Error parsing duration in algorithm history entry."
<< "\n"; << "\n";
dur = -1.0; dur = -1.0;
......
...@@ -147,7 +147,7 @@ void SaveNexus::runSaveNexusProcessed() { ...@@ -147,7 +147,7 @@ void SaveNexus::runSaveNexusProcessed() {
// If we're tracking history, add the entry before we save it to file // If we're tracking history, add the entry before we save it to file
if (trackingHistory()) { if (trackingHistory()) {
m_history->fillAlgorithmHistory( m_history->fillAlgorithmHistory(
this, Mantid::Kernel::DateAndTime::getCurrentTime(), -1, this, Mantid::Kernel::DateAndTime::getCurrentTime(), 0,
Algorithm::g_execCount); Algorithm::g_execCount);
if (!isChild()) { if (!isChild()) {
m_inputWorkspace->history().addHistory(m_history); m_inputWorkspace->history().addHistory(m_history);
......
...@@ -291,7 +291,7 @@ void SaveNexusProcessed::doExec(Workspace_sptr inputWorkspace, ...@@ -291,7 +291,7 @@ void SaveNexusProcessed::doExec(Workspace_sptr inputWorkspace,
// Switch to the Cpp API for the algorithm history // Switch to the Cpp API for the algorithm history
if (trackingHistory()) { if (trackingHistory()) {
m_history->fillAlgorithmHistory( m_history->fillAlgorithmHistory(
this, Mantid::Kernel::DateAndTime::getCurrentTime(), -1, this, Mantid::Kernel::DateAndTime::getCurrentTime(), 0,
Algorithm::g_execCount); Algorithm::g_execCount);
if (!isChild()) { if (!isChild()) {
inputWorkspace->history().addHistory(m_history); inputWorkspace->history().addHistory(m_history);
......
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