Skip to content

Commit

Permalink
Refs #12585 clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
VickieLynch committed Jul 7, 2016
1 parent b2d4ff4 commit bb76f0e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Framework/MDAlgorithms/src/IntegratePeaksMDHKL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ IntegratePeaksMDHKL::IntegratePeaksMDHKL() {}
* Initialize the algorithm's properties.
*/
void IntegratePeaksMDHKL::init() {
declareProperty(make_unique<WorkspaceProperty<IMDWorkspace>>(
"InputWorkspace", "", Direction::Input),
"An input Sample MDHistoWorkspace or MDEventWorkspace in HKL.");
declareProperty(
make_unique<WorkspaceProperty<IMDWorkspace>>("InputWorkspace", "",
Direction::Input),
"An input Sample MDHistoWorkspace or MDEventWorkspace in HKL.");
declareProperty("DeltaHKL", 0.5,
"Distance from integer HKL to integrate peak.");
declareProperty("GridPoints", 201,
Expand Down Expand Up @@ -81,11 +82,12 @@ void IntegratePeaksMDHKL::init() {
void IntegratePeaksMDHKL::exec() {
IMDWorkspace_sptr m_inputWS = getProperty("InputWorkspace");
Mantid::DataObjects::MDFramesToSpecialCoordinateSystem converter;
boost::optional<Mantid::Kernel::SpecialCoordinateSystem> coordinateSystem = converter(m_inputWS.get());
if( *coordinateSystem != Mantid::Kernel::SpecialCoordinateSystem::HKL) {
boost::optional<Mantid::Kernel::SpecialCoordinateSystem> coordinateSystem =
converter(m_inputWS.get());
if (*coordinateSystem != Mantid::Kernel::SpecialCoordinateSystem::HKL) {
std::stringstream errmsg;
errmsg << "Input MDWorkspace's coordinate system is not HKL but "
<< coordinateSystem << ".";
<< coordinateSystem << ".";
throw std::invalid_argument(errmsg.str());
}

Expand Down

0 comments on commit bb76f0e

Please sign in to comment.