Skip to content

Commit 83cd243

Browse files
committed
disable threading for the zarrs codec
1 parent 8c162c5 commit 83cd243

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

biahub/concatenate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,11 @@ def concatenate(
338338
import zarr
339339
import zarrs # noqa: F401
340340

341-
zarr.config.set({"codec_pipeline.path": "zarrs.ZarrsCodecPipeline"})
342-
except ImportError:
343-
warnings.warning(
344-
"zarrs is not installed. Writing sharded array will be very slow."
341+
zarr.config.set(
342+
{"codec_pipeline.path": "zarrs.ZarrsCodecPipeline", "threading.max_workers": 1}
345343
)
344+
except ImportError:
345+
warnings.warn("zarrs is not installed. Writing sharded array will be very slow.")
346346

347347
# Logic for creation of zarr and metadata
348348
output_metadata = {

0 commit comments

Comments
 (0)