charlesll/rampy

rampy.normalize error when asking "area"

charlesll opened this issue · 1 comments

y_fit = rp.normalise(y_fit,x=x_fit,method="area") yields an error:

184 if method == "area": --> 185 if x == 0: 186 raise TypeError("Input x values for area normalisation") 187 y = y/np.trapz(y,x)
I will correct this error in rampy v0.4.3, releasing it today.

Fixed in release 0.4.3