We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9ae457 commit 2ec1a83Copy full SHA for 2ec1a83
flamingo_tools/file_utils.py
@@ -55,7 +55,7 @@ def read_tif(file_path: str) -> Union[np.ndarray, np.memmap]:
55
The memory-mapped data. If not possible to memmap, the data in memory.
56
"""
57
try:
58
- x = tifffile.memmap(file_path, "r")
+ x = tifffile.memmap(file_path)
59
except ValueError:
60
warnings.warn(f"Cannot memmap the tif file at {file_path}. Fall back to loading it into memory.")
61
x = imageio.imread(file_path)
0 commit comments