Check out the Hyperspy Workshop May 13-17, 2024 Online

update_from#

UniformDataAxis.update_from(axis, attributes=None)#

Copy values of specified axes fields from the passed AxesManager.

Parameters:
  • axis (UniformDataAxis) – The UniformDataAxis instance to use as a source for values.

  • attributes (iterable of str or None) – The name of the attribute to update. If the attribute does not exist in either of the AxesManagers, an AttributeError will be raised. If None, scale, offset and units are updated.

Return type:

A boolean indicating whether any changes were made.