diff --git a/notebooks/ACS/acs_focus_diverse_epsfs/acs_focus_diverse_epsfs.ipynb b/notebooks/ACS/acs_focus_diverse_epsfs/acs_focus_diverse_epsfs.ipynb index 3b23c44b1..b9c2a878c 100644 --- a/notebooks/ACS/acs_focus_diverse_epsfs/acs_focus_diverse_epsfs.ipynb +++ b/notebooks/ACS/acs_focus_diverse_epsfs/acs_focus_diverse_epsfs.ipynb @@ -40,7 +40,7 @@ "import matplotlib.colors as colors\n", "import matplotlib.pyplot as plt\n", "\n", - "# import the focus_diverse_psfs functions from acstools \n", + "# import the focus_diverse_psfs functions from acstools\n", "from acstools.focus_diverse_epsfs import psf_retriever, multi_psf_retriever, interp_epsf" ] }, @@ -57,7 +57,7 @@ "id": "c5ce3a38", "metadata": {}, "source": [ - "Let's begin with downloading the focus-diverse ePSF FITS file that matches a single observation of our choosing. For this example, we will aim to retrieve the ePSF file for the observation rootname \"jds408jsq\", from GO-15445 (PI W. Keel). \n", + "Let's begin with downloading the focus-diverse ePSF FITS file that matches a single observation of our choosing. For this example, we will aim to retrieve the ePSF file for the observation rootname \"jds408jsq\", from GO-15445 (PI W. Keel).\n", "\n", "Please note that only IPPPSSOOT formats will work (e.g. jds408jsq), and the tool does not support inputs in the form of association IDs or product names (e.g. jds408010 or jds408011).\n", "\n", @@ -140,7 +140,7 @@ "\n", "# open the file with astropy.io\n", "with fits.open(retrieved_filepath) as hdu:\n", - " hdu.info() # Display basic information about the file" + " hdu.info() # Display basic information about the file" ] }, { @@ -165,11 +165,12 @@ "\n", "\n", "def show_ePSF(grid_index):\n", - " plt.imshow(ePSFs[grid_index], cmap='viridis', norm=colors.LogNorm(vmin=1e-4), origin='lower')\n", + " plt.imshow(ePSFs[grid_index], cmap='viridis',\n", + " norm=colors.LogNorm(vmin=1e-4), origin='lower')\n", " cbar = plt.colorbar()\n", " cbar.set_label('Fractional Energy')\n", - " \n", - " \n", + "\n", + "\n", "widgets.interact(show_ePSF, grid_index=(0, 89, 1))" ] }, @@ -277,7 +278,7 @@ "outputs": [], "source": [ "# # use astroquery to grab ACS/WFC observations from GO-13376 (PI K. McQuinn)\n", - "obsTable = Observations.query_criteria(obs_collection='HST', proposal_id=\"13376\", \n", + "obsTable = Observations.query_criteria(obs_collection='HST', proposal_id=\"13376\",\n", " instrument_name=\"ACS/WFC\", provenance_name=\"CALACS\")\n", "\n", "# retrieve the data products for the above observations\n", @@ -400,7 +401,7 @@ "source": [ "# # get interpolated ePSF in detector space with specified sub-pixel shifts\n", "P = interp_epsf(ePSFs, x, y, chip,\n", - " pixel_space=True, \n", + " pixel_space=True,\n", " subpixel_x=0.77, subpixel_y=0.33)\n", "\n", "plt.imshow(P, cmap='viridis', norm=colors.LogNorm(vmin=1e-4), origin='lower')\n",