rapidtide.io.getniftiroot

rapidtide.io.getniftiroot(filename)[source]

Strip a nifti filename down to the root with no extensions

Parameters:

filename (str) – The file name to strip

Returns:

strippedname – The file name without any nifti extensions

Return type:

str