Closed kitchoi closed 8 years ago
Mayavi 4.4.4 is required in order to use the save/load_visualization
functionality in Mayavi2 or with mlab
.
Although the tests passed, they passed because Mayavi's NullEngine is used.
If the Mayavi2's EnvisageEngine
or the mlab
's mayavi.core.engine.Engine
is used, load_visualization
failed with the following errors.
The following errors do not occur for the master branch of Mayavi.
File "/home/kit/mayavi-test/mayavi/mayavi/plugins/script.py", line 90, in load_visualization
self.engine.load_visualization(fname)
File "/home/kit/simphony/local/lib/python2.7/site-packages/apptools/scripting/recordable.py", line 45, in _wrapper
result = func(*args, **kw)
File "/home/kit/mayavi-test/mayavi/mayavi/core/engine.py", line 284, in load_visualization
state = state_pickler.load_state(file_or_fname)
File "/home/kit/simphony/local/lib/python2.7/site-packages/apptools/persistence/state_pickler.py", line 931, in load_state
state = StateUnpickler().load_state(f)
File "/home/kit/simphony/local/lib/python2.7/site-packages/apptools/persistence/state_pickler.py", line 508, in load_state
result = self._process(data)
File "/home/kit/simphony/local/lib/python2.7/site-packages/apptools/persistence/state_pickler.py", line 552, in _process
exec('result%s = x'%path)
File "<string>", line 1, in <module>
TypeError: 'StateTuple' object does not support item assignment
@dpinte, @itziakos please review. Thanks.
Fix #85