Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MilagrosMarin committed Jun 19, 2024
1 parent fb0aa2c commit 364fa19
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions notebooks/tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\")"
]
},
{
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -2650,7 +2650,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -2659,21 +2659,21 @@
},
{
"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
},
"text/plain": [
"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"
}
Expand Down

0 comments on commit 364fa19

Please sign in to comment.