is_dicom

is_dicom(path)[source]

Check if the input is a DICOM file.

Parameters

path (pathlib.Path) – Path to the file to check.

Returns

True if the file is a DICOM file.

Return type

bool