Program.match_calibrations

Program.match_calibrations(instr)[source]

Attempt to match a calibration to the provided instruction.

Note: preference is given to later calibrations, i.e. in a program with

DEFCAL X 0:

<a>

DEFCAL X 0:

<b>

the second calibration, with body <b>, would be the calibration matching X 0.

Parameters

instr (AbstractInstruction) – An instruction.

Return type

Optional[CalibrationMatch]

Returns

a CalibrationMatch object, if one can be found.