>>>>> "Luis" == Luis Armendariz <[EMAIL PROTECTED]> writes:
Luis> When saving a visualization in mayavi2, I get the following
Luis> exception after I've added an instance of the Text module:
Luis> Exception In
Luis>
/home/luis/usr/lib/python2.4/site-packages/enthought.traits-2.0b2.dev_r12688-py2.4-linux-i686.egg/enthought/traits/trait_handlers.py:177
Luis> TraitError: The 'y_position' trait of a Text instance must
Luis> be 0.0 <= a floating point number <= 1.0, but a value of
Luis> None was specified. (in error)
Luis> I looked at the class enthought.mayavi.modules.text.Text but
Luis> I don't see any obvious fix. Is there a way to make sure
Luis> that the x_position and y_position Range traits get pickled
Luis> properly?
This was a problem with the enthought.persistence.state_pickler
module. It was not handling numpy.float32 (or similar) objects and
was pickling those values as None. I've fixed this (and tested for
it) in a new maintenance branch of enthought.persistence in the
branches:
https://svn.enthought.com/enthought/browser/branches
The fix is a trivial 2 line patch.
https://svn.enthought.com/enthought/changeset/14006
So you can either get the branches and install the new version or
apply the patch to your install.
cheers,
prabhu
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users