nispace.utils.utils.lower

nispace.utils.utils.lower(str_list)[source]

Lowercase a string, or each string element of a list (non-strings passed through).

Plain Python (no numpy/numba). Not currently called anywhere in NiSpace (dead code) — everywhere lowercasing is actually needed, api.py uses Python’s builtin str.lower() directly instead.

Parameters:

str_list (str or list) – Input string, or list of strings/other objects.

Returns:

Lowercased string, or list with string elements lowercased.

Return type:

str or list