Hi, I have been using seterr to try to catch where Nans are appearing in my analysis. I used all: 'warn' which worked the first time I ran the function, but as specified in the documentation it only warns 'once only'. Is there a way I can reset the count so it will warn again, without loosing my session? Thanks Robin
2009/4/29 Robin
I have been using seterr to try to catch where Nans are appearing in my analysis.
I used all: 'warn' which worked the first time I ran the function, but as specified in the documentation it only warns 'once only'. Is there a way I can reset the count so it will warn again, without loosing my session?
Try import warnings warnings.simplefilter('always') Cheers Stéfan
2009/4/29 Stéfan van der Walt
2009/4/29 Robin
: I have been using seterr to try to catch where Nans are appearing in my analysis.
I used all: 'warn' which worked the first time I ran the function, but as specified in the documentation it only warns 'once only'. Is there a way I can reset the count so it will warn again, without loosing my session?
Try
import warnings warnings.simplefilter('always')
Thanks very much, I thought it would be an easy one! Robin
participants (2)
-
Robin
-
Stéfan van der Walt