HWI
HWI copied to clipboard
FloatOperation in btchipHelpers.py
Importing HWI
in my project causes a crash caused by a decimal.Decimal.FloatOperation
on line 24 of hwilib/devices/btchip/btchipHelpers.py
. It is caused by the conversion of a float into a decimal in Decimal(1e8)
.
Since importing the library in a python shell in the same virtualenv does work correcly, the issue lies on my side and I'm currently looking into Decimal configurations in my project that might affect this. Nonetheless, I think changing it to Decimal(10**8)
would be cleaner. Sorry if this was already discussed, I was not able to find any issues on the matter.