Skip to content
Snippets Groups Projects
Commit 35620a31 authored by Michael Whitty's avatar Michael Whitty
Browse files

refs #1673, refs #1669 - allow saving of workspaces with non-spectra axis,...

refs #1673, refs #1669 - allow saving of workspaces with non-spectra axis, would previously cause algorithm to fail
parent 5091f7d3
No related branches found
No related tags found
No related merge requests found
...@@ -216,7 +216,11 @@ namespace NeXus ...@@ -216,7 +216,11 @@ namespace NeXus
} }
nexusFile->writeNexusProcessedData(m_inputWorkspace,uniformSpectra,spec); nexusFile->writeNexusProcessedData(m_inputWorkspace,uniformSpectra,spec);
nexusFile->writeNexusProcessedProcess(m_inputWorkspace); nexusFile->writeNexusProcessedProcess(m_inputWorkspace);
nexusFile->writeNexusProcessedSpectraMap(m_inputWorkspace, spec); // MW 27/10/10 - don't try and save the spectra-detector map if there isn't one
if ( m_inputWorkspace->getAxis(1)->isSpectra() )
{
nexusFile->writeNexusProcessedSpectraMap(m_inputWorkspace, spec);
}
nexusFile->closeNexusFile(); nexusFile->closeNexusFile();
progress(1.0); progress(1.0);
......
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