Skip to content

comparison to None warnings #1

@parejkoj

Description

@parejkoj

I get the following errors with numpy 1.10.1:

/Users/parejkoj/sdss4/APO-github/PyGuide/build/lib.macosx-10.5-x86_64-2.7/PyGuide/Centroid.py:574: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  if mask != None:
/Users/parejkoj/sdss4/APO-github/PyGuide/build/lib.macosx-10.5-x86_64-2.7/PyGuide/Centroid.py:655: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  if mask == None:
/Users/parejkoj/sdss4/APO-github/PyGuide/build/lib.macosx-10.5-x86_64-2.7/PyGuide/Centroid.py:203: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  if val not in (None, ""):

There's probably others of these lurking in there. I think it's the same thing that was cleaned up from opscore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions