diff --git a/notebooks/tutorial.ipynb b/notebooks/tutorial.ipynb index a48adf72..01d95d29 100644 --- a/notebooks/tutorial.ipynb +++ b/notebooks/tutorial.ipynb @@ -2561,9 +2561,9 @@ "metadata": {}, "outputs": [], "source": [ - "average_image,max_proj_image = (imaging.MotionCorrection.Summary & session_key & \"scan_id=0\" & \"field_idx=0\").fetch1(\n", - " \"average_image\",\"max_proj_image\"\n", - ")" + "average_image, max_proj_image = (\n", + " imaging.MotionCorrection.Summary & session_key & \"scan_id=0\" & \"field_idx=0\"\n", + ").fetch1(\"average_image\", \"max_proj_image\")" ] }, { @@ -2607,8 +2607,8 @@ "source": [ "mask_xpix, mask_ypix = (\n", " imaging.Segmentation.Mask * imaging.MaskClassification.MaskType\n", - " & session_key \n", - " & \"scan_id=0\" \n", + " & session_key\n", + " & \"scan_id=0\"\n", " & \"mask_center_z=0\"\n", " & \"mask_npix > 130\"\n", " & \"confidence >= 0.5\"\n", @@ -2632,9 +2632,9 @@ } ], "source": [ - "#Plotting\n", + "# Plotting\n", "fig = plt.figure(figsize=(6, 4))\n", - "plt.imshow(average_image,cmap='binary')\n", + "plt.imshow(average_image, cmap=\"binary\")\n", "for i in range(len(mask_xpix)):\n", " plt.scatter(mask_xpix[i], mask_ypix[i], s=1, alpha=0.02)\n", "plt.tight_layout()\n", @@ -2650,7 +2650,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 9, "metadata": {}, "outputs": [], "source": [ @@ -2659,13 +2659,13 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "0d7a3504f21b41789c55914fc48f8bec", + "model_id": "188a4a1b0e6f407ead9940ca4c77bf6b", "version_major": 2, "version_minor": 0 }, @@ -2673,7 +2673,7 @@ "VBox(children=(HBox(children=(Dropdown(description='Result:', layout=Layout(display='flex', flex_flow='row', g…" ] }, - "execution_count": 7, + "execution_count": 10, "metadata": {}, "output_type": "execute_result" }