hugoledoux / startinpy

A Python library for modelling and processing 2.5D terrains using a (2D) Delaunay triangulation.
https://startinpy.rtfd.io/
MIT License
25 stars 6 forks source link

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

Open djdan7 opened 2 months ago

djdan7 commented 2 months ago

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 commented 2 months ago

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?