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

Polish

Preparing for extraction of selection task into a function.
parent 4afc2af0
No related branches found
No related tags found
No related merge requests found
...@@ -33,13 +33,13 @@ def snapshot(k, ax, k1, ishape_last, reader_extr, reader_outer, ...@@ -33,13 +33,13 @@ def snapshot(k, ax, k1, ishape_last, reader_extr, reader_outer,
dashed: boolean.""" dashed: boolean."""
assert k >= k1
if k == k1: if k == k1:
ishape_first = 0 ishape_first = 0
elif k > k1:
ishape_first = ishape_last[k - k1 - 1] + 1
else: else:
print("bad k value") # k > k1
return ishape_first = ishape_last[k - k1 - 1] + 1
ax.set_title(f"k = {k}", y = 1.05) ax.set_title(f"k = {k}", y = 1.05)
......
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