Skip to content

Commit

Permalink
fix xrd in _geqdsk.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HarukiST committed Aug 13, 2024
1 parent f3a364c commit 9c86ab1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hypnotoad/geqdsk/_geqdsk.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ def write(data, fh, label=None, shot=None, time=None):
sign_dpsi = np.sign(psi_bdry-psi_axis)
xcrd = np.linspace(psi_axis,psi_bdry,nx)*sign_dpsi
fprime_spl = sp.interpolate.InterpolatedUnivariateSpline(
xrd, fpol*sign_dpsi).derivative()
ffprime = fpol*fprime_spl(xrcd)
xcrd, fpol*sign_dpsi).derivative()
ffprime = fpol*fprime_spl(xcrd)

write_1d(ffprime,co)

Expand Down

0 comments on commit 9c86ab1

Please sign in to comment.