Skip to content

Commit

Permalink
Merge pull request #45 from m-albert/20230913_dask_course_update
Browse files Browse the repository at this point in the history
Updated README and added intro slides
  • Loading branch information
m-albert authored Sep 13, 2023
2 parents 1c2dff2 + 11d9a18 commit 65a36ca
Show file tree
Hide file tree
Showing 7 changed files with 8,475 additions and 95 deletions.
19 changes: 14 additions & 5 deletions docs/80_image_analysis_with_dask/1_dask_basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,16 @@
"metadata": {},
"outputs": [],
"source": [
"delayed_result.compute()"
"a = delayed_result.compute()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"print(a)"
]
},
{
Expand Down Expand Up @@ -365,7 +374,7 @@
"# single-machine scheduler:\n",
"\n",
"da.ones((10, 10)).compute(scheduler='single-threaded')\n",
"da.ones((10, 10)).compute(scheduler='threads')\n",
"da.ones((10, 10)).compute(scheduler='threads') # default\n",
"da.ones((10, 10)).compute(scheduler='processes')"
]
},
Expand Down Expand Up @@ -448,7 +457,7 @@
"source": [
"# the data is available as a zarr array\n",
"\n",
"im_zarr[:5, :5]"
"im_zarr * 2"
]
},
{
Expand Down Expand Up @@ -504,7 +513,7 @@
"\n",
"# Perform an operation using the zarr array\n",
"\n",
"(im_zarr[:] ** 2).sum()"
"(np.array(im_zarr) ** 2).sum()"
]
},
{
Expand Down Expand Up @@ -694,7 +703,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.10.12"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Loading

0 comments on commit 65a36ca

Please sign in to comment.