You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was working before but... When I try now, it complains from uint8 overflow.
only with tc001v4.2.py. RAW one works proper.
Traceback (most recent call last):
File "/home/compile/PyThermalCamera/src/./tc001v4.2.py", line 108, in <module>
lo = lo*256
~~^~~~
OverflowError: Python integer 256 out of bounds for uint8
The text was updated successfully, but these errors were encountered:
Not sure if this is because of the code design specifically laid out for a RPi.
I fixed this on SteamOS by doing a conversion and it appears that all resulting values are correct.
Ideally the code should be tested against multiple distros with dedicated methods such as is_raspberrypi() is doing.
lo = lo.astype(np.uint16) * 256
There may be better ways to do this. And converting all parameters that are affected by the out of bonds multplication is required for: lo, lomax, lomin, loavg
It was working before but... When I try now, it complains from uint8 overflow.
only with tc001v4.2.py. RAW one works proper.
The text was updated successfully, but these errors were encountered: