1
0
forked from IPKM/nmreval

overwrite error in interpolation; avoid mismatch in length

part of #103
This commit is contained in:
Dominik Demuth 2023-07-24 11:08:42 +00:00
parent 1ff462c4b1
commit 13e6112c99

View File

@ -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