cf-python icon indicating copy to clipboard operation
cf-python copied to clipboard

dask: `Data.array` return type (and test housekeeping)

Open davidhassell opened this issue 3 years ago • 0 comments

Sometime dask's compute returns a numpy int/float type rather than a scalar array, which doesn't work well with downstream methods (like Data.__array__), so Data.array make sure we trap those cases and cast it as a proper scalar array.

Also some housekeeping in test_TimeDuration.py (no substantive changes).

davidhassell avatar Oct 15 '22 08:10 davidhassell