Skip to content
Snippets Groups Projects
Commit d586b707 authored by Brandon Hewer's avatar Brandon Hewer
Browse files

Use numberOfDetectors - 1 when groupSize is 0.

Refs #22988
parent 390052c2
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ std::string createDetectorGroupingString(std::size_t numberOfDetectors,
std::size_t numberOfGroups) {
const auto groupSize = numberOfDetectors / numberOfGroups;
if (groupSize == 0)
return createRangeString(0, numberOfDetectors);
return createRangeString(0, numberOfDetectors - 1);
return createDetectorGroupingString(groupSize, numberOfGroups,
numberOfDetectors);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment