You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the Numpy 1.9 upgrade, users have been reporting warning messages like the following:
FutureWarning: comparison to None will result in an elementwise object comparison in the future.
Generally speaking, it is good practice to do None checks with if var is None rather than if var == None because the equality check can be (at least in principle) overridden. Which is what some of the Numpy structures do or are going to do in the future.
The issue is usually easy to fix, but getting a list of these warnings is not easy. We did fix some of them in the past (see 61fbfcd) but more have been reported, in particular:
Since the Numpy 1.9 upgrade, users have been reporting warning messages like the following:
Generally speaking, it is good practice to do None checks with
if var is None
rather thanif var == None
because the equality check can be (at least in principle) overridden. Which is what some of the Numpy structures do or are going to do in the future.The issue is usually easy to fix, but getting a list of these warnings is not easy. We did fix some of them in the past (see 61fbfcd) but more have been reported, in particular:
For what is worth, a workaround exists:
The text was updated successfully, but these errors were encountered: