is_nifti_truncated

bidsaid.io.is_nifti_truncated(nifti_file)[source]

Checks expected byte size and actual byte size of uncompressed NIfTI images.

Parameters

nifti_filestr`or :obj:`Path

Path to the NIfTI file.

Returns

bool

True if the NIfTI image is truncated (expected byte size < actual byte size) and False otherwise.