Skip to content

Commit

Permalink
Fix the issue related to square root of sigs. Refs #6749.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Mar 22, 2013
1 parent 0a0b48c commit 702c9f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,11 @@ namespace DataHandling
else
{
tempdb = atof(terms[1].c_str());
parammap["Sig2"] = tempdb;
parammap["Sig2"] = sqrt(tempdb);
tempdb = atof(terms[2].c_str());
parammap["Sig1"] = tempdb;
parammap["Sig1"] = sqrt(tempdb);
tempdb = atof(terms[3].c_str());
parammap["Sig0"] = tempdb;
parammap["Sig0"] = sqrt(tempdb);
}
} // "SIGMA"
else if (boost::starts_with(line, "GAMMA"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class LoadFullprofResolutionTest : public CxxTest::TestSuite
parseTableWorkspace(outws, parammap);

TS_ASSERT_DELTA(parammap["Zero"], -1.00, 0.0001);
TS_ASSERT_DELTA(parammap["Sig2"], 514.546, 0.0001);
TS_ASSERT_DELTA(parammap["Sig2"], sqrt(514.546), 0.0001);
TS_ASSERT_DELTA(parammap["Beta0t"], 85.918922, 0.00001);

// 4. Clean
Expand Down Expand Up @@ -98,7 +98,7 @@ class LoadFullprofResolutionTest : public CxxTest::TestSuite
parseTableWorkspace(outws, parammap);

TS_ASSERT_DELTA(parammap["Dtt1"], 22586.10156, 0.0001);
TS_ASSERT_DELTA(parammap["Sig1"], 10.00, 0.0001);
TS_ASSERT_DELTA(parammap["Sig1"], sqrt(10.00), 0.0001);
TS_ASSERT_DELTA(parammap["Alph0t"], 86.059, 0.00001);

// 4. Clean
Expand Down

0 comments on commit 702c9f8

Please sign in to comment.