MCPcopy
hub / github.com/mne-tools/mne-python / pformat

Function pformat

mne/utils/misc.py:83–93  ·  view source on GitHub ↗

Format a template string partially. Examples -------- >>> pformat("{a}_{b}", a='x') 'x_{b}'

(temp, **fmt)

Source from the content-addressed store, hash-verified

81
82
83def pformat(temp, **fmt):
84 """Format a template string partially.
85
86 Examples
87 --------
88 >>> pformat("{a}_{b}", a='x')
89 'x_{b}'
90 """
91 formatter = Formatter()
92 mapping = _FormatDict(fmt)
93 return formatter.vformat(temp, (), mapping)
94
95
96def _enqueue_output(out, queue):

Callers 3

coreg.pyFile · 0.85
_find_mri_pathsFunction · 0.85
_find_fiducials_filesFunction · 0.85

Calls 1

_FormatDictClass · 0.85

Tested by

no test coverage detected