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

fix(csr): Set type of node_props to float64 #235

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ns-rse
Copy link
Contributor

@ns-rse ns-rse commented Oct 30, 2024

dtype of node_props passed from csr_to_nbgraph() to NBGraph was float32. This sets the type to explicitly be np.float64 which matches the expectation of csr_spec_float passed to numba.experimental.jitclass().

The tests that were previously failing in TopoStats (see #234 for details) now pass locally. 🙂

Closes #234

`dtype` of `node_props` passed from `csr_to_nbgraph()` to `NBGraph` was `float32`. This sets the type to explicitly be
`np.float64` which matches the expectation of `csr_spec_float` passed to `numba.experimental.jitclass()`.
@jni
Copy link
Owner

jni commented Oct 30, 2024

Cool, thanks for the investigation @ns-rse!

Do you think you could copy over the failing test from TopoStats to make sure we don't get a regression here?

@ns-rse
Copy link
Contributor Author

ns-rse commented Oct 30, 2024

Sure, I'm working on a different project for remainder of the week and then on annual leave for a week so won't be for a little while but happy to do so.

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.

Allow mean pixel value causes Numba type error
2 participants