Skip to content

Commit 83054c6

Browse files
committed
Get the remaining tests working
Note the bump in imglib2-algorithm version, avoiding calls to net.imglib2.view.Views.flatIterable
1 parent 45b98ea commit 83054c6

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

scijava-ops-image/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269

270270
<imglib2.version>7.0.1</imglib2.version>
271271
<imglib2-roi.version>0.15.0</imglib2-roi.version>
272-
<imglib2-algorithm.version>0.15.1</imglib2-algorithm.version>
272+
<imglib2-algorithm.version>0.15.2</imglib2-algorithm.version>
273273
<imglib2-realtransform.version>4.0.3</imglib2-realtransform.version>
274274
</properties>
275275

scijava-ops-image/src/main/java/org/scijava/ops/image/coloc/pValue/DefaultPValue.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
package org.scijava.ops.image.coloc.pValue;
3131

32-
import java.util.List;
3332
import java.util.Random;
3433
import java.util.function.BiFunction;
3534
import java.util.function.Consumer;
@@ -39,12 +38,9 @@
3938
import org.scijava.concurrent.Parallelization;
4039
import org.scijava.function.Computers;
4140
import org.scijava.ops.spi.Nullable;
42-
import org.scijava.ops.spi.OpDependency;
4341

4442
import org.scijava.ops.image.coloc.ShuffledView;
45-
import net.imglib2.Cursor;
4643
import net.imglib2.Dimensions;
47-
import net.imglib2.RandomAccess;
4844
import net.imglib2.RandomAccessibleInterval;
4945
import net.imglib2.img.Img;
5046
import net.imglib2.type.numeric.RealType;
@@ -63,7 +59,7 @@
6359
*/
6460
public class DefaultPValue<T extends RealType<T>, U extends RealType<U>>
6561
implements
66-
Computers.Arity6<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, BiFunction<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, Double>, Integer, Dimensions, Long, PValueResult>
62+
Computers.Arity6<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, BiFunction<? super RandomAccessibleInterval<T>, ? super RandomAccessibleInterval<U>, Double>, Integer, Dimensions, Long, PValueResult>
6763
{
6864

6965
/**
@@ -81,7 +77,7 @@ public class DefaultPValue<T extends RealType<T>, U extends RealType<U>>
8177
public void compute( //
8278
final RandomAccessibleInterval<T> image1, //
8379
final RandomAccessibleInterval<U> image2, //
84-
final BiFunction<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, Double> op, //
80+
final BiFunction<? super RandomAccessibleInterval<T>, ? super RandomAccessibleInterval<U>, Double> op, //
8581
@Nullable Integer nrRandomizations, //
8682
@Nullable Dimensions psfSize, //
8783
@Nullable Long seed, //

scijava-ops-image/src/test/java/org/scijava/ops/image/OpRegressionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class OpRegressionTest {
4242

4343
@Test
4444
public void testOpDiscoveryRegression() {
45-
long expected = 1941;
45+
long expected = 1940;
4646
long actual = ops.infos().size();
4747
assertEquals(expected, actual);
4848
}

0 commit comments

Comments
 (0)