From f42e991716f68953cbdad0902aac3055888f8671 Mon Sep 17 00:00:00 2001 From: John Bogovic Date: Fri, 13 Dec 2024 13:16:26 -0500 Subject: [PATCH] feat: programmically set number of export threads see #83 --- .../org/janelia/saalfeldlab/n5/ij/N5ScalePyramidExporter.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/janelia/saalfeldlab/n5/ij/N5ScalePyramidExporter.java b/src/main/java/org/janelia/saalfeldlab/n5/ij/N5ScalePyramidExporter.java index c789d91..0efe5b1 100644 --- a/src/main/java/org/janelia/saalfeldlab/n5/ij/N5ScalePyramidExporter.java +++ b/src/main/java/org/janelia/saalfeldlab/n5/ij/N5ScalePyramidExporter.java @@ -397,6 +397,10 @@ public void setOptions( this.compressionArg = compression; } + public void setNumThreads(final int nThreads) { + this.nThreads = nThreads; + } + /** * Set the custom metadata mapper to use programmatically. *