[yt-dev] Issue #860: One of the animation recipes in the docs build raises the following error: (yt_analysis/yt)
Nathan Goldbaum
issues-reply at bitbucket.org
Fri Jul 18 22:15:35 PDT 2014
New issue 860: One of the animation recipes in the docs build raises the following error:
https://bitbucket.org/yt_analysis/yt/issue/860/one-of-the-animation-recipes-in-the-docs
Nathan Goldbaum:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-4-e3b9f89be543> in <module>()
12
13 # call the animator. blit=True means only re-draw the parts that have changed.
---> 14 anim = animation.FuncAnimation(fig, animate, frames=44, interval=200, blit=False)
15
16 # call our new function to display the animation
/home/xarth/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.3.0-py2.7-linux-x86_64.egg/matplotlib/animation.pyc in __init__(self, fig, func, frames, init_func, fargs, save_count, **kwargs)
1008 self._save_seq = []
1009
-> 1010 TimedAnimation.__init__(self, fig, **kwargs)
1011
1012 # Need to reset the saved seq, since right now it will contain data
/home/xarth/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.3.0-py2.7-linux-x86_64.egg/matplotlib/animation.pyc in __init__(self, fig, interval, repeat_delay, repeat, event_source, *args, **kwargs)
862
863 Animation.__init__(self, fig, event_source=event_source,
--> 864 *args, **kwargs)
865
866 def _step(self, *args):
/home/xarth/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.3.0-py2.7-linux-x86_64.egg/matplotlib/animation.pyc in __init__(self, fig, event_source, blit)
543
544 # Clear the initial frame
--> 545 self._init_draw()
546
547 # Instead of starting the event source now, we connect to the figure's
/home/xarth/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.3.0-py2.7-linux-x86_64.egg/matplotlib/animation.pyc in _init_draw(self)
1033 # artists.
1034 if self._init_func is None:
-> 1035 self._draw_frame(next(self.new_frame_seq()))
1036 else:
1037 self._drawn_artists = self._init_func()
/home/xarth/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.3.0-py2.7-linux-x86_64.egg/matplotlib/animation.pyc in _draw_frame(self, framedata)
1047 # Call the func with framedata and args. If blitting is desired,
1048 # func needs to return a sequence of any artists that were modified.
-> 1049 self._drawn_artists = self._func(framedata, *self._args)
<ipython-input-4-e3b9f89be543> in animate(i)
9 def animate(i):
10 ds = load('Enzo_64/DD%04i/data%04i' % (i,i))
---> 11 prj._switch_ds(ds)
12
13 # call the animator. blit=True means only re-draw the parts that have changed.
/var/lib/jenkins/jobs/yt-docs-3.0/workspace/yt/visualization/plot_container.pyc in _switch_ds(self, new_ds, data_source)
282 self._data_valid = self._plot_valid = False
283 self._recreate_frb()
--> 284 self._setup_plots()
285
286 def __getitem__(self, item):
/var/lib/jenkins/jobs/yt-docs-3.0/workspace/yt/visualization/plot_window.pyc in _setup_plots(self)
844 hinv = False
845 for i, un in enumerate((unit_x, unit_y)):
--> 846 if hasattr(self.ds.coordinates, "default_unit_label"):
847 axax = getattr(self.ds.coordinates, "%s_axis" % ("xy"[i]))[axis_index]
848 un = self.ds.coordinates.default_unit_label[axax]
AttributeError: 'YTQuadTreeProj' object has no attribute 'coordinates'
Responsible: ngoldbaum
More information about the yt-dev
mailing list