aeppl.scan.MeasurableScan.add_tag_trace#

static MeasurableScan.add_tag_trace(user_line=None)#

Add tag.trace to a node or variable.

The argument is returned after being affected (inplace).

Parameters
  • thing (TypeVar(T, bound= Union[Apply, Variable])) – The object where we add .tag.trace.

  • user_line (Optional[int]) – The max number of user line to keep.

Notes

We also use config.traceback__limit for the maximum number of stack level we look.

Return type

TypeVar(T, bound= Union[Apply, Variable])