-
Notifications
You must be signed in to change notification settings - Fork 120
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
Values of '[Not Supported]' are not handled properly. #2
Comments
Thank you for opening the issue. The issue can be handled by wrapping it in a try-catch statement and setting it to some fixed value, if the typecasting fails. |
@tasptz I've committed an update to GPUtil, which should resolve the issue. |
@tasptz Have you had a chance to test if the updated version works for you? |
@anderskm I also had the same problem and I confirm current master (commit a492d3b) fixes it |
@dizcza Yay, and doh! :-) Thank you for confirming that it fixes the initial problem, but also broke the compatibility. I was not aware of the removal of the cmp parameters from py2 to py3. I'll see if I can find a good solution within the next few days. I'm open for suggestions of how to best fix it ;-) I completely agree with the unit testing. It should be done, and it has been on my to-do list, but I have not had time to set it up properly yet. So far it has mainly been done manually, which is far from ideal, as the recent update shows. |
@dizcza I believe, I have found a solution, which is compatible with both py2 and py3. It also seems like a nicer solution than the custom compare function. Will test it properly before committing ;-) |
Had a chance to test it, and it seems to work in both py2 and py3. |
Values of
'[Not Supported]'
are not handled properly.The text was updated successfully, but these errors were encountered: