Skip to content

has_traits.py:1536: FutureWarning: comparison to None #144

@xaverm

Description

@xaverm

Executing this snippet

# block 1
%pylab inline
%gui wx
from mayavi import mlab as ml

# block 2
def egr(x,y):
    return cos(x)+cos(y)
N=300
x,y = mgrid[-2*pi:2*pi:N*1j,-2*pi:2*pi:N*1j]
z = egr(x,y)

# block 3
ml.figure()
ml.surf(x,y,z,warp_scale=2);

as the very 1st in an ipython notebook produces this:
from block 1
WARNING:traits.has_traits:DEPRECATED: traits.has_traits.wrapped_class, 'the 'implements' class advisor has been deprecated. Use the 'provides' class decorator.
from block 3
/home/JohnDoe/temporary/ets/traits/traits/has_traits.py:1536: FutureWarning: comparison toNonewill result in an elementwise object comparison in the future. setattr( self, name, value )

The deprecation waring from block 1 has already been posted in the open issue [link to https://github.com//issues/143]

These warnings occurred after an upgrade of my systems IPython from a 1.x version to a 2.x version.

IPython 2.2.0
ETS fresh pull & compile as of Sun Sep 21 10:06:27 CEST 2014

Comments / suggestions / help would be most welcome.
xaverm

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