nimare.utils.try_prepend

try_prepend(value, prefix)[source]

Try to prepend a value to a string with a separator (‘/’).

If not a string, will just return the original value.