Skip to content

Commit 3698247

Browse files
author
Simon Rit
committed
ENH: Add warning when Ora projection is not valid
1 parent ab57295 commit 3698247

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/rtkOraGeometryReader.cxx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,11 @@ OraGeometryReader::GenerateData()
227227
}
228228

229229
// Got it, add to geometry
230-
m_Geometry->AddProjection(sp, dp, u, v);
230+
if (!m_Geometry->AddProjection(sp, dp, u, v))
231+
{
232+
itkWarningMacro("Could not add " << projectionsFileName << " with sp=" << sp << ", dp=" << dp << ", u=" << u
233+
<< " and v=" << v);
234+
}
231235

232236
// Now add the collimation
233237
// longitudinalposition_cm

0 commit comments

Comments
 (0)