From a0b0c30e2d34080da6a531f345cc5ea41ce66333 Mon Sep 17 00:00:00 2001 From: Sidharth Hulyalkar Date: Fri, 8 Sep 2023 15:22:13 -0500 Subject: [PATCH] fix imread pages key error --- suite2p/io/tiff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suite2p/io/tiff.py b/suite2p/io/tiff.py index 49f22be1..9ae3f795 100644 --- a/suite2p/io/tiff.py +++ b/suite2p/io/tiff.py @@ -166,7 +166,7 @@ def tiff_to_binary(ops): nfr = min(Ltif - ix, batch_size) # tiff reading if use_sktiff: - im = imread(file, pages=range(ix, ix + nfr)) + im = imread(file, key=range(ix, ix + nfr)) elif Ltif == 1: im = tif.data() else: