glue-viz / glue

Linked Data Visualizations Across Multiple Files
http://glueviz.org
Other
729 stars 152 forks source link

Ensure lazy dask arrays become numpy arrays in calculate_histogram #2412

Closed jfoster17 closed 1 year ago

jfoster17 commented 1 year ago

Pull Request Template

Description

Similar to #2399, dask arrays read from disk with particularly lazy loaders may return dask arrays even after calling compute. This applies the same fix in calculate_histogram, which I missed in #2399 of calling np.asarray() to make sure we always get a numpy array when we want one.