Skip to content

Commit

Permalink
Merge pull request #1539 from ANTsX/antsAIStart
Browse files Browse the repository at this point in the history
BUG: antsAI exception with < 10 start points
  • Loading branch information
cookpa authored May 16, 2023
2 parents d0ddc46 + 254eab3 commit 28ce5ff
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Examples/antsCommandIterationUpdate.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,14 @@ class antsCommandIterationUpdate : public itk::Command

if (m_IterationUpdateInterval == 0)
{
m_IterationUpdateInterval = m_TotalNumberOfIterations / 10;
if (m_TotalNumberOfIterations > 10)
{
m_IterationUpdateInterval = m_TotalNumberOfIterations / 10;
}
else
{
m_IterationUpdateInterval = 1;
}
}

std::cout << std::endl << "Iteration/Total,MetricValue";
Expand Down

0 comments on commit 28ce5ff

Please sign in to comment.