Get rid of the np.inf error in rtd.