Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure lazy dask arrays become numpy arrays in calculate_histogram #2412

Merged

Conversation

jfoster17
Copy link
Member

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.

Copy link
Member

@astrofrog astrofrog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@astrofrog astrofrog merged commit 17cd07c into glue-viz:main Jun 1, 2023
@jfoster17 jfoster17 deleted the another-fix-for-lazy-dask-arrays branch June 9, 2023 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants