get_half_life_from_radionuclide ===================================================== .. py:function:: petpal.utils.image_io.get_half_life_from_radionuclide(meta_data_file_path: str) -> float Extracts the radionuclide half-life in seconds from a nifti metadata file. This function grabs the tracer radionuclide from the metadata and assumes a fixed half-life based on this. Code borrowed from: https://github.com/bilgelm/dynamicpet/blob/main/src/dynamicpet/petbids/petbidsjson.py. :param meta_data_file_path: Path to the nifti metadata file. :type meta_data_file_path: str :returns: *float* -- The radionuclide half-life extracted from the tracer radionuclide. :raises FileNotFoundError: If the metadata file does not exist at the provided path. :raises KeyError: If the 'TracerRadionuclide' key is not found in the metadata file.