Skip to content

Commit 2ec1a83

Browse files
Fix file mode in tifffile
1 parent d9ae457 commit 2ec1a83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flamingo_tools/file_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def read_tif(file_path: str) -> Union[np.ndarray, np.memmap]:
5555
The memory-mapped data. If not possible to memmap, the data in memory.
5656
"""
5757
try:
58-
x = tifffile.memmap(file_path, "r")
58+
x = tifffile.memmap(file_path)
5959
except ValueError:
6060
warnings.warn(f"Cannot memmap the tif file at {file_path}. Fall back to loading it into memory.")
6161
x = imageio.imread(file_path)

0 commit comments

Comments
 (0)