Conversation
Some APs are returning Quality values of single integers instead of x/100. I'm not sure why, but getCellQuality doesn't seem to recognize a single integer, and so Quality ends up being set to '', per the default value set in line 157. Unfortunately, when sortNetworks then tries to figure out a sorting factor, it assumes there will be a slash, and we get the error: Unhandled exception 'need more than 1 value to unpack' at /usr/lib/python2.7/dist-packages/kano/network.py line 225 I couldn't figure out why getCellQuality isn't able to deal with a single integer Quality, but I was able to workaround these weird APs (luckily neither of them is mine) by setting factor to 0 if Quality = ''.
|
Ah, great job @darryllee! Thanks for looking into this problem; it is always very difficult to test on every AP. It looks like the If your comment about the output is correct, those APs which only show a single number have the line being whereas the other APs have the line i.e. they have While this PR is good in that it prevents crashing in the case of certain APs, it isn't ideal as it doesn't allow the ranking to work. Is it possible to make some changes to Also, we are currently using the |
|
Oh dur. Right a : instead of an =. It's right there. Sure let me take a We'll still need to adjust for a non fractional Quality but I actually Thanks Tom! On Thursday, February 25, 2016, Tom notifications@github.com wrote:
--Darryl Lee lee@darryl.com |
Some APs are returning Quality values of single integers instead of x/100. I'm not sure why, but getCellQuality doesn't seem to recognize a single integer, and so Quality ends up being set to '', per the default value set in line 157.
Unfortunately, when sortNetworks then tries to figure out a sorting factor, it assumes there will be a slash, and we get the error: Unhandled exception 'need more than 1 value to unpack' at /usr/lib/python2.7/dist-packages/kano/network.py line 225
I couldn't figure out why getCellQuality isn't able to deal with a single integer Quality, but I was able to workaround these weird APs (luckily neither of them is mine) by setting factor to 0 if Quality = ''.