hyperspy.misc.axis_tools module

hyperspy.misc.axis_tools.check_axes_calibration(ax1, ax2)

Check if the calibration of two DataAxis objects matches.

Raises a logger warning if there is a mismatch. scale and offset are compared as floats using np.allclose, while units is compared with a simple inequality (!=).

Parameters

ax2 (ax1,) –

Returns

If the two axes have identical calibrations.

Return type

bool