Skip to content

Commit 0b5ed26

Browse files
committed
Fix name of variables for image sizes correctly
1 parent e15fd1e commit 0b5ed26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebooks/chapter03_notebook/01_blocks.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@
204204
},
205205
"outputs": [],
206206
"source": [
207-
"rows, cols = imdata.size\n",
208-
"grid = BlockGrid(width=rows, height=cols,\n",
207+
"width, height = imdata.size\n",
208+
"grid = BlockGrid(width=width, height=height,\n",
209209
" block_size=4, lines_on=False)\n",
210210
"for block, rgb in zip(grid, imdata):\n",
211211
" block.rgb = rgb\n",

0 commit comments

Comments
 (0)