finesse.model.Model.detect_mismatches

Model.detect_mismatches(ignore_AR=True, **kwargs)[source]

Detect the mode mismatches in the model.

If you want to display these mismatches in a nicely formatted table then use Model.mismatches_table().

Parameters
ignore_ARbool, optional

When True, with surfaces with R=0 the reflection mismatch is ignored

kwargsKeyword arguments

Arguments to pass to Model.beam_trace().

Returns
mismatchesdict

A dictionary of (n1, n2): mms where n1 is the From node and n2 is the To node. The value mms is another dict consisting of "x" and "y" keys mapping to the mismatch values for the tangential and sagittal planes, respectively.