- scipp.ones_like(obj, /)#
Return a new object with the same dims, shape, unit, and dtype as the input and all elements initialized to 1.
If the input has variances, all variances in the output are set to 1. If the input is a
DataArray, coordinates and attributes are shallow-copied and masks are deep-copied.