Skip to content

Commit bb13877

Browse files
committed
Merge pull request #39 from keik/patch-2
Fix name of variables for image sizes correctly
2 parents e15fd1e + 0b5ed26 commit bb13877

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)