Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Lorenz" example not working #14

Closed
smarnach opened this issue Apr 12, 2012 · 1 comment
Closed

"Lorenz" example not working #14

smarnach opened this issue Apr 12, 2012 · 1 comment

Comments

@smarnach
Copy link

I just installed Envisage from the latest available Debian packages, version 4.0.0-1. The "Lorenz" example plots only once, and never updates the plot. The following exception is logged:

Exception occurred in traits notification handler for object: <acme.lorenz.lorenz.Lorenz object at 0xa23e3bc>, trait: time, old value: [  0.00000000e+00   1.00000000e+02   1.00000000e-02], new value: [u'0.0' u'100.' u'0.01']
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/traits/trait_notifiers.py", line 360, in call_1
    self.handler( object )
  File "/home/sven/tmp/Lorenz/acme/lorenz/lorenz.py", line 38, in _time_changed
    def _time_changed(self): self.refresh()
  File "/home/sven/tmp/Lorenz/acme/lorenz/lorenz.py", line 29, in refresh
    self.calculatePoints()
  File "/home/sven/tmp/Lorenz/acme/lorenz/lorenz.py", line 49, in calculatePoints
    self.timePoints = arange(*self.time)
TypeError: unsupported operand type(s) for -: 'numpy.unicode_' and 'numpy.unicode_'

I can make the example partly work by naively replacing the failing line with

self.timePoints = arange(*self.time.astype(float))

Other exceptions will still occur with this "fix" in place, though.

@smarnach
Copy link
Author

I just found out this was fixed by commit 78282cde.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant