Skip to content

Commit

Permalink
Make LoadNexus use LoadTOFRawNexus instead of LoadSNSNexus re #7072
Browse files Browse the repository at this point in the history
Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
  • Loading branch information
KarlPalmen authored and keithnbrown committed Oct 25, 2013
1 parent ea4744a commit 85f8e8a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion Code/Mantid/Framework/DataHandling/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ set ( INC_FILES
)

set ( TEST_FILES
#LoadSNSNexusTest.h # TODO has no active tests in it
AppendGeometryToSNSNexusTest.h
ApplyGroupingFromMuonNexusTest.h
CompressEventsTest.h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ namespace Mantid
/// run LoadNexusProcessed
void runLoadNexusProcessed();

/// run LoadSNSNexus
void runLoadSNSNexus();
/// run LoadTOFRawNexus
void runLoadTOFRawNexus();
};
} // namespace DataHandling
} // namespace Mantid
Expand Down
10 changes: 5 additions & 5 deletions Code/Mantid/Framework/DataHandling/src/LoadNexus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ namespace Mantid
g_log.error("File " + m_filename + " is a currently unsupported type of NeXus file");
throw Exception::FileError("Unable to read File:" , m_filename);
}
runLoadSNSNexus();
runLoadTOFRawNexus();
}
return;
}
Expand Down Expand Up @@ -337,9 +337,9 @@ namespace Mantid
}
}

void LoadNexus::runLoadSNSNexus()
void LoadNexus::runLoadTOFRawNexus()
{
IAlgorithm_sptr loadNexusPro = createChildAlgorithm("LoadSNSNexus",0.,1.);
IAlgorithm_sptr loadNexusPro = createChildAlgorithm("LoadTOFRawNexus",0.,1.);
// Pass through the same input filename
loadNexusPro->setPropertyValue("Filename",m_filename);
// Set the workspace property
Expand All @@ -364,9 +364,9 @@ namespace Mantid
}
catch (std::runtime_error&)
{
g_log.error("Unable to successfully run LoadSNSNexus Child Algorithm");
g_log.error("Unable to successfully run LoadTOFRawNexus Child Algorithm");
}
if ( ! loadNexusPro->isExecuted() ) g_log.error("Unable to successfully run LoadSNSNexus Child Algorithm");
if ( ! loadNexusPro->isExecuted() ) g_log.error("Unable to successfully run LoadTOFRawNexus Child Algorithm");
// Get pointer to the workspace created
Workspace_sptr localWorkspace = loadNexusPro->getProperty(outputWorkspace);
setProperty(outputWorkspace,localWorkspace);
Expand Down

0 comments on commit 85f8e8a

Please sign in to comment.