[Numpy-discussion] Understanding np.min behaviour with nan

Gerrit Holl gerrit.holl at gmail.com
Wed Jan 10 18:21:57 EST 2018


On 10 January 2018 at 23:03, Andrew Nelson <andyfaff at gmail.com> wrote:
> Further to my last message, why is the warning only raised once?

Warnings are only raised once because that is the default behaviour
for warnings.  The warning is issued every time but only displayed on
the first occurence.

You can control this with the warnings module:

https://docs.python.org/3.6/library/warnings.html

Gerrit.


More information about the NumPy-Discussion mailing list