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

ValueError #6

Open
jeremie-baboukhian opened this issue Jun 13, 2020 · 1 comment
Open

ValueError #6

jeremie-baboukhian opened this issue Jun 13, 2020 · 1 comment

Comments

@jeremie-baboukhian
Copy link

Hi,
I got an Error on launch "ValueError: invalid literal for int() with base 10: '-12.0'" any idea to fix it?
Massive work btw

@ArtursGailis1995
Copy link

The latest firmware for some devices seems to be reporting RSRQ values in double/float format, not integer.

RSRQ-11.0dB

You need to open \huawei-lte-examples-master\huawei-lte-monitoring\SignalInfo.py and modify function
def get_int(value): return int(value.split('d')[0])

to look like
def get_int(value): return float(value.split('d')[0])

Also need to edit file \huawei-lte-examples-master\huawei-lte-band\huawei_lte_lib.py and find code
def get_signal_int(value): return int(value.split('d')[0])

and make it look like
def get_signal_int(value): return float(value.split('d')[0])

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

No branches or pull requests

2 participants