From 74feef4718770d20273aa97f9176484149f178ae Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 12 Dec 2018 11:25:33 +0100 Subject: Improve config error handling --- src/ProjectionGeometry3D.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/ProjectionGeometry3D.cpp') diff --git a/src/ProjectionGeometry3D.cpp b/src/ProjectionGeometry3D.cpp index 92de247..8d2dc76 100644 --- a/src/ProjectionGeometry3D.cpp +++ b/src/ProjectionGeometry3D.cpp @@ -171,9 +171,7 @@ bool CProjectionGeometry3D::initialize(const Config& _cfg) if (!initializeAngles(_cfg)) return false; - - // Interface class, so don't return true - return false; + return true; } bool CProjectionGeometry3D::initializeAngles(const Config& _cfg) @@ -248,8 +246,7 @@ bool CProjectionGeometry3D::_initialize(int _iProjectionAngleCount, m_iDetectorTotCount = m_iProjectionAngleCount * m_iDetectorRowCount * m_iDetectorColCount; - // Interface class, so don't return true - return false; + return true; } } // namespace astra -- cgit v1.2.3