Use array instead of np.arry for data in base fit