iq_readout.utils.check_2d_input#

check_2d_input(x, axis=-1)[source]#

Checks that x has length 2 at the last axis. If axis != -1, it also checks that x has axis+1 axis.

Parameters:
x

Input to check.

axis

Axis of the last dimension fo the input. By default -1.