Skip to content

Commit

Permalink
Refs #10646 PolarizationCorrection preserve history
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Nov 27, 2014
1 parent a5bd790 commit 1b7225c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Code/Mantid/Framework/Algorithms/src/PolarizationCorrection.cpp
Expand Up @@ -318,6 +318,12 @@ namespace Mantid
const auto nIpa = (AOperations + IpaPlusIapMinusIppMinusIaa) / D;
const auto nIap = (negateAOperations + IpaPlusIapMinusIppMinusIaa) / D;

//Preserve the history of the inside workspaces
nIpp->history().addHistory(Ipp->getHistory());
nIaa->history().addHistory(Iaa->getHistory());
nIpa->history().addHistory(Ipa->getHistory());
nIap->history().addHistory(Iap->getHistory());

WorkspaceGroup_sptr dataOut = boost::make_shared<WorkspaceGroup>();
dataOut->addWorkspace(nIpp);
dataOut->addWorkspace(nIaa);
Expand Down Expand Up @@ -346,6 +352,10 @@ namespace Mantid
const auto nIp = (Ip * (rho * pp + 1.0) + Ia * (pp - 1.0)) / D;
const auto nIa = (Ip * (rho * pp - 1.0) + Ia * (pp + 1.0)) / D;

//Preserve the history of the inside workspaces
nIp->history().addHistory(Ip->getHistory());
nIa->history().addHistory(Ia->getHistory());

WorkspaceGroup_sptr dataOut = boost::make_shared<WorkspaceGroup>();
dataOut->addWorkspace(nIp);
dataOut->addWorkspace(nIa);
Expand Down

0 comments on commit 1b7225c

Please sign in to comment.