nnmt.utils.pint_append¶
-
nnmt.utils.
pint_append
(array, quantity, axis=0)[source]¶ Append quantity to np.array quantity. Handles units correctly.
Parameters: - arraypint Quantity with np.array magnitude or just np.array
Array to which quantity should be appended.
- quantitypint Quantity or just something unitless
Quantity which should be appended to array.
- axisnum
Axis along which to append quantity to array.
Returns: - pint Quantity with np.array magnitude