dont use np.rank, deprecated
fix lorentz factor array creation