From 5590243c5e020acc52f4b3dd2ed2577e1e684ed0 Mon Sep 17 00:00:00 2001 From: William Black <125844868+smokestacklightnin@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:23:02 -0700 Subject: [PATCH] Typecast input to complex --- stardis/opacities/voigt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/stardis/opacities/voigt.py b/stardis/opacities/voigt.py index 7601510c..c1795e7a 100644 --- a/stardis/opacities/voigt.py +++ b/stardis/opacities/voigt.py @@ -25,6 +25,7 @@ def _faddeeva(z): ------- w : complex """ + z = complex(z) x = float(z.real) y = float(z.imag) t = y - 1j * x