MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / verify_suffix

Method verify_suffix

monai/data/wsi_reader.py:499–509  ·  view source on GitHub ↗

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.

(self, filename: Sequence[PathLike] | PathLike)

Source from the content-addressed store, hash-verified

497 return is_within_tolerance, closest_level_is_bigger
498
499 def verify_suffix(self, filename: Sequence[PathLike] | PathLike) -> bool:
500 """
501 Verify whether the specified file or files format is supported by WSI reader.
502
503 The list of supported suffixes are read from `self.supported_suffixes`.
504
505 Args:
506 filename: filename or a list of filenames to read.
507
508 """
509 return is_supported_format(filename, self.supported_suffixes)
510
511
512class WSIReader(BaseWSIReader):

Callers

nothing calls this directly

Calls 1

is_supported_formatFunction · 0.90

Tested by

no test coverage detected