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

Method verify_suffix

monai/data/image_reader.py:217–226  ·  view source on GitHub ↗

Verify whether the specified file or files format is supported by ITK reader. Args: filename: file name or a list of file names to read. if a list of files, verify all the suffixes.

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

Source from the content-addressed store, hash-verified

215 self.affine_lps_to_ras = affine_lps_to_ras
216
217 def verify_suffix(self, filename: Sequence[PathLike] | PathLike) -> bool:
218 """
219 Verify whether the specified file or files format is supported by ITK reader.
220
221 Args:
222 filename: file name or a list of file names to read.
223 if a list of files, verify all the suffixes.
224
225 """
226 return has_itk
227
228 def read(self, data: Sequence[PathLike] | PathLike, **kwargs):
229 """

Callers 1

__call__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected