finesse.tracing.tree.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
pathlist

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

Returns
treeTraceTree

The tree representing the node path.