Skip to content

Commit

Permalink
small correction and remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
ismael-mendoza committed Jul 13, 2024
1 parent 3baa47b commit 01ba79d
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions notebooks/02-advanced-plots.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@
"\n",
"# use psf size as minimum distance between peaks (in pixels).\n",
"min_distance = int(get_psf_size(survey))\n",
"sep = SepSingleBand(max_n_sources=max_n_sources, thresh=thresh, use_band=2, min_area=3)\n",
"sep = SepSingleBand(max_n_sources=max_n_sources, thresh=thresh, use_band=2, min_area=min_area)\n",
"scarlet = Scarlet(max_n_sources)\n",
"matcher = PixelHungarianMatcher(min_distance)\n"
]
Expand Down Expand Up @@ -640,7 +640,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Precision curves"
"## Recall curves"
]
},
{
Expand Down Expand Up @@ -1098,19 +1098,11 @@
}
],
"source": [
"from mpl_toolkits.axes_grid1 import make_axes_locatable\n",
"\n",
"\n",
"# pick a random index with a nice looking blend\n",
"idx = 75\n",
"# idx = np.random.randint(0, 100)\n",
"idx = np.random.randint(0, 100)\n",
"fig, ax = plt.subplots(1,1, figsize=(6,6))\n",
"crop = 30\n",
"im = ax.imshow(blend_batch.blend_images[idx,2, crop:-crop, crop:-crop])\n",
"# im = ax.imshow(blend_batch.blend_images[idx,2])\n",
"# divider = make_axes_locatable(ax)\n",
"# cax = divider.append_axes('right', size='5%', pad=0.05)\n",
"# fig.colorbar(im, cax=cax, orientation='vertical')\n",
"ax.set_axis_off()\n",
"\n",
"x = blend_batch.catalog_list[idx]['x_peak'] - crop\n",
Expand Down Expand Up @@ -1158,9 +1150,6 @@
" axes[0,ii].imshow(img1[ii][crop:-crop, crop:-crop], vmin=zmin, vmax=zmax)\n",
" axes[1,ii].imshow(img2[ii][crop:-crop, crop:-crop], vmin=zmin, vmax=zmax)\n",
"\n",
" # divider = make_axes_locatable(axes[0,ii])\n",
" # cax = divider.append_axes('right', size='5%', pad=0.05)\n",
" # fig.colorbar(im, cax=cax, orientation='vertical')\n",
"\n",
"plt.subplots_adjust(hspace=0.25)\n",
"plt.tight_layout()\n",
Expand Down

0 comments on commit 01ba79d

Please sign in to comment.