Suppress invalid value warning in rates

@tcstewar's recent change resulted in an invalid value cropping up in the `log1p` calculation. This doesn't affect anything, but it's annoying to see a `RuntimeWarning`, so this ignores that warning.