From 13e6112c997cfea5d809b4c62bc41cf2f7feea8c Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Mon, 24 Jul 2023 11:08:42 +0000 Subject: [PATCH] overwrite error in interpolation; avoid mismatch in length part of #103 --- src/nmreval/math/interpol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nmreval/math/interpol.py b/src/nmreval/math/interpol.py index 81a5b31..7d139cd 100644 --- a/src/nmreval/math/interpol.py +++ b/src/nmreval/math/interpol.py @@ -24,8 +24,8 @@ def interpolate(data, new_x, xlog=False, ylog=False, kind='cubic', extrapolate=T new_y = f(new_x) if ylog: - ret_val.set_data(x=new_x, y=10**new_y, y_err=None) + ret_val.set_data(x=new_x, y=10**new_y, y_err=0) else: - ret_val.set_data(x=new_x, y=new_y, y_err=None) + ret_val.set_data(x=new_x, y=new_y, y_err=0) return ret_val