Unverified Commit 83953ce3 authored by Zhang, Chen's avatar Zhang, Chen Committed by GitHub
Browse files

Merge pull request #289 from ornlneutronimaging/switch_tiff_reader_to_tifffile

switch to use the reader from tifffile directly
parents 11c4726b 5979e284
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -254,7 +254,10 @@ def _load_images(filelist: List[str], desc: str, max_workers: int, tqdm_class) -
    # figure out the file type and select corresponding reader from dxchange
    file_ext = Path(filelist[0]).suffix.lower()
    if file_ext in (".tif", ".tiff"):
        reader = dxchange.read_tiff
        # reader = dxchange.read_tiff
        # NOTE: switch to tifffile until we figure out what is causing dxchange
        #       to slow down the loading speed.
        reader = tifffile.imread
    elif file_ext == ".fits":
        reader = dxchange.read_fits
    else: