convert Inf to np.inf
Merge pull request #21 from perimosocordiae/inf-fixes

convert Inf to np.inf