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

About the lastest_k function #113

Closed
seisen0305 opened this issue Aug 24, 2023 · 4 comments
Closed

About the lastest_k function #113

seisen0305 opened this issue Aug 24, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@seisen0305
Copy link

Hello, William
when i use lastest_k , i got some error
this is code

import numpy as np
import cc3d
import cv2
labels_in = np.ones((512, 512, 512), dtype=np.int32)
labels_out, N = cc3d.largest_k(
labels_in, k=10,
connectivity=26,
return_N=True,
)

and I got TypeError: Argument 'delta' has incorrect type (expected int, got float)
so what can I do to reduce this error
looking forward to your answer

@william-silversmith
Copy link
Contributor

Hi! I just tried running this code and did not experience the error. Do you know which version of cc3d you're running? Is it the latest version?

@seisen0305
Copy link
Author

hello, my cc3d's version is 3.12.2,and I tried to run this code at another PC, but I have the same result as above.

@seisen0305
Copy link
Author

I reinstall version 3.12.1, and this error has disappeared. thanks for your cc3d package, it very useful for me.

@william-silversmith william-silversmith added the bug Something isn't working label Aug 26, 2023
@william-silversmith
Copy link
Contributor

Hi! I just noticed that the CI was failing with this error. I wrote up a fix and am pushing 3.12.3 to PyPI. Let me know if you have any more issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants