From 852a3f27eac99c6059d9984d6dace3af25010c88 Mon Sep 17 00:00:00 2001 From: Lauren Chambers Date: Wed, 31 Jul 2019 10:22:15 -0400 Subject: [PATCH] More fixes --- .../01_background_estimation.ipynb | 2 +- .../03_aperture_photometry.ipynb | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/notebooks/photutils/01_background_estimation/01_background_estimation.ipynb b/notebooks/photutils/01_background_estimation/01_background_estimation.ipynb index 5037a5c1..f39076cc 100644 --- a/notebooks/photutils/01_background_estimation/01_background_estimation.ipynb +++ b/notebooks/photutils/01_background_estimation/01_background_estimation.ipynb @@ -239,7 +239,7 @@ "source": [ "You probably noticed that a large portion of the data is equal to zero. The data we are using is a reduced mosaic that combines many different exposures, and that has been rotated such that not all of the array holds data. \n", "\n", - "We want to **mask** out the non-data portions of the image array,, so all of those pixels that have a value of zero don't interfere with our statistics and analyses of the data." + "We want to **mask** out the non-data portions of the image array, so all of those pixels that have a value of zero don't interfere with our statistics and analyses of the data." ] }, { diff --git a/notebooks/photutils/03_aperture_photometry/03_aperture_photometry.ipynb b/notebooks/photutils/03_aperture_photometry/03_aperture_photometry.ipynb index e430a215..3a27a501 100644 --- a/notebooks/photutils/03_aperture_photometry/03_aperture_photometry.ipynb +++ b/notebooks/photutils/03_aperture_photometry/03_aperture_photometry.ipynb @@ -301,7 +301,7 @@ " rotation=270, labelpad=30)\n", "ax1.set_xlabel('X (pixels)')\n", "ax1.set_ylabel('Y (pixels)')\n", - "ax1.set_title('find\\_peaks Sources')" + "ax1.set_title('find_peaks Sources')" ] }, { @@ -661,11 +661,11 @@ "source": [ "# The CCDData mask will be automatically applied\n", "phot_table = aperture_photometry(xdf_image, elliptical_apertures[0])\n", - "id = 1\n", + "idx = 1\n", "for aperture in elliptical_apertures[1:]:\n", - " id += 1\n", + " idx += 1\n", " phot_row = aperture_photometry(xdf_image, aperture)[0]\n", - " phot_row[0] = id\n", + " phot_row[0] = idx\n", " phot_table.add_row(phot_row)" ] }, @@ -728,7 +728,7 @@ "plt.xscale('log')\n", "plt.title('Count Rate v. Aperture Area')\n", "plt.xlabel('Aperture Area [pixels$^2$]')\n", - "plt.xlabel(r'Flux Count Rate ({})'.format(xdf_image.unit.to_string('latex')))" + "plt.ylabel(r'Flux Count Rate ({})'.format(xdf_image.unit.to_string('latex')))" ] }, { @@ -845,11 +845,11 @@ "source": [ "# The CCDData mask will be automatically applied\n", "bkg_phot_table = aperture_photometry(xdf_image, elliptical_annuli[0])\n", - "id = 1\n", + "idx = 1\n", "for aperture in elliptical_annuli[1:]:\n", - " id += 1\n", + " idx += 1\n", " phot_row = aperture_photometry(xdf_image, aperture)[0]\n", - " phot_row[0] = id\n", + " phot_row[0] = idx\n", " bkg_phot_table.add_row(phot_row)" ] },