finesse.tracing.ctracer.TraceTree.from_path

static TraceTree.from_path(list path)

Construct a TraceTree from a list of optical nodes.

The resulting tree decays to a linked list as the path is 1D - no branches will occur.

Parameters

path : list

A list of optical nodes representing the node path. This can be obtained from a OpticalPath instance by invoking OpticalPath.nodes_only.

Returns

tree : TraceTree

The tree representing the node path.