Skip to content
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

Typo in Variable Name: neughbour_cord → neighbour_cord in get_neighbours Method in machine_learning.py. #12615

Closed
AparnaIyer06 opened this issue Mar 11, 2025 · 0 comments
Labels

Comments

@AparnaIyer06
Copy link

Repository commit

The typo is found in the get_neighbours(self,cell) function inside machine_learning.py on lines 65 and 78.

Python version (python --version)

Python 3.10.7

Dependencies version (pip freeze)

  • Python 3.8.10
  • NumPy 1.21.2

Expected behavior

The function get_neighbours(self, cell) should correctly identify and return the neighboring cells of the given cell. The variable storing neighbor coordinates should be correctly spelled (neighbour_cord or neighbor_cord) so that it can be referenced properly within the function.

Actual behavior

The variable neughbour_cord is misspelled, leading to potential confusion or errors if referenced elsewhere in the code. While Python does not enforce strict spelling checks, using a misspelled variable name can make the code harder to read and maintain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant