FXIhub / condor

Condor: a simulation tool for flash X-ray imaging
http://lmb.icm.uu.se/condor
BSD 2-Clause "Simplified" License
25 stars 14 forks source link

Update resample.py #33

Closed Toonggg closed 3 years ago

Toonggg commented 3 years ago

Fixed pixel binning factor calculation. Line 92 to Line 93: TypeError: No loop matching the specified signature and casting was found for ufunc true_divide The problem is that we can't divided using /= on an Numpy-array. The proposed fix is to replace the division by //=: Y //= factor X //= factor