Cast_volume: enrich output_data_type to properly handle np.uint16 e.g.
For now, if np.uint16
is passed, fails with TypeError: output_data_type is expected to be a <class 'numpy.dtype'>. <class 'type'> provided
.
Passing np.dtype(np.uint16)
works fine. Cast the type inside the function.