From 4b4c9b26c3bdef493b1964a0723de5bf3e30bf86 Mon Sep 17 00:00:00 2001 From: David Shupe Date: Mon, 13 Aug 2018 15:39:15 +0000 Subject: [PATCH] patch comments from @paulprice on original PR --- Basics/Calexp_guided_tour.ipynb | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Basics/Calexp_guided_tour.ipynb b/Basics/Calexp_guided_tour.ipynb index dc7f37d5..98a95e41 100644 --- a/Basics/Calexp_guided_tour.ipynb +++ b/Basics/Calexp_guided_tour.ipynb @@ -460,7 +460,7 @@ "bbox = afwGeom.Box2I()\n", "bbox.include(afwGeom.Point2I(2200,3200))\n", "bbox.include(afwGeom.Point2I(2800,3800))\n", - "cutout = calexp.Factory(calexp, bbox, afwImage.LOCAL)" + "cutout = calexp[bbox]" ] }, { @@ -510,7 +510,7 @@ "metadata": {}, "outputs": [], "source": [ - "cutout_calexp = butler.get('calexp_sub', bbox=bbox, immediate=True, dataId=dataId)\n", + "cutout_calexp = butler.get('calexp_sub', bbox=bbox, dataId=dataId)\n", "cutout_calexp.getDimensions()" ] }, @@ -654,7 +654,16 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "The result of the `set` command above shows that a calexp and a coadd have the same methods." + "The result of the `set` command above shows that a calexp and a coadd have the same methods. This is expected, because they are the same class." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "print(calexp.__class__, coadd.__class__)" ] }, {