Skip to content

Commit 2828449

Browse files
committed
Use non-multithreaded loop builder
The loop builder introduces a non-reproducible randomness to the SACA algorithm. Unfortnately, we need stop using the multithreaded version of the loop builder to resolve this.
1 parent 5fffc46 commit 2828449

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scijava-ops-image/src/main/java/org/scijava/ops/image/coloc/saca/AdaptiveSmoothedKendallTau.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050

5151
/**
5252
* Helper class for Spatially Adaptive Colocalization Analysis (SACA) framework.
53-
* This class is used by the "coloc.saca.heatmapZScore" Op to produce the Z-score
54-
* heatmap of pixel colocalization strength.
53+
* This class is used by the "coloc.saca.heatmapZScore" Op to produce the
54+
* Z-score heatmap of pixel colocalization strength.
5555
*
5656
* @author Shulei Wang
5757
* @author Ellen TA Dobson
@@ -131,8 +131,8 @@ private static <I extends RealType<I>> void singleiteration(
131131

132132
IntervalView<Localizable> positions = Views.interval(Localizables
133133
.randomAccessible(result.numDimensions()), result);
134-
LoopBuilder.setImages(positions, result, workingImage).multiThreaded()
135-
.forEachChunk(chunk -> {
134+
LoopBuilder.setImages(positions, result, workingImage).forEachChunk(
135+
chunk -> {
136136
final long[] rowrange = new long[4];
137137
final long[] colrange = new long[4];
138138
final int totnum = (2 * Bsize + 1) * (2 * Bsize + 1);

0 commit comments

Comments
 (0)