Skip to content

Commit

Permalink
Correct the LoadISISNexus2 to load instrument defined in nxs
Browse files Browse the repository at this point in the history
  • Loading branch information
gesnerpassos committed Oct 4, 2013
1 parent 5ffea0b commit 83c6265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/DataHandling/src/LoadISISNexus2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ namespace Mantid
} catch(std::exception & ) { // No valid instrument and sample section found
parameterString="not found";
}
local_workspace->updateSpectraUsing(SpectrumDetectorMapping(spec(),udet(),udet.dim0()));
if( parameterString == "not found") {
local_workspace->updateSpectraUsing(SpectrumDetectorMapping(spec(),udet(),udet.dim0()));
runLoadInstrument(local_workspace);
} else { // Use parameters got from instrument section of Nexus file
local_workspace->readParameterMap(parameterString);
Expand Down

0 comments on commit 83c6265

Please sign in to comment.