overwrite error in interpolation; avoid mismatch in length
part of #103
This commit is contained in:
parent
1ff462c4b1
commit
13e6112c99
@ -24,8 +24,8 @@ def interpolate(data, new_x, xlog=False, ylog=False, kind='cubic', extrapolate=T
|
|||||||
new_y = f(new_x)
|
new_y = f(new_x)
|
||||||
|
|
||||||
if ylog:
|
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:
|
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
|
return ret_val
|
||||||
|
Loading…
Reference in New Issue
Block a user