trapezoid integration method +  Fields np.array bug