-
Notifications
You must be signed in to change notification settings - Fork 437
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
Fix PEP8 in test_expectmax #918
Conversation
expected[random_labels == 1, 2] = delta_field[random_labels == 1]*grad_G[random_labels == 1, 2]/sqnrm | ||
|
||
#Pixels with gradient=0 and sigma_i_sq=0 | ||
expected[random_labels == 1, 0] = delta_field[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of breaking the line just after the square bracket [
, I think something like:
expected[random_labels == 1, 0] = (delta_field[random_labels == 1] *
grad_G[random_labels == 1, 0] / sqnrm)
expected[random_labels == 1, 1] = (delta_field[random_labels == 1] *
grad_G[random_labels == 1, 1] / sqnrm)
expected[raendom_labels == 1, 2] = (delta_field[random_labels == 1] *
grad_G[random_labels == 1, 2] / sqnrm)
would be more readable and it still fits within the 79 character limit
Hi @ghoshbishakh!, =) |
thank you for reviewing. Ill try to fix the issues pointed and update PR |
@omarocegueda - I am +1 for a merge here, if this addressed all your comments. |
Oh! sorry I didn't notice it was done! merging now. |
Thank you @ghoshbishakh! |
fixes #863