finesse.model.Model.get_active_signal_nodes

Model.get_active_signal_nodes()[source]

Returns the electrical and mechanical nodes that are active in a model, i.e. ones that need to be solved for because:

  • they have both input and output edges

  • have output edges and is a signal input

  • is used by a detector

  • has an input optical edge and some output edge

This could be more sophisticated and perhaps use the graph in a more correct way. For example, this will not prune some long line of electrical components connected to a mechanical node that drives some optical field. Or in other words, it will not determine if an input edge has an active node on the other end.

Returns
tuple of nodes