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

compute convolution channels together #36

Merged

Conversation

ctuguinay
Copy link

@ctuguinay ctuguinay commented Apr 25, 2024

For some reason, in the original code, when concatenating the uncomputed pc together and then computing, we would end up with a completely wrong array, and this array was different than the one that would be produced when we compute the pc and then concatenate.

I was unsure how to fix this problem (it had something to do with the order of operations and the memory mapping of tasks in the Dask delayed task graph), so I decided to write something where we didn't even need to do any concatenation on the pc arrays, and instead do the entire convolution in one go, i.e. one call of xr.apply_ufunc, instead of one call per channel.

@ctuguinay
Copy link
Author

@leewujung should be ready for review

@ctuguinay ctuguinay marked this pull request as draft May 23, 2024 17:53
@ctuguinay ctuguinay marked this pull request as ready for review May 23, 2024 17:54
@leewujung
Copy link
Owner

Cool, thanks!

@leewujung leewujung merged commit 73aceec into leewujung:dask_bool_index May 23, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants