pyvista.get_ext

目次

pyvista.get_ext#

get_ext(filename: str | Path) str[ソース]#

Extract the extension of the filename.

For files with the .gz suffix, the previous extension is returned as well. This is needed e.g. for the compressed NIFTI format (.nii.gz).

パラメータ:
filenamestr, Path

The filename from which to extract the extension.

戻り値:
str

The extracted extension. For files with the .gz suffix, the previous extension is returned as well.