startinpy icon indicating copy to clipboard operation
startinpy copied to clipboard

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

Open djdan7 opened this issue 1 year ago • 1 comments

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

djdan7 avatar Jul 11 '24 12:07 djdan7

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?

hugoledoux avatar Jul 15 '24 06:07 hugoledoux

I'll close this for now since I haven't heard from you, reopen if still an issue

hugoledoux avatar Dec 16 '24 11:12 hugoledoux