gen_meta_data_filepath_for_nifti#

petpal.utils.image_io.gen_meta_data_filepath_for_nifti(nifty_path: str)#

Generates the corresponding metadata file path for a given nifti file path.

This function takes a nifti file path (with .nii or .nii.gz extension) and replaces the extension with .json to derive the expected metadata file path.

Parameters:

nifty_path (str) – Path to the nifti file (with .nii or .nii.gz extension).

Returns:

str – The generated metadata file path with a .json extension.