We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When getting combined quality score there is this snippet:
oxasl_enable/oxasl_enable/enable.py
Lines 299 to 301 in a44d4f9
However vals is a list, not a numpy array, so the behaviour of this code is not right. A toy example would be:
vals
vals = [2, 3, np.inf] vals[vals == np.inf] = 0 vals[vals == -np.inf] = 0 print(vals) >>> [0, 3, inf]
Can be fixed either by converting to numpy array or changing to list comprehension:
vals = np.array([2, 3, np.inf]) vals[vals == np.inf] = 0 vals[vals == -np.inf] = 0 print(vals) >>> [2, 3, 0]
or
vals = [2, 3, np.inf] vals = [0 if x == np.inf else x for x in vals] vals = [0 if x == -np.inf else x for x in vals] print(vals) >>> [2, 3, 0]
The text was updated successfully, but these errors were encountered:
Agreed, will fix in bitbucket and here
Sorry, something went wrong.
mcraig-ibme
No branches or pull requests
When getting combined quality score there is this snippet:
oxasl_enable/oxasl_enable/enable.py
Lines 299 to 301 in a44d4f9
However
vals
is a list, not a numpy array, so the behaviour of this code is not right. A toy example would be:Can be fixed either by converting to numpy array or changing to list comprehension:
or
The text was updated successfully, but these errors were encountered: