qspec logo qspec logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

qspec. check_dimension  (  dim ,  axis ,  *args  )[source]

Check whether all arguments have dim components along the specified axis.

Parameters:
dimint

The number of components the axis axis must have.

axisint

The axis which must have dim components.

argsarray_like

The arguments which must have dim components along axis axis.

Raises:
ValueError

If any argument does not have dim components along axis axis.