joakimfors / PyMasVis

Python implementation of MasVis
GNU General Public License v2.0
16 stars 3 forks source link

NumPy dtype error on line 155 in input.py #7

Open torext opened 2 years ago

torext commented 2 years ago

The division raw_data /= 2**8 on line 155 of input,py throws since the result of this operation is a float dtype that NumPy doesn't want to recast to one of the int dtypes. Maybe this line should be changed to raw_data //= 2**8 or an explicit converison to float dtype should be added before the original line, not sure which is intended here.