Commit 02c673e4 authored by Savici, Andrei T's avatar Savici, Andrei T Committed by Peterson, Peter
Browse files

Update Framework/MDAlgorithms/src/MDWSDescription.cpp


Co-authored-by: Peterson, Peter's avatarPete Peterson <petersonpf@ornl.gov>
parent 67c4d8d2
...@@ -122,7 +122,7 @@ void MDWSDescription::buildFromMatrixWS(const API::MatrixWorkspace_sptr &pWS, co ...@@ -122,7 +122,7 @@ void MDWSDescription::buildFromMatrixWS(const API::MatrixWorkspace_sptr &pWS, co
void MDWSDescription::setWS(API::MatrixWorkspace_sptr otherMatrixWS) { m_InWS = std::move(otherMatrixWS); } void MDWSDescription::setWS(API::MatrixWorkspace_sptr otherMatrixWS) { m_InWS = std::move(otherMatrixWS); }
/// Method checks if input workspace has defined goniometer /// Method checks if input workspace has defined goniometer
bool MDWSDescription::hasGoniometer() const { bool MDWSDescription::hasGoniometer() const {
if ((m_InWS != nullptr) && (m_InWS->run().getNumGoniometers())) if ((m_InWS != nullptr) && (m_InWS->run().getNumGoniometers() > 0))
return m_InWS->run().getGoniometer().isDefined(); return m_InWS->run().getGoniometer().isDefined();
else else
return false; return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment