Skip to content

Commit

Permalink
refs #6449 This should fix it
Browse files Browse the repository at this point in the history
The clear consequence of choosing bad name for the thing and forgetting about it.
  • Loading branch information
abuts committed Apr 23, 2013
1 parent 6df695b commit 60c71fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Code/Mantid/Framework/MDAlgorithms/src/ConvertToMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,9 @@ void ConvertToMD::copyMetaData(API::IMDEventWorkspace_sptr mdEventWS, MDEvents::
// Copy ExperimentInfo (instrument, run, sample) to the output WS
API::ExperimentInfo_sptr ei(m_InWS2D->cloneExperimentInfo());

ei->mutableRun().addProperty("W_MATRIX",targWSDescr.m_Wtransf.getVector(),true);
ei->mutableRun().addProperty("RUBW_MATRIX",targWSDescr.m_Wtransf.getVector(),true);
ei->mutableRun().addProperty("W_MATRIX",targWSDescr.getPropertyValueAsType<std::vector<double> >("W_MATRIX"),true);

uint16_t runIndex = mdEventWS->addExperimentInfo(ei);

const MantidVec & binBoundaries = m_InWS2D->readX(0);
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/MDEvents/src/MDWSTransform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Kernel::DblMatrix MDWSTransform::buildQTrahsf(MDEvents::MDWSDescription &TargWSD
default: throw(std::invalid_argument("unrecognized conversion mode"));

}

TargWSDescription.addProperty("W_MATRIX",Wmat.getVector(),true);
return Transf*Scale*Wmat;
}

Expand Down

0 comments on commit 60c71fa

Please sign in to comment.