Skip to content

Commit

Permalink
Typecast input to complex
Browse files Browse the repository at this point in the history
  • Loading branch information
smokestacklightnin committed Aug 9, 2023
1 parent db117eb commit 5590243
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stardis/opacities/voigt.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def _faddeeva(z):
-------
w : complex
"""
z = complex(z)
x = float(z.real)
y = float(z.imag)
t = y - 1j * x
Expand Down

0 comments on commit 5590243

Please sign in to comment.