Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FloatOperation in btchipHelpers.py #575

Open
St333p opened this issue Feb 11, 2022 · 0 comments
Open

FloatOperation in btchipHelpers.py #575

St333p opened this issue Feb 11, 2022 · 0 comments

Comments

@St333p
Copy link

St333p commented Feb 11, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants