pmrep: unify inf/NaN handling, handle -inf
pmrep: unify inf/NaN handling, handle -inf

No -NaN in Python so no need to take it into account.
https://docs.python.org/3/library/math.html

adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp