finesse.model.Model.detect_mismatches

Model.detect_mismatches(**kwargs)[source]

Detect the mode mismatches in the model.

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

Parameters

kwargs : Keyword arguments

Arguments to pass to Model.beam_trace().

Returns

mismatches : dict

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.