[SciPy-user] isnotnan

Bruce Southey bsouthey@gmail....
Thu Feb 12 21:11:49 CST 2009


On Thu, Feb 12, 2009 at 8:30 PM, David Cournapeau
<david@ar.media.kyoto-u.ac.jp> wrote:
> Bruce Southey wrote:
>> Hi,
>> Thanks to the Doc Marathon!
>>
>> Perhaps numpy.isfinite() is what you want:
>> http://docs.scipy.org/doc/numpy/reference/generated/numpy.isfinite.html
>>
>
> isfinite may be acceptable for the OP, but !isnan is not the same as
> isfinite.
>
> cheers,
>
> David
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>

Yes, isfinite is not the opposite of isnan unless there are no
positive or negative infinity elements.

Bruce


More information about the SciPy-user mailing list