I think you want ``np.abs`` here, not just abs, right?