diff --git a/notebooks/ImvizExample.ipynb b/notebooks/ImvizExample.ipynb index 1841efb1bd..33d02c273a 100644 --- a/notebooks/ImvizExample.ipynb +++ b/notebooks/ImvizExample.ipynb @@ -144,9 +144,7 @@ "cell_type": "code", "execution_count": null, "id": "229d64f3-843f-4a7f-ac98-989f2a95d4c1", - "metadata": { - "scrolled": false - }, + "metadata": {}, "outputs": [], "source": [ "imviz.show()" @@ -386,21 +384,7 @@ "my_reg = CirclePixelRegion(center=PixCoord(x=1526, y=1063), radius=40)\n", "my_reg_sky = CircleSkyRegion(c, Angle(2, u.arcsec))\n", "\n", - "# Numpy mask\n", - "idx = (np.array([350, 350, 350, 350, 350, 350, 351, 351, 351, 351, 352, 352, 352,\n", - " 352, 352, 352, 352, 352, 352, 352, 353, 353, 353, 353, 353, 353,\n", - " 353, 353, 353, 353, 353, 353, 354, 354, 354, 354, 354, 354, 354,\n", - " 354, 355, 355, 355, 355, 355, 355, 355, 355, 356, 356, 356, 356,\n", - " 356, 356, 356, 357, 357, 358, 358]),\n", - " np.array([353, 354, 355, 356, 357, 358, 350, 352, 359, 361, 350, 352, 353,\n", - " 354, 355, 356, 357, 358, 359, 361, 350, 351, 352, 353, 354, 355,\n", - " 356, 357, 358, 359, 360, 361, 351, 352, 354, 355, 356, 357, 359,\n", - " 360, 352, 353, 354, 355, 356, 357, 358, 359, 352, 353, 354, 355,\n", - " 356, 357, 358, 353, 358, 352, 359]))\n", - "my_mask = np.zeros(data.data.shape, dtype=np.bool_)\n", - "my_mask[idx] = True\n", - "\n", - "my_regions = [my_aper, my_aper_sky, my_reg, my_reg_sky, my_mask]\n", + "my_regions = [my_aper, my_aper_sky, my_reg, my_reg_sky]\n", "imviz.load_regions(my_regions)" ] }, @@ -728,7 +712,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.10" + "version": "3.11.0" } }, "nbformat": 4,