In V2, create_array allowed for passing data=, which was convenient for determining the shape, dtype and initial data of the created data.
arr = create_array(name, dtype=arr.dtype, shape=arr.dtype)
arr[:] = arr
would simplify to
create_array(name, data=arr)
In V2, create_array allowed for passing data=, which was convenient for determining the shape, dtype and initial data of the created data.
would simplify to