Skip to content

Commit a502e34

Browse files
author
Marco Dalla Vecchia
committed
fixed some mistyped comments along the code
1 parent b97fc97 commit a502e34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

episodes/fig/source/06-blurring/create_blur_animation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def update(frame):
105105
all_frames = [img_convolved]
106106

107107
# precompute animation frames and append to the list
108-
total_frames = (img_pad.shape[0] - kernel_size + 1) * (img_pad.shape[1] - kernel_size + 1) # total frames if by change image is not squared
108+
total_frames = (img_pad.shape[0] - kernel_size + 1) * (img_pad.shape[1] - kernel_size + 1) # total frames if by chance image is not squared
109109
for frame in range(total_frames):
110110
row = (frame % total_frames) // (img_pad.shape[0] - kernel_size + 1) # row index
111111
col = (frame % total_frames) % (img_pad.shape[1] - kernel_size + 1) # col index
@@ -132,7 +132,7 @@ def update(frame):
132132
ax1.add_patch(k_rect)
133133
ax1.add_patch(c_rect1)
134134

135-
# Fix limits to the right image (without padding) is the same size as the left image (with padding)
135+
# Fix limits of the right image (without padding) so that it is the same size as the left image (with padding)
136136
ax2.set(
137137
ylim=((img_pad.shape[0] - kernel_size / 2), -kernel_size / 2),
138138
xlim=(-kernel_size / 2, (img_pad.shape[1] - kernel_size / 2))

0 commit comments

Comments
 (0)