-
-
Notifications
You must be signed in to change notification settings - Fork 14
Revert "Kehao ch10problems(2 of them)" #42
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
Conversation
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.
Lintly has detected code quality issues in this pull request.
| @@ -1,12 +1,12 @@ | |||
| """ | |||
| Alternating | |||
| """ | |||
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.
W291: trailing whitespace
| 1 on each side, and 4 on the diagonals, for 8 in total. Each | ||
| pixel doesn't necessarily have 8 neighbors, though (think about why). | ||
| The neighbors of an image are all the pixels that surroun it, | ||
| 1 on each side, and 4 on the diagonals, for 8 in total. |
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.
W291: trailing whitespace
| were [20, 30, 40] and [10, 120, 30], the new pixel that would replace the | ||
| original one would be [15, 75, 35] | ||
| For example, if the neighbors of a pixel with value [1,2,3] | ||
| were [20,30,40] and [10,120,30], the new pixel that would replace the original one would be |
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.
E501: line too long (91 > 79 characters)
| 1 on each side, and 4 on the diagonals, for 8 in total. Each | ||
| pixel doesn't necessarily have 8 neighbors, though (think about why). | ||
| The neighbors of an image are all the pixels that surroun it, | ||
| 1 on each side, and 4 on the diagonals, for 8 in total. |
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.
W291: trailing whitespace
| were [20, 30, 40] and [10, 120, 30], the new pixel that would replace the | ||
| original one would be [15, 75, 35] | ||
| For example, if the neighbors of a pixel with value [1,2,3] | ||
| were [20,30,40] and [10,120,30], the new pixel that would replace the original one would be |
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.
E501: line too long (91 > 79 characters)
| i is associated with values | ||
| """ | ||
| """Iterating over the image here. i is a variable from 0 to the width of the image. | ||
| j is a variable that ranges from 0 to the height of the image. i is associated with |
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.
W191: indentation contains tabs
| i is associated with values | ||
| """ | ||
| """Iterating over the image here. i is a variable from 0 to the width of the image. | ||
| j is a variable that ranges from 0 to the height of the image. i is associated with |
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.
E101: indentation contains mixed spaces and tabs
| i is associated with values | ||
| """ | ||
| """Iterating over the image here. i is a variable from 0 to the width of the image. | ||
| j is a variable that ranges from 0 to the height of the image. i is associated with |
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.
E501: line too long (84 > 79 characters)
| """ | ||
| """Iterating over the image here. i is a variable from 0 to the width of the image. | ||
| j is a variable that ranges from 0 to the height of the image. i is associated with | ||
| values""" |
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.
W191: indentation contains tabs
| """ | ||
| """Iterating over the image here. i is a variable from 0 to the width of the image. | ||
| j is a variable that ranges from 0 to the height of the image. i is associated with | ||
| values""" |
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.
E101: indentation contains mixed spaces and tabs
|
You know what this is getting a bit confusing let's just deal with it on the side outside of GitHub :/ |
Reverts #39
I forgot that this includes changes from #41 so that got merged too even though I only wanted to merge the 2 problems @Citrus716 added for Ch. 10. (Next time Ke Hao please separate the code into different branches maybe? Or keep it all in one PR.)