|
2561 | 2561 | "metadata": {}, |
2562 | 2562 | "outputs": [], |
2563 | 2563 | "source": [ |
2564 | | - "average_image,max_proj_image = (imaging.MotionCorrection.Summary & session_key & \"scan_id=0\" & \"field_idx=0\").fetch1(\n", |
2565 | | - " \"average_image\",\"max_proj_image\"\n", |
2566 | | - ")" |
| 2564 | + "average_image, max_proj_image = (\n", |
| 2565 | + " imaging.MotionCorrection.Summary & session_key & \"scan_id=0\" & \"field_idx=0\"\n", |
| 2566 | + ").fetch1(\"average_image\", \"max_proj_image\")" |
2567 | 2567 | ] |
2568 | 2568 | }, |
2569 | 2569 | { |
|
2607 | 2607 | "source": [ |
2608 | 2608 | "mask_xpix, mask_ypix = (\n", |
2609 | 2609 | " imaging.Segmentation.Mask * imaging.MaskClassification.MaskType\n", |
2610 | | - " & session_key \n", |
2611 | | - " & \"scan_id=0\" \n", |
| 2610 | + " & session_key\n", |
| 2611 | + " & \"scan_id=0\"\n", |
2612 | 2612 | " & \"mask_center_z=0\"\n", |
2613 | 2613 | " & \"mask_npix > 130\"\n", |
2614 | 2614 | " & \"confidence >= 0.5\"\n", |
|
2632 | 2632 | } |
2633 | 2633 | ], |
2634 | 2634 | "source": [ |
2635 | | - "#Plotting\n", |
| 2635 | + "# Plotting\n", |
2636 | 2636 | "fig = plt.figure(figsize=(6, 4))\n", |
2637 | | - "plt.imshow(average_image,cmap='binary')\n", |
| 2637 | + "plt.imshow(average_image, cmap=\"binary\")\n", |
2638 | 2638 | "for i in range(len(mask_xpix)):\n", |
2639 | 2639 | " plt.scatter(mask_xpix[i], mask_ypix[i], s=1, alpha=0.02)\n", |
2640 | 2640 | "plt.tight_layout()\n", |
|
2650 | 2650 | }, |
2651 | 2651 | { |
2652 | 2652 | "cell_type": "code", |
2653 | | - "execution_count": 6, |
| 2653 | + "execution_count": 9, |
2654 | 2654 | "metadata": {}, |
2655 | 2655 | "outputs": [], |
2656 | 2656 | "source": [ |
|
2659 | 2659 | }, |
2660 | 2660 | { |
2661 | 2661 | "cell_type": "code", |
2662 | | - "execution_count": 7, |
| 2662 | + "execution_count": 10, |
2663 | 2663 | "metadata": {}, |
2664 | 2664 | "outputs": [ |
2665 | 2665 | { |
2666 | 2666 | "data": { |
2667 | 2667 | "application/vnd.jupyter.widget-view+json": { |
2668 | | - "model_id": "0d7a3504f21b41789c55914fc48f8bec", |
| 2668 | + "model_id": "188a4a1b0e6f407ead9940ca4c77bf6b", |
2669 | 2669 | "version_major": 2, |
2670 | 2670 | "version_minor": 0 |
2671 | 2671 | }, |
2672 | 2672 | "text/plain": [ |
2673 | 2673 | "VBox(children=(HBox(children=(Dropdown(description='Result:', layout=Layout(display='flex', flex_flow='row', g…" |
2674 | 2674 | ] |
2675 | 2675 | }, |
2676 | | - "execution_count": 7, |
| 2676 | + "execution_count": 10, |
2677 | 2677 | "metadata": {}, |
2678 | 2678 | "output_type": "execute_result" |
2679 | 2679 | } |
|
0 commit comments