From 3c881f544f60f2cab1ea5647f9432d1c248bf43b Mon Sep 17 00:00:00 2001 From: Ansgar Wehrhahn <31626864+AWehrhahn@users.noreply.github.com> Date: Fri, 3 Jun 2022 16:32:27 +0200 Subject: [PATCH] limit lower abundance for proper line formation --- src/pysme/sme_synth.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pysme/sme_synth.py b/src/pysme/sme_synth.py index df31ecde..cb9edb29 100644 --- a/src/pysme/sme_synth.py +++ b/src/pysme/sme_synth.py @@ -244,6 +244,8 @@ def InputAbund(self, abund): abundance structure to be passed (see Abund for more details) """ abund = abund("sme", raw=True) + # TODO: does this make sense or should we fix the C code? + abund[np.isnan(abund)] = -12 _smelib.InputAbund(abund) def Opacity(self):