finesse.solutions.beamtrace.PropagationSolution.print

PropagationSolution.print(subs=None, numfmt=None, **kwargs)[source]

Print the propagated beam properties at each node in a table format.

This internally calls PropagationSolution.table() and prints its return string.

Parameters:
subsdict, optional

A dictionary of model parameter to value substitutions to pass to the eval methods of symbolic expressions.

If this solution object is not symbolic then this argument is ignored.

numfmtstr or func, optional

Either a function to format numbers or a formatting string. The function must return a string. Defaults to “{:.3f}” for the first 6 columns and lambda q: f”{q.real:.3f} + {q.imag:.3f}j” for the last one.

**kwargsdict, optional

Additional arguments to create the table. See finesse.utilities.tables.NumberTable for further documentation. The arguments table, colnames and rownames are already used and should not be passed.