Skip to content

Commit

Permalink
load currnet chronus run. re #9417
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders-Markvardsen committed May 12, 2014
1 parent 47f57ae commit 9c54fdb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Code/Mantid/MantidQt/CustomInterfaces/src/MuonAnalysis.cpp
Expand Up @@ -884,10 +884,13 @@ void MuonAnalysis::runLoadCurrent()
return;
}

if ( instname == "EMU" || instname == "HIFI" || instname == "MUSR")
if ( instname == "EMU" || instname == "HIFI" || instname == "MUSR" || instname == "CHRONUS")
{
QString instDirectory = instname;
if ( instname == "CHRONUS" )
instDirectory = "NDW1030";
std::string autosavePointsTo = "";
std::string autosaveFile = "\\\\" + instname.toStdString() + "\\data\\autosave.run";
std::string autosaveFile = "\\\\" + instDirectory.toStdString() + "\\data\\autosave.run";
Poco::File pathAutosave( autosaveFile );

try // check if exists
Expand All @@ -907,9 +910,9 @@ void MuonAnalysis::runLoadCurrent()

QString psudoDAE;
if ( autosavePointsTo.empty() )
psudoDAE = "\\\\" + instname + "\\data\\" + instname + "auto_A.tmp";
psudoDAE = "\\\\" + instDirectory + "\\data\\" + instDirectory + "auto_A.tmp";
else
psudoDAE = "\\\\" + instname + "\\data\\" + autosavePointsTo.c_str();
psudoDAE = "\\\\" + instDirectory + "\\data\\" + autosavePointsTo.c_str();

Poco::File l_path( psudoDAE.toStdString() );
try
Expand Down

0 comments on commit 9c54fdb

Please sign in to comment.