etspy.base.CommonStack.change_data_type(dtype: str | dtype)[source]

Change the data type of a stack.

Use instead of the inherited change_dtype function of Hyperspy which results in conversion of the Stack to a Signal2D.

Parameters:
dtype: str | dtype

A string that represents a NumPy data type, or a specific data type