You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can run the demo of run_deep_highmpc as well as saving the animation perfectly.
However, I cannot save the animation with the file run_mpc.py after uncommenting the following lines:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-d4934ae49ad0> in <module>
21 writer = animation.writers["ffmpeg"]
22 writer = writer(fps=10, metadata=dict(artist='Me'), bitrate=1800)
---> 23 ani.save("MPC_0.mp4", writer=writer)
24
25 plt.tight_layout()
/usr/local/lib/python3.6/dist-packages/matplotlib/animation.py in save(self, filename, writer, fps, dpi, codec, bitrate, extra_args, metadata, extra_anim, savefig_kwargs, progress_callback)
1147 else:
1148 total_frames = sum(save_count_list)
-> 1149 for data in zip(*[a.new_saved_frame_seq() for a in all_anim]):
1150 for anim, d in zip(all_anim, data):
1151 # TODO: See if turning off blit is really necessary
/usr/local/lib/python3.6/dist-packages/matplotlib/animation.py in <listcomp>(.0)
1147 else:
1148 total_frames = sum(save_count_list)
-> 1149 for data in zip(*[a.new_saved_frame_seq() for a in all_anim]):
1150 for anim, d in zip(all_anim, data):
1151 # TODO: See if turning off blit is really necessary
/usr/local/lib/python3.6/dist-packages/matplotlib/animation.py in new_saved_frame_seq(self)
1704 else:
1705 if self.save_count is not None:
-> 1706 return itertools.islice(self.new_frame_seq(), self.save_count)
1707
1708 else:
TypeError: 'NoneType' object is not iterable
The text was updated successfully, but these errors were encountered:
I can run the demo of run_deep_highmpc as well as saving the animation perfectly.
However, I cannot save the animation with the file run_mpc.py after uncommenting the following lines:
The following error happened:
The text was updated successfully, but these errors were encountered: