Skip to content

Commit

Permalink
remove logic to include z distance up to a value and require all valu…
Browse files Browse the repository at this point in the history
…es to be explicitly specified
  • Loading branch information
trautmane committed Sep 5, 2024
1 parent 943f315 commit f6cb826
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

import org.janelia.alignment.json.JsonUtils;
import org.janelia.alignment.spec.Bounds;
Expand Down Expand Up @@ -157,10 +156,6 @@ public void normalizeDistanceList(final List<Integer> valueList)
if (valueList != null) {
if (valueList.stream().anyMatch(z -> z < 0)) {
throw new IllegalArgumentException("zDistance must not contain negative values");
} else if (valueList.size() == 1) {
// include whole range up to given value
final int endExclusive = valueList.get(0) + 1;
normalizedList.addAll(IntStream.range(1, endExclusive).boxed().collect(Collectors.toList()));
} else {
normalizedList.addAll(valueList);
}
Expand Down

0 comments on commit f6cb826

Please sign in to comment.