def animate(self, filename='<STR_LIT>', epochs=[<NUM_LIT>,<NUM_LIT>], dt=<NUM_LIT:5>, dpi=<NUM_LIT>, fps=<NUM_LIT:10>, **kw):
scatter = self.finder(**kw)<EOL>plt.tight_layout()<EOL>figure = plt.gcf()<EOL>if '<STR_LIT>' in filename:<EOL><INDENT>try:<EOL><INDENT>writer = ani.writers['<STR_LIT>'](fps=fps)<EOL><DEDENT>except (RuntimeError, KeyError):<EOL><INDENT>writer = ani.writers['<STR_LIT>'](fps=fps)<EOL><DEDENT>except:<EOL><INDENT>raise RuntimeError('<STR_LIT>')<EOL><DEDENT><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>writer = ani.writers['<STR_LIT>'](fps=fps)<EOL><DEDENT>except (RuntimeError,KeyError):<EOL><INDENT>raise RuntimeError('<STR_LIT>')<EOL><DEDENT><DEDENT>with writer.saving(figure, filename, dpi or figure.get_dpi()):<EOL><INDENT>for epoch in tqdm(np.arange(epochs[<NUM_LIT:0>], epochs[<NUM_LIT:1>]+dt, dt)):<EOL><INDENT>coords = self.atEpoch(epoch)<EOL>scatter.set_offsets(list(zip(coords.ra.value, coords.dec.value)))<EOL>plt.title('<STR_LIT>'.format(self.name, epoch))<EOL>writer.grab_frame()<EOL><DEDENT><DEDENT>
Animate a finder chart.