Skip to content

Commit

Permalink
ImgWriter2: adapt to move of SCIFIO DataTools to scijava-common
Browse files Browse the repository at this point in the history
  • Loading branch information
gab1one committed Jul 9, 2018
1 parent ea64947 commit 0dbfcfe
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@
import org.knime.core.node.NodeLogger;
import org.knime.knip.io.ScifioGateway;
import org.scijava.Context;
import org.scijava.util.ArrayUtils;

import io.scif.DependencyException;
import io.scif.Format;
import io.scif.FormatException;
import io.scif.MissingLibraryException;
import io.scif.SCIFIO;
import io.scif.Writer;
import io.scif.common.DataTools;
import io.scif.config.SCIFIOConfig;
import io.scif.img.ImgIOException;
import io.scif.img.ImgSaver;
Expand Down Expand Up @@ -328,8 +328,7 @@ public <T extends RealType<T>> void writeImage(final Img<T> img,
compressionType);

final int pixeltype = SCIFIO.imgUtil().makeType(imp.firstElement());
if (!DataTools.containsValue(
tempWriter.getPixelTypes(compressionType), pixeltype)) {
if (!ArrayUtils.contains(tempWriter.getPixelTypes(compressionType), pixeltype)) {
throw new ImgIOException(compressionType);
}

Expand Down

0 comments on commit 0dbfcfe

Please sign in to comment.