finesse.tracing.ctracer.TraceTree.from_cavity

TraceTree.from_cavity(type cls, cavity)

Construct a TraceTree from a cavity instance.

The resulting tree decays to a linked list as it just includes the internal path of the cavity.

Parameters

cavity : Cavity

The cavity object.

Returns

tree : TraceTree

The tree representing the internal cavity path.