Skip to content

Commit

Permalink
document why the coordinate shift occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
Edgar-21 committed Oct 8, 2024
1 parent c2c7f66 commit 2297a3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parastell/nwl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def find_coords(data):
bounds=[(-np.pi, np.pi)],
args=(vmec, wall_s, coords[0], coords[1]),
)
# remap from [-pi,pi] to [0, 2pi] to match parastell's angle convention
thetas.append((theta.x[0] + 2 * np.pi) % (2 * np.pi))
return thetas

Expand Down

0 comments on commit 2297a3c

Please sign in to comment.