Skip to content
Snippets Groups Projects
Commit 3e3008b2 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Check the values of argument anim

parent fdd8a7ea
No related branches found
No related tags found
No related merge requests found
......@@ -325,6 +325,9 @@ if __name__ == "__main__":
else:
plt.show()
else:
if not k1 <= args.anim[0] < args.anim[1] <= k1 + len(ishape_last) - 1:
sys.exit("Bad dates specified in option anim")
ani = make_animation(fig, ax, k1, ishape_last, readers,
window = args.window, k_min = args.anim[0],
k_max = args.anim[1], light = args.light)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment