Skip to content

Commit

Permalink
Fix array to scalar DeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
olemke committed Nov 14, 2024
1 parent eb11908 commit 4d3dfbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typhon/spectroscopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def linewidth(f, a):
1.571048056449009
"""
s = interpolate.UnivariateSpline(f, a - np.max(a)/2, s=0)
return float(np.diff(s.roots()))
return float(np.diff(s.roots())[0])


def doppler_broadening(t, f0, m):
Expand Down

0 comments on commit 4d3dfbe

Please sign in to comment.