Skip to content

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

Closed
@AparnaIyer06

Description

@AparnaIyer06

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions