Create digital differential analyzer_line.py#10929
Create digital differential analyzer_line.py#10929tianyizheng02 merged 36 commits intoTheAlgorithms:masterfrom
Conversation
for more information, see https://pre-commit.ci
graphics/DDA_line_drawing.py
Outdated
There was a problem hiding this comment.
- Please do not abbreviate "digital differential analyzer", as it's not clear to readers who aren't already familiar with the algorithm.
- The file name should be in all-lowercase.
nababuddin
left a comment
There was a problem hiding this comment.
Thanks for the suggestion, made the changes
There was a problem hiding this comment.
Click here to look at the relevant links ⬇️
🔗 Relevant Links
Repository:
Python:
Automated review generated by algorithms-keeper. If there's any problem regarding this review, please open an issue about it.
algorithms-keeper commands and options
algorithms-keeper actions can be triggered by commenting on this PR:
@algorithms-keeper reviewto trigger the checks for only added pull request files@algorithms-keeper review-allto trigger the checks for all the pull request files, including the modified files. As we cannot post review comments on lines not part of the diff, this command will post all the messages in one comment.NOTE: Commands are in beta and so this feature is restricted only to a member or owner of the organization.
| import matplotlib.pyplot as plt | ||
|
|
||
|
|
||
| def dda_line(x1, y1, x2, y2): |
There was a problem hiding this comment.
As there is no test file in this pull request nor any test function or class in the file graphics/digital_differential_analyzer_line_drawing.py, please provide doctest for the function dda_line
Please provide return type hint for the function: dda_line. If the function does not return a value, please provide the type hint as: def function() -> None:
Please provide type hint for the parameter: x1
Please provide type hint for the parameter: y1
Please provide type hint for the parameter: x2
Please provide type hint for the parameter: y2
There was a problem hiding this comment.
Click here to look at the relevant links ⬇️
🔗 Relevant Links
Repository:
Python:
Automated review generated by algorithms-keeper. If there's any problem regarding this review, please open an issue about it.
algorithms-keeper commands and options
algorithms-keeper actions can be triggered by commenting on this PR:
@algorithms-keeper reviewto trigger the checks for only added pull request files@algorithms-keeper review-allto trigger the checks for all the pull request files, including the modified files. As we cannot post review comments on lines not part of the diff, this command will post all the messages in one comment.NOTE: Commands are in beta and so this feature is restricted only to a member or owner of the organization.
| import matplotlib.pyplot as plt | ||
|
|
||
|
|
||
| def dda_line(x1, y1, x2, y2): |
There was a problem hiding this comment.
As there is no test file in this pull request nor any test function or class in the file graphics/digital_differential_analyzer_line_drawing.py, please provide doctest for the function dda_line
Please provide return type hint for the function: dda_line. If the function does not return a value, please provide the type hint as: def function() -> None:
Please provide type hint for the parameter: x1
Please provide type hint for the parameter: y1
Please provide type hint for the parameter: x2
Please provide type hint for the parameter: y2
nababuddin
left a comment
There was a problem hiding this comment.
made the necessary changes
| import matplotlib.pyplot as plt | ||
|
|
||
|
|
||
| def dda_line(x1, y1, x2, y2): |
There was a problem hiding this comment.
- Like I said earlier, please do not abbreviate "digital differential analyzer".
- Like the algorithm-keeper bot said, please add type hints and doctests.
for more information, see https://pre-commit.ci
nababuddin
left a comment
There was a problem hiding this comment.
I made the changes.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Click here to look at the relevant links ⬇️
🔗 Relevant Links
Repository:
Python:
Automated review generated by algorithms-keeper. If there's any problem regarding this review, please open an issue about it.
algorithms-keeper commands and options
algorithms-keeper actions can be triggered by commenting on this PR:
@algorithms-keeper reviewto trigger the checks for only added pull request files@algorithms-keeper review-allto trigger the checks for all the pull request files, including the modified files. As we cannot post review comments on lines not part of the diff, this command will post all the messages in one comment.NOTE: Commands are in beta and so this feature is restricted only to a member or owner of the organization.
nababuddin
left a comment
There was a problem hiding this comment.
I have made the changes you requested.
There was a problem hiding this comment.
Click here to look at the relevant links ⬇️
🔗 Relevant Links
Repository:
Python:
Automated review generated by algorithms-keeper. If there's any problem regarding this review, please open an issue about it.
algorithms-keeper commands and options
algorithms-keeper actions can be triggered by commenting on this PR:
@algorithms-keeper reviewto trigger the checks for only added pull request files@algorithms-keeper review-allto trigger the checks for all the pull request files, including the modified files. As we cannot post review comments on lines not part of the diff, this command will post all the messages in one comment.NOTE: Commands are in beta and so this feature is restricted only to a member or owner of the organization.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
nababuddin
left a comment
There was a problem hiding this comment.
I think its all fixed now and ready to merge.
Describe your change:
Checklist: