From 3fac0f2c42129965d59c47a7186d967622bda781 Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Tue, 15 Jun 2021 16:25:07 +0200 Subject: [PATCH] Rename function `make_animation` to `anim_eddies` `make_animation` seems too general, the reader may think it is an object of Matplotlib. --- Inst_eddies/Analysis/anim_eddy_contours.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Inst_eddies/Analysis/anim_eddy_contours.py b/Inst_eddies/Analysis/anim_eddy_contours.py index dc34fff7..117d9887 100755 --- a/Inst_eddies/Analysis/anim_eddy_contours.py +++ b/Inst_eddies/Analysis/anim_eddy_contours.py @@ -33,8 +33,8 @@ def func(d, ax, ishape_lists, readers, bbox, light): ax.coastlines() ax.set_title(f"d = {d}", y = 1.05) -def make_animation(fig, ax, d_init, ishape_last, readers, window, d_min, d_max, - light): +def anim_eddies(fig, ax, d_init, ishape_last, readers, window, d_min, d_max, + light): ishape_lists = {d: plot_eddy_contours.select_ishapes(d, d_init, ishape_last, readers["extremum"], window) @@ -86,9 +86,9 @@ if __name__ == "__main__": fig = plt.figure() projection = ccrs.PlateCarree() ax = plt.axes(projection = projection) - ani = make_animation(fig, ax, d_init, ishape_last, readers, - window = args.window, d_min = args.d_min, - d_max = args.d_max, light = args.light) + ani = anim_eddies(fig, ax, d_init, ishape_last, readers, + window = args.window, d_min = args.d_min, + d_max = args.d_max, light = args.light) ani.save("eddy_contours.gif", writer = "imagemagick") pygifsicle.gifsicle("eddy_contours.gif", options = ["--no-loopcount"]) -- GitLab