Skip to content

Commit

Permalink
back in black
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhamv committed Aug 18, 2024
1 parent dfe76cf commit b61a90f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mcdc/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

@njit
def reset_local_coordinate(particle):
"""
Reset particle's local coordinate
"""
particle["translation"][0] = 0.0
particle["translation"][1] = 0.0
particle["translation"][2] = 0.0
Expand All @@ -16,6 +19,9 @@ def reset_local_coordinate(particle):

@njit
def get_local_coordinate(particle):
"""
Get particle's local coordinate
"""
x = particle["x"]
y = particle["y"]
z = particle["z"]
Expand All @@ -26,5 +32,3 @@ def get_local_coordinate(particle):
z -= particle["translation"][2]

return x, y, z


0 comments on commit b61a90f

Please sign in to comment.