nispace.utils.utils.print_arg_pairs

nispace.utils.utils.print_arg_pairs(**kwargs)[source]

Format keyword arguments as an aligned two-row key/value log table.

Plain string formatting (no numba/numpy). Used throughout api.py to build lgr.info(...) summary messages (e.g. reduction/transform settings actually used for a given call).

Parameters:

**kwargs – Arbitrary label=value pairs to display.

Returns:

Two-line string: uppercased, pipe-delimited labels on the first line, corresponding values aligned beneath on the second. Empty string if no kwargs are given.

Return type:

str