nye17 / javelin

JAVELIN is now working under Python 3!
GNU General Public License v2.0
21 stars 12 forks source link

ceil() returns data in float rather than int #12

Closed saterpose closed 10 months ago

saterpose commented 1 year ago

javelin/gp/GPutils.py line ~ 396 "n_chunks = ceil(ysize * x.shape[0] / float(chunksize))" n_chunks is in float64 , causing subsequent errors. an int() may be needed under some env(Python 3.7.11 for me)

nye17 commented 10 months ago

fixed by adding .astype(int) by the end, thanks.