From 1bef5058eeff6705d33a3f918b70191c687b348d Mon Sep 17 00:00:00 2001 From: Daniel Kitzmann <34245734+daniel-kitzmann@users.noreply.github.com> Date: Fri, 1 May 2026 11:43:55 +0000 Subject: [PATCH] Small bug fix in interpolation. --- op.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op.py b/op.py index c03171f..1efd31b 100644 --- a/op.py +++ b/op.py @@ -680,7 +680,7 @@ def make_bins_read_cross(self,var,atm): if np.isinf(log_highT ): log_highT = -100. inter_T = interpolate.interp1d([Tlow,Thigh], [log_lowT,log_highT], axis=0) # at wavelength ld, interpolating between Tlow and Thigh in log10 - if inter_T(Tz) == -100: var.cross_T[sp][lev, n] == 0. + if inter_T(Tz) == -100: var.cross_T[sp][lev, n] = 0. else: var.cross_T[sp][lev, n] = 10**(inter_T(Tz)) # update: inerpolation in log10 for cross sections and linearly between Tlow and Thigh