Skip to content

Commit

Permalink
Fixed Static code analysis issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ArzhelaR committed Apr 9, 2024
1 parent cd86315 commit c272219
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions model/mesh_struct/mesh_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def set_face(self, face: Face) -> None:
class Node:
_mesh_type: type = None

def __init__(self, m: _mesh_type, id: int):
def __init__(self, m: _mesh_type, node_id: int):
"""
A node is defined by the mesh_struct it belongs to and its id in this
mesh_struct. Node data are stored in an array owned by its mesh_struct. A node
Expand All @@ -103,7 +103,7 @@ def __init__(self, m: _mesh_type, id: int):
:param id: node id
"""
self.mesh = m
self.id = id
self.id = node_id

def __eq__(self, a_node: Node) -> bool:
"""
Expand Down Expand Up @@ -172,7 +172,7 @@ def set_xy(self, x: float, y: float) -> None:
class Face:
_mesh_type: type = None

def __init__(self, m: _mesh_type, id: int):
def __init__(self, m: _mesh_type, face_id: int):
"""
A face is defined by the mesh_struct it belongs to and its id in this
mesh_struct. Face data are stored in an array owned by its mesh_struct. A face
Expand All @@ -182,7 +182,7 @@ def __init__(self, m: _mesh_type, id: int):
:param id: face id
"""
self.mesh = m
self.id = id
self.id = face_id

def get_nodes(self) -> list[Node]:
"""
Expand Down

0 comments on commit c272219

Please sign in to comment.