getStackFrame

lsst.pex.config.callStack.getStackFrame(relative=0)

Get the StackFrame for the user’s caller.

Parameters:
relative : int, optional

Number of frames (0 or more) above the caller to retrieve.

Returns:
frame : StackFrame

Stack frame for the caller.