Esempio n. 1
0
 def verify_suffix(self, filename: Union[Sequence[str], str]) -> bool:
     """
     Verify whether the specified file or files format is supported by Nrrd reader.
     Args:
         filename: file name or a list of file names to read.
             if a list of files, verify all the suffixes.
     """
     suffixes: Sequence[str] = ["nrrd"]
     return is_supported_format(filename, suffixes)
Esempio n. 2
0
    def verify_suffix(self, filename: Union[Sequence[str], str]) -> bool:
        """
        Verify whether the specified file or files format is supported by WSI reader.

        Args:
            filename: file name or a list of file names to read.
                if a list of files, verify all the suffixes.
        """
        return is_supported_format(filename, ["tif", "tiff"])
Esempio n. 3
0
    def verify_suffix(self, filename: Union[Sequence[PathLike],
                                            PathLike]) -> bool:
        """
        Verify whether the specified file or files format is supported by WSI reader.

        The list of supported suffixes are read from `self.supported_suffixes`.

        Args:
            filename: filename or a list of filenames to read.

        """
        return is_supported_format(filename, self.supported_suffixes)