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

Function _get_call_line

mne/utils/_logging.py:439–446  ·  view source on GitHub ↗

Get the call line from within a function.

()

Source from the content-addressed store, hash-verified

437
438
439def _get_call_line():
440 """Get the call line from within a function."""
441 frame = inspect.currentframe().f_back.f_back
442 if _verbose_dec_re.search(frame.f_code.co_filename):
443 frame = frame.f_back
444 context = inspect.getframeinfo(frame).code_context
445 context = "unknown" if context is None else context[0].strip()
446 return context
447
448
449def filter_out_warnings(warn_record, category=None, match=None):

Callers 3

fooFunction · 0.90
barFunction · 0.90
morph_source_spacesFunction · 0.85

Calls

no outgoing calls

Tested by 2

fooFunction · 0.72
barFunction · 0.72