the arrays `ps.freq` and `res.mfit` have different lengths, thus while running they return ValueError.