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

Remove intermediary variable `readers_all`

parent aca0f062
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,6 @@ def anim_eddies(fig, ax, handlers, window, d_min, d_max, light):
"""handlers is a list."""
ishape_lists_all = []
readers_all = []
for handler in handlers:
ishape_lists = {d:
......@@ -54,13 +53,13 @@ def anim_eddies(fig, ax, handlers, window, d_min, d_max, light):
window)
for d in range(d_min, d_max + 1)}
ishape_lists_all.append(ishape_lists)
readers_all.append(handler["readers"])
if window is None:
bbox = None
for readers, ishape_lists in zip(readers_all, ishape_lists_all):
b2 = compute_bbox(ishape_lists, readers["outermost_contour"])
for handler, ishape_lists in zip(handlers, ishape_lists_all):
b2 = compute_bbox(ishape_lists,
handler["readers"]["outermost_contour"])
bbox = bbox_union(bbox, b2)
else:
bbox = window
......
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