Skip to content

Commit

Permalink
ENH: Add warning when Ora projection is not valid
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Rit committed Dec 16, 2022
1 parent ab57295 commit 3698247
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rtkOraGeometryReader.cxx
Expand Up @@ -227,7 +227,11 @@ OraGeometryReader::GenerateData()
}

// Got it, add to geometry
m_Geometry->AddProjection(sp, dp, u, v);
if (!m_Geometry->AddProjection(sp, dp, u, v))
{
itkWarningMacro("Could not add " << projectionsFileName << " with sp=" << sp << ", dp=" << dp << ", u=" << u
<< " and v=" << v);
}

// Now add the collimation
// longitudinalposition_cm
Expand Down

0 comments on commit 3698247

Please sign in to comment.