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

v0.11.0 beta: OverflowError: Python int too large to convert to C long #19

Open
djdan7 opened this issue Jul 11, 2024 · 1 comment
Open

Comments

@djdan7
Copy link

djdan7 commented Jul 11, 2024

When I use int32 or uint32 in attributes (for example: dt.set_attributes_schema(np.dtype([('intensity', np.uint32)])) and want to print the attributes using dt.attributes[1:] I get: OverflowError: Python int too large to convert to C long.

floats and 64bit integers works ok

@hugoledoux
Copy link
Owner

this means indeed you have values of intensity that are larger than the max value for int32?

this would mean (2^32)/2 = 2.147.483.648, I doubt this is the case?

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

No branches or pull requests

2 participants