Skip to content

Commit

Permalink
Refs #9763 Y0_error instead of error0, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
VickieLynch committed Jun 26, 2014
1 parent 6ff6c7c commit d9532c6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Code/Mantid/Framework/DataHandling/src/SaveAscii.cpp
Expand Up @@ -117,12 +117,14 @@ namespace Mantid
}
std::string comment = getPropertyValue("CommentIndicator");
std::string errstr = "E";
std::string errstr2 = "";
std::string comstr = " , ";
bool ice = getProperty("ICEFormat");
if (ice)
{
// overwrite properties so file can be read by ICE
errstr = "error";
errstr = "Y";
errstr2 = "_error";
comstr = ", ";
writeHeader = true;
write_dx = false;
Expand Down Expand Up @@ -168,13 +170,13 @@ namespace Mantid
if (idx.empty())
for(int spec=0;spec<nSpectra;spec++)
{
file << comstr << "Y" << spec << comstr << errstr << spec;
file << comstr << "Y" << spec << comstr << errstr << spec << errstr2;
if (write_dx) file << " , DX" << spec;
}
else
for(std::set<int>::const_iterator spec=idx.begin();spec!=idx.end();++spec)
{
file << comstr << "Y" << *spec << comstr << errstr << *spec;
file << comstr << "Y" << *spec << comstr << errstr << *spec << errstr2;
if (write_dx) file << " , DX" << *spec;
}
file << std::endl;
Expand Down

0 comments on commit d9532c6

Please sign in to comment.