scipp.empty_like
scipp.empty_like#
- scipp.empty_like(var)#
Constructs a new object with the same dims, shape, unit and dtype as the input (
Variable
orDataArray
), but with all values uninitialized. If the input has variances, all variances in the output exist but are uninitialized. If the input is aDataArray
, coordinates and attributes are shallow-copied and masks are deep copied.