From a96e3d66037d2558bb861c5c3620cfe8c38ea425 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 27 Sep 2024 17:37:17 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tutorials/FITS-cubes/FITS-cubes.ipynb | 33 +---- tutorials/FITS-header/FITS-header.ipynb | 26 +--- tutorials/FITS-images/FITS-images.ipynb | 30 +--- tutorials/FITS-tables/FITS-tables.ipynb | 30 +--- .../Models-Quick-Fit/Models-Quick-Fit.ipynb | 32 +---- .../1-SpectroscopicTraceTutorial.ipynb | 31 +--- .../2-WavelengthCalibration.ipynb | 31 +--- ...Extract_Wavelength-CalibrateSpectrum.ipynb | 33 +---- tutorials/UVES/UVES.ipynb | 30 +--- .../User-Defined-Model.ipynb | 31 +--- .../1-Coordinates-Intro.ipynb | 31 +--- .../2-Coordinates-Transforms.ipynb | 31 +--- .../3-Coordinates-Velocities.ipynb | 31 +--- .../4-Coordinates-Crossmatch.ipynb | 31 +--- tutorials/color-excess/color-excess.ipynb | 21 +-- .../gaia-galactic-orbits.ipynb | 33 +---- tutorials/plot-catalog/plot-catalog.ipynb | 30 +--- .../PVDiagramPlotting.ipynb | 118 +++++++-------- tutorials/quantities/quantities.ipynb | 30 +--- tutorials/redshift-plot/redshift-plot.ipynb | 29 +--- .../SpectralCubeReprojectExample.ipynb | 134 ++++++++---------- .../synthetic-images/synthetic-images.ipynb | 30 +--- .../units-and-integration.ipynb | 29 +--- tutorials/vo/conesearch.ipynb | 31 +--- .../celestial_coords1.ipynb | 29 +--- 25 files changed, 216 insertions(+), 729 deletions(-) diff --git a/tutorials/FITS-cubes/FITS-cubes.ipynb b/tutorials/FITS-cubes/FITS-cubes.ipynb index 3cd43b45..fdd8831d 100755 --- a/tutorials/FITS-cubes/FITS-cubes.ipynb +++ b/tutorials/FITS-cubes/FITS-cubes.ipynb @@ -2,24 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "astroquery\n", - "matplotlib\n", - "numpy\n", - "reproject\n", - "spectral_cube\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -850,22 +835,14 @@ } ], "metadata": { - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/FITS-header/FITS-header.ipynb b/tutorials/FITS-header/FITS-header.ipynb index e65b1804..0d921675 100755 --- a/tutorials/FITS-header/FITS-header.ipynb +++ b/tutorials/FITS-header/FITS-header.ipynb @@ -2,19 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "\n" - ] - } - ], + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -262,22 +252,14 @@ "name": "", "published": true }, - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/FITS-images/FITS-images.ipynb b/tutorials/FITS-images/FITS-images.ipynb index b1551461..b7c28130 100755 --- a/tutorials/FITS-images/FITS-images.ipynb +++ b/tutorials/FITS-images/FITS-images.ipynb @@ -2,21 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 3, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Requirements for running this notebook:\n", - "astropy\n", - "matplotlib\n", - "numpy\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -654,22 +642,14 @@ "name": "", "published": true }, - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/FITS-tables/FITS-tables.ipynb b/tutorials/FITS-tables/FITS-tables.ipynb index a3d7627d..7fac5693 100755 --- a/tutorials/FITS-tables/FITS-tables.ipynb +++ b/tutorials/FITS-tables/FITS-tables.ipynb @@ -2,21 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "matplotlib\n", - "numpy\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -372,22 +360,14 @@ "name": "", "published": true }, - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/Models-Quick-Fit/Models-Quick-Fit.ipynb b/tutorials/Models-Quick-Fit/Models-Quick-Fit.ipynb index 8f3e98b0..3bc5da96 100755 --- a/tutorials/Models-Quick-Fit/Models-Quick-Fit.ipynb +++ b/tutorials/Models-Quick-Fit/Models-Quick-Fit.ipynb @@ -2,23 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "astroquery\n", - "matplotlib\n", - "numpy\n", - "scipy\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -790,22 +776,14 @@ } ], "metadata": { - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/SpectroscopicDataReductionBasics/1-SpectroscopicTraceTutorial.ipynb b/tutorials/SpectroscopicDataReductionBasics/1-SpectroscopicTraceTutorial.ipynb index 697732a9..3de98d02 100755 --- a/tutorials/SpectroscopicDataReductionBasics/1-SpectroscopicTraceTutorial.ipynb +++ b/tutorials/SpectroscopicDataReductionBasics/1-SpectroscopicTraceTutorial.ipynb @@ -2,24 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "astroquery\n", - "IPython\n", - "numpy\n", - "PIL\n", - "pylab\n", - "\n" - ] - } - ], + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -1180,22 +1165,14 @@ } ], "metadata": { - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" }, "rise": { "transition": "none" diff --git a/tutorials/SpectroscopicDataReductionBasics/2-WavelengthCalibration.ipynb b/tutorials/SpectroscopicDataReductionBasics/2-WavelengthCalibration.ipynb index 323d1103..2f9d374e 100755 --- a/tutorials/SpectroscopicDataReductionBasics/2-WavelengthCalibration.ipynb +++ b/tutorials/SpectroscopicDataReductionBasics/2-WavelengthCalibration.ipynb @@ -2,24 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "astroquery\n", - "IPython\n", - "numpy\n", - "PIL\n", - "pylab\n", - "\n" - ] - } - ], + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -1732,22 +1717,14 @@ ], "metadata": { "celltoolbar": "Slideshow", - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" }, "rise": { "transition": "none" diff --git a/tutorials/SpectroscopicDataReductionBasics/3-Trace_Extract_Wavelength-CalibrateSpectrum.ipynb b/tutorials/SpectroscopicDataReductionBasics/3-Trace_Extract_Wavelength-CalibrateSpectrum.ipynb index 9cd9f3ea..9a4a669c 100755 --- a/tutorials/SpectroscopicDataReductionBasics/3-Trace_Extract_Wavelength-CalibrateSpectrum.ipynb +++ b/tutorials/SpectroscopicDataReductionBasics/3-Trace_Extract_Wavelength-CalibrateSpectrum.ipynb @@ -2,24 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "astroquery\n", - "IPython\n", - "numpy\n", - "PIL\n", - "pylab\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -423,22 +408,14 @@ } ], "metadata": { - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/UVES/UVES.ipynb b/tutorials/UVES/UVES.ipynb index bc9a5b20..0f352735 100644 --- a/tutorials/UVES/UVES.ipynb +++ b/tutorials/UVES/UVES.ipynb @@ -2,21 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "matplotlib\n", - "numpy\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -1349,22 +1337,14 @@ "name": "", "published": true }, - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/User-Defined-Model/User-Defined-Model.ipynb b/tutorials/User-Defined-Model/User-Defined-Model.ipynb index 4a316231..a25cdfd0 100644 --- a/tutorials/User-Defined-Model/User-Defined-Model.ipynb +++ b/tutorials/User-Defined-Model/User-Defined-Model.ipynb @@ -2,22 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "astroquery\n", - "matplotlib\n", - "numpy\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -905,22 +892,14 @@ } ], "metadata": { - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/astropy-coordinates/1-Coordinates-Intro.ipynb b/tutorials/astropy-coordinates/1-Coordinates-Intro.ipynb index d4288cde..f67dc5d0 100644 --- a/tutorials/astropy-coordinates/1-Coordinates-Intro.ipynb +++ b/tutorials/astropy-coordinates/1-Coordinates-Intro.ipynb @@ -2,22 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "astroquery\n", - "matplotlib\n", - "numpy\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -623,22 +610,14 @@ } ], "metadata": { - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/astropy-coordinates/2-Coordinates-Transforms.ipynb b/tutorials/astropy-coordinates/2-Coordinates-Transforms.ipynb index a024d315..b78aa84f 100644 --- a/tutorials/astropy-coordinates/2-Coordinates-Transforms.ipynb +++ b/tutorials/astropy-coordinates/2-Coordinates-Transforms.ipynb @@ -2,22 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "astroquery\n", - "matplotlib\n", - "numpy\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -792,22 +779,14 @@ } ], "metadata": { - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/astropy-coordinates/3-Coordinates-Velocities.ipynb b/tutorials/astropy-coordinates/3-Coordinates-Velocities.ipynb index 4bd0e338..c3a6d77d 100644 --- a/tutorials/astropy-coordinates/3-Coordinates-Velocities.ipynb +++ b/tutorials/astropy-coordinates/3-Coordinates-Velocities.ipynb @@ -2,22 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "astroquery\n", - "matplotlib\n", - "numpy\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -480,22 +467,14 @@ } ], "metadata": { - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/astropy-coordinates/4-Coordinates-Crossmatch.ipynb b/tutorials/astropy-coordinates/4-Coordinates-Crossmatch.ipynb index 4d61d63a..15f4272d 100644 --- a/tutorials/astropy-coordinates/4-Coordinates-Crossmatch.ipynb +++ b/tutorials/astropy-coordinates/4-Coordinates-Crossmatch.ipynb @@ -2,22 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "astroquery\n", - "matplotlib\n", - "numpy\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -401,22 +388,14 @@ } ], "metadata": { - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/color-excess/color-excess.ipynb b/tutorials/color-excess/color-excess.ipynb index 6e584dce..ae6cb0e1 100644 --- a/tutorials/color-excess/color-excess.ipynb +++ b/tutorials/color-excess/color-excess.ipynb @@ -2,24 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 133, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "astroquery\n", - "dust_extinction\n", - "matplotlib\n", - "numpy\n", - "synphot\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" diff --git a/tutorials/gaia-galactic-orbits/gaia-galactic-orbits.ipynb b/tutorials/gaia-galactic-orbits/gaia-galactic-orbits.ipynb index bc79aca3..64358b7d 100644 --- a/tutorials/gaia-galactic-orbits/gaia-galactic-orbits.ipynb +++ b/tutorials/gaia-galactic-orbits/gaia-galactic-orbits.ipynb @@ -2,24 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "astroquery\n", - "gala\n", - "matplotlib\n", - "numpy\n", - "scipy\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -719,22 +704,14 @@ } ], "metadata": { - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/plot-catalog/plot-catalog.ipynb b/tutorials/plot-catalog/plot-catalog.ipynb index 403b8c92..67a036e3 100755 --- a/tutorials/plot-catalog/plot-catalog.ipynb +++ b/tutorials/plot-catalog/plot-catalog.ipynb @@ -2,21 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "matplotlib\n", - "numpy\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -467,22 +455,14 @@ "name": "", "published": true }, - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/position-velocity-diagrams/PVDiagramPlotting.ipynb b/tutorials/position-velocity-diagrams/PVDiagramPlotting.ipynb index c3fd263d..bdd042e1 100644 --- a/tutorials/position-velocity-diagrams/PVDiagramPlotting.ipynb +++ b/tutorials/position-velocity-diagrams/PVDiagramPlotting.ipynb @@ -2,23 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "numpy\n", - "pvextractor\n", - "pylab\n", - "spectral_cube\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -26,7 +12,7 @@ }, { "cell_type": "markdown", - "id": "0", + "id": "1", "metadata": {}, "source": [ "# Extracting and Plotting Position-Velocity Diagrams\n", @@ -50,7 +36,7 @@ }, { "cell_type": "markdown", - "id": "1", + "id": "2", "metadata": {}, "source": [ "### Header material\n", @@ -61,7 +47,7 @@ { "cell_type": "code", "execution_count": null, - "id": "2", + "id": "3", "metadata": {}, "outputs": [], "source": [ @@ -81,7 +67,7 @@ }, { "cell_type": "markdown", - "id": "3", + "id": "4", "metadata": {}, "source": [ "Retrieve and open a cube from astropy-data:" @@ -90,7 +76,7 @@ { "cell_type": "code", "execution_count": null, - "id": "4", + "id": "5", "metadata": {}, "outputs": [], "source": [ @@ -100,7 +86,7 @@ }, { "cell_type": "markdown", - "id": "5", + "id": "6", "metadata": {}, "source": [ "We show a single channel from the cube to visualize the data spatially.\n", @@ -110,7 +96,7 @@ { "cell_type": "code", "execution_count": null, - "id": "6", + "id": "7", "metadata": {}, "outputs": [], "source": [ @@ -119,7 +105,7 @@ }, { "cell_type": "markdown", - "id": "7", + "id": "8", "metadata": {}, "source": [ "# PV Extraction from Pixel Coordinates\n", @@ -134,7 +120,7 @@ { "cell_type": "code", "execution_count": null, - "id": "8", + "id": "9", "metadata": {}, "outputs": [], "source": [ @@ -143,7 +129,7 @@ }, { "cell_type": "markdown", - "id": "9", + "id": "10", "metadata": {}, "source": [ "Then we can overplot it on our figure, now with WCS shown. The plotting uses [WCSAxes](https://docs.astropy.org/en/stable/visualization/wcsaxes/index.html)" @@ -152,7 +138,7 @@ { "cell_type": "code", "execution_count": null, - "id": "10", + "id": "11", "metadata": {}, "outputs": [], "source": [ @@ -165,7 +151,7 @@ }, { "cell_type": "markdown", - "id": "11", + "id": "12", "metadata": {}, "source": [ "`spacing` gives the separation between these points in pixels; we finely sampled by picking one-pixel spacing." @@ -173,7 +159,7 @@ }, { "cell_type": "markdown", - "id": "12", + "id": "13", "metadata": {}, "source": [ "We can then extract the pv diagram, specifying the same spacing." @@ -182,7 +168,7 @@ { "cell_type": "code", "execution_count": null, - "id": "13", + "id": "14", "metadata": {}, "outputs": [], "source": [ @@ -192,7 +178,7 @@ }, { "cell_type": "markdown", - "id": "14", + "id": "15", "metadata": {}, "source": [ "and plot it. `pvdiagram` is a `PrimaryHDU` object, so we need to grab the data separately from the header and convert the header to a WCS object:" @@ -201,7 +187,7 @@ { "cell_type": "code", "execution_count": null, - "id": "15", + "id": "16", "metadata": {}, "outputs": [], "source": [ @@ -216,7 +202,7 @@ }, { "cell_type": "markdown", - "id": "16", + "id": "17", "metadata": {}, "source": [ "Changing units to the more commonly used km/s and more readable arcminutes can be done with [wcsaxes tools](https://docs.astropy.org/en/stable/visualization/wcsaxes/controlling_axes.html):" @@ -225,7 +211,7 @@ { "cell_type": "code", "execution_count": null, - "id": "17", + "id": "18", "metadata": {}, "outputs": [], "source": [ @@ -247,7 +233,7 @@ }, { "cell_type": "markdown", - "id": "18", + "id": "19", "metadata": {}, "source": [ "We can put all this together:" @@ -256,7 +242,7 @@ { "cell_type": "code", "execution_count": null, - "id": "19", + "id": "20", "metadata": {}, "outputs": [], "source": [ @@ -269,7 +255,7 @@ { "cell_type": "code", "execution_count": null, - "id": "20", + "id": "21", "metadata": {}, "outputs": [], "source": [ @@ -296,7 +282,7 @@ }, { "cell_type": "markdown", - "id": "21", + "id": "22", "metadata": {}, "source": [ "# PV Extraction from Sky Coordinates" @@ -304,7 +290,7 @@ }, { "cell_type": "markdown", - "id": "22", + "id": "23", "metadata": {}, "source": [ "We can also make paths by supplying coordinates defined in an `astropy.coordinates.SkyCoord` to `pvextractor.Path`." @@ -313,7 +299,7 @@ { "cell_type": "code", "execution_count": null, - "id": "23", + "id": "24", "metadata": {}, "outputs": [], "source": [ @@ -323,7 +309,7 @@ { "cell_type": "code", "execution_count": null, - "id": "24", + "id": "25", "metadata": {}, "outputs": [], "source": [ @@ -332,7 +318,7 @@ }, { "cell_type": "markdown", - "id": "25", + "id": "26", "metadata": {}, "source": [ "We can plot again; the coordinates will be automatically determined" @@ -341,7 +327,7 @@ { "cell_type": "code", "execution_count": null, - "id": "26", + "id": "27", "metadata": {}, "outputs": [], "source": [ @@ -355,7 +341,7 @@ { "cell_type": "code", "execution_count": null, - "id": "27", + "id": "28", "metadata": {}, "outputs": [], "source": [ @@ -366,7 +352,7 @@ { "cell_type": "code", "execution_count": null, - "id": "28", + "id": "29", "metadata": {}, "outputs": [], "source": [ @@ -393,7 +379,7 @@ }, { "cell_type": "markdown", - "id": "29", + "id": "30", "metadata": {}, "source": [ "We can also change the aspect ratio of the PV diagram. The `figsize` parameter controls the figure size, which has some effect, and the `ax.set_aspect` command controls the aspect ratio of the individually displayed pixels" @@ -402,7 +388,7 @@ { "cell_type": "code", "execution_count": null, - "id": "30", + "id": "31", "metadata": {}, "outputs": [], "source": [ @@ -431,7 +417,7 @@ }, { "cell_type": "markdown", - "id": "31", + "id": "32", "metadata": {}, "source": [ "## PV Extraction with Spatial Averaging" @@ -439,7 +425,7 @@ }, { "cell_type": "markdown", - "id": "32", + "id": "33", "metadata": {}, "source": [ "`pvextractor.Path` allows you to specify a `width` to average over, which specifies a spatial range around the path to average over.\n", @@ -450,7 +436,7 @@ { "cell_type": "code", "execution_count": null, - "id": "33", + "id": "34", "metadata": {}, "outputs": [], "source": [ @@ -460,7 +446,7 @@ { "cell_type": "code", "execution_count": null, - "id": "34", + "id": "35", "metadata": {}, "outputs": [], "source": [ @@ -469,7 +455,7 @@ }, { "cell_type": "markdown", - "id": "35", + "id": "36", "metadata": {}, "source": [ "We can plot this path as a set of patches to show where we averaged. The default spacing is 1 pixel,so we plot 1-pixel chunks." @@ -478,7 +464,7 @@ { "cell_type": "code", "execution_count": null, - "id": "36", + "id": "37", "metadata": {}, "outputs": [], "source": [ @@ -513,7 +499,7 @@ }, { "cell_type": "markdown", - "id": "37", + "id": "38", "metadata": {}, "source": [ "We can also have more widely spaced chunks.\n", @@ -524,7 +510,7 @@ { "cell_type": "code", "execution_count": null, - "id": "38", + "id": "39", "metadata": {}, "outputs": [], "source": [ @@ -558,7 +544,7 @@ }, { "cell_type": "markdown", - "id": "39", + "id": "40", "metadata": {}, "source": [ "## Saving\n", @@ -569,7 +555,7 @@ { "cell_type": "code", "execution_count": null, - "id": "40", + "id": "41", "metadata": {}, "outputs": [], "source": [ @@ -578,7 +564,7 @@ }, { "cell_type": "markdown", - "id": "41", + "id": "42", "metadata": {}, "source": [ "We can also save the figure as a png or pdf:" @@ -587,7 +573,7 @@ { "cell_type": "code", "execution_count": null, - "id": "42", + "id": "43", "metadata": {}, "outputs": [], "source": [ @@ -597,22 +583,14 @@ } ], "metadata": { - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/quantities/quantities.ipynb b/tutorials/quantities/quantities.ipynb index 43d5e132..6d68538f 100755 --- a/tutorials/quantities/quantities.ipynb +++ b/tutorials/quantities/quantities.ipynb @@ -2,21 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "matplotlib\n", - "numpy\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -1115,22 +1103,14 @@ "name": "", "published": true }, - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/redshift-plot/redshift-plot.ipynb b/tutorials/redshift-plot/redshift-plot.ipynb index 275da57b..ff97a882 100755 --- a/tutorials/redshift-plot/redshift-plot.ipynb +++ b/tutorials/redshift-plot/redshift-plot.ipynb @@ -2,22 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "IPython\n", - "matplotlib\n", - "numpy\n", - "\n" - ] - } - ], + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -348,22 +335,14 @@ "name": "Making a plot with both redshift and universe age axes", "published": true }, - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/spectral-cube-reprojection/SpectralCubeReprojectExample.ipynb b/tutorials/spectral-cube-reprojection/SpectralCubeReprojectExample.ipynb index edee6db8..c2611ed9 100644 --- a/tutorials/spectral-cube-reprojection/SpectralCubeReprojectExample.ipynb +++ b/tutorials/spectral-cube-reprojection/SpectralCubeReprojectExample.ipynb @@ -2,23 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 123, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "dask\n", - "numpy==1.26.4 # pinned on 09-27-24; can remove pin when https://github.com/radio-astro-tools/spectral-cube/pull/917 is merged\n", - "radio_beam\n", - "spectral-cube\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -26,7 +12,7 @@ }, { "cell_type": "markdown", - "id": "0", + "id": "1", "metadata": {}, "source": [ "# Cube Reprojection Tutorial\n", @@ -55,7 +41,7 @@ }, { "cell_type": "markdown", - "id": "1", + "id": "2", "metadata": {}, "source": [ "## Index \n", @@ -73,7 +59,7 @@ }, { "cell_type": "markdown", - "id": "2", + "id": "3", "metadata": {}, "source": [ "## Step 1: Download the data\n", @@ -84,7 +70,7 @@ { "cell_type": "code", "execution_count": null, - "id": "3", + "id": "4", "metadata": {}, "outputs": [], "source": [ @@ -94,7 +80,7 @@ }, { "cell_type": "markdown", - "id": "4", + "id": "5", "metadata": {}, "source": [ "We download two example spectral cubes of a point in the Galactic center from a permalink on the ALMA archives.\n", @@ -106,7 +92,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5", + "id": "6", "metadata": {}, "outputs": [], "source": [ @@ -117,7 +103,7 @@ { "cell_type": "code", "execution_count": null, - "id": "6", + "id": "7", "metadata": {}, "outputs": [], "source": [ @@ -127,7 +113,7 @@ }, { "cell_type": "markdown", - "id": "7", + "id": "8", "metadata": {}, "source": [ "## Step 2: Load the cubes" @@ -136,7 +122,7 @@ { "cell_type": "code", "execution_count": null, - "id": "8", + "id": "9", "metadata": {}, "outputs": [], "source": [ @@ -146,7 +132,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9", + "id": "10", "metadata": {}, "outputs": [], "source": [ @@ -157,7 +143,7 @@ { "cell_type": "code", "execution_count": null, - "id": "10", + "id": "11", "metadata": {}, "outputs": [], "source": [ @@ -167,7 +153,7 @@ }, { "cell_type": "markdown", - "id": "11", + "id": "12", "metadata": {}, "source": [ "The cubes are at different frequencies - 139 and 217 GHz.\n", @@ -179,7 +165,7 @@ }, { "cell_type": "markdown", - "id": "12", + "id": "13", "metadata": {}, "source": [ "We use the `find_lines` tool to query [splatalogue](https://splatalogue.online/) with [astroquery](https://astroquery.readthedocs.io/en/latest/splatalogue/splatalogue.html) over the spectral range covered by the cube. It returns a table of matching lines. Note that some line names will be repeated because Splatalogue includes several different databases and most chemical species are present in all of these." @@ -188,7 +174,7 @@ { "cell_type": "code", "execution_count": null, - "id": "13", + "id": "14", "metadata": {}, "outputs": [], "source": [ @@ -198,7 +184,7 @@ { "cell_type": "code", "execution_count": null, - "id": "14", + "id": "15", "metadata": {}, "outputs": [], "source": [ @@ -207,7 +193,7 @@ }, { "cell_type": "markdown", - "id": "15", + "id": "16", "metadata": {}, "source": [ "## Step 3: Convert cubes from frequency to velocity\n", @@ -218,7 +204,7 @@ { "cell_type": "code", "execution_count": null, - "id": "16", + "id": "17", "metadata": {}, "outputs": [], "source": [ @@ -228,7 +214,7 @@ { "cell_type": "code", "execution_count": null, - "id": "17", + "id": "18", "metadata": {}, "outputs": [], "source": [ @@ -239,7 +225,7 @@ { "cell_type": "code", "execution_count": null, - "id": "18", + "id": "19", "metadata": {}, "outputs": [], "source": [ @@ -249,7 +235,7 @@ }, { "cell_type": "markdown", - "id": "19", + "id": "20", "metadata": {}, "source": [ "From the shape of the cube, we can see the H2CS cube is narrower in velocity, so we'll use that as the target spectral reprojection. However, the SiO cube is the smaller footprint on the sky." @@ -257,7 +243,7 @@ }, { "cell_type": "markdown", - "id": "20", + "id": "21", "metadata": {}, "source": [ "### Create spatial maps of the peak intensity to quickly explore the cubes:\n", @@ -268,7 +254,7 @@ { "cell_type": "code", "execution_count": null, - "id": "21", + "id": "22", "metadata": {}, "outputs": [], "source": [ @@ -278,7 +264,7 @@ }, { "cell_type": "markdown", - "id": "22", + "id": "23", "metadata": {}, "source": [ "We can do the same thing all on one line (for the other cube this time):" @@ -287,7 +273,7 @@ { "cell_type": "code", "execution_count": null, - "id": "23", + "id": "24", "metadata": {}, "outputs": [], "source": [ @@ -296,7 +282,7 @@ }, { "cell_type": "markdown", - "id": "24", + "id": "25", "metadata": {}, "source": [ "# Step 4. Spectral Interpolation\n", @@ -310,7 +296,7 @@ { "cell_type": "code", "execution_count": null, - "id": "25", + "id": "26", "metadata": {}, "outputs": [], "source": [ @@ -321,7 +307,7 @@ }, { "cell_type": "markdown", - "id": "26", + "id": "27", "metadata": {}, "source": [ "Next, we will reduce `cube2vel` to have the same spectral range as `cube1vel`:" @@ -330,7 +316,7 @@ { "cell_type": "code", "execution_count": null, - "id": "27", + "id": "28", "metadata": {}, "outputs": [], "source": [ @@ -341,7 +327,7 @@ }, { "cell_type": "markdown", - "id": "28", + "id": "29", "metadata": {}, "source": [ "Note that it is important for the to-be-interpolated cube, in this case `cube2`, to have pixels bounding `cube1`'s spectral axis, but in this case it does not. If the pixel range doesn't overlap perfectly, it may blank out one of the edge pixels. So, to fix this, we add a little buffer:" @@ -350,7 +336,7 @@ { "cell_type": "code", "execution_count": null, - "id": "29", + "id": "30", "metadata": {}, "outputs": [], "source": [ @@ -361,7 +347,7 @@ }, { "cell_type": "markdown", - "id": "30", + "id": "31", "metadata": {}, "source": [ "Our H2CS cube (`cube1vel`) has broader channels. We need to first smooth `cube2vel` to the broader channel width before doing the spatial reprojection.\n", @@ -376,7 +362,7 @@ { "cell_type": "code", "execution_count": null, - "id": "31", + "id": "32", "metadata": {}, "outputs": [], "source": [ @@ -387,7 +373,7 @@ { "cell_type": "code", "execution_count": null, - "id": "32", + "id": "33", "metadata": {}, "outputs": [], "source": [ @@ -399,7 +385,7 @@ }, { "cell_type": "markdown", - "id": "33", + "id": "34", "metadata": {}, "source": [ "We then smooth with the kernel. Note that this is doing 420x420 = 176400 smoothing operations on a length-221 spectrum: it will take a little time" @@ -408,7 +394,7 @@ { "cell_type": "code", "execution_count": null, - "id": "34", + "id": "35", "metadata": {}, "outputs": [], "source": [ @@ -417,7 +403,7 @@ }, { "cell_type": "markdown", - "id": "35", + "id": "36", "metadata": {}, "source": [ "Now that we've done spectral smoothing, we can resample the spectral axis of `cube2vel_smooth` to match `cube1vel` by interpolating `cube2vel_smooth` onto `cube1vel`'s grid:" @@ -426,7 +412,7 @@ { "cell_type": "code", "execution_count": null, - "id": "36", + "id": "37", "metadata": {}, "outputs": [], "source": [ @@ -437,7 +423,7 @@ }, { "cell_type": "markdown", - "id": "37", + "id": "38", "metadata": {}, "source": [ "Note that we included the `suppress_smooth_warning=True` argument. That is to hide this warning:\n", @@ -449,7 +435,7 @@ }, { "cell_type": "markdown", - "id": "38", + "id": "39", "metadata": {}, "source": [ "# Step 5. Spatial Smoothing" @@ -457,7 +443,7 @@ }, { "cell_type": "markdown", - "id": "39", + "id": "40", "metadata": {}, "source": [ "Now that we've done spectral smoothing, we also need to follow a similar procedure of smoothing then resampling for the spatial axes. \n", @@ -468,7 +454,7 @@ { "cell_type": "code", "execution_count": null, - "id": "40", + "id": "41", "metadata": {}, "outputs": [], "source": [ @@ -477,7 +463,7 @@ }, { "cell_type": "markdown", - "id": "41", + "id": "42", "metadata": {}, "source": [ "`cube1` again hase the larger beam, so we'll smooth `cube2` to its resolution" @@ -485,7 +471,7 @@ }, { "cell_type": "markdown", - "id": "42", + "id": "43", "metadata": {}, "source": [ "#### Aside: mixed beams \n", @@ -498,7 +484,7 @@ { "cell_type": "code", "execution_count": null, - "id": "43", + "id": "44", "metadata": {}, "outputs": [], "source": [ @@ -509,7 +495,7 @@ }, { "cell_type": "markdown", - "id": "44", + "id": "45", "metadata": {}, "source": [ "We then convolve:" @@ -518,7 +504,7 @@ { "cell_type": "code", "execution_count": null, - "id": "45", + "id": "46", "metadata": {}, "outputs": [], "source": [ @@ -532,7 +518,7 @@ }, { "cell_type": "markdown", - "id": "46", + "id": "47", "metadata": {}, "source": [ "# Step 6. Reprojection\n", @@ -543,7 +529,7 @@ { "cell_type": "code", "execution_count": null, - "id": "47", + "id": "48", "metadata": {}, "outputs": [], "source": [ @@ -553,7 +539,7 @@ }, { "cell_type": "markdown", - "id": "48", + "id": "49", "metadata": {}, "source": [ "These two cubes are now on an identical grid, and can be directly compared:" @@ -562,7 +548,7 @@ { "cell_type": "code", "execution_count": null, - "id": "49", + "id": "50", "metadata": {}, "outputs": [], "source": [ @@ -571,7 +557,7 @@ }, { "cell_type": "markdown", - "id": "50", + "id": "51", "metadata": {}, "source": [ "These spectra can now be overplotted as they are in the same unit with the same beam." @@ -580,7 +566,7 @@ { "cell_type": "code", "execution_count": null, - "id": "51", + "id": "52", "metadata": {}, "outputs": [], "source": [ @@ -590,7 +576,7 @@ }, { "cell_type": "markdown", - "id": "52", + "id": "53", "metadata": {}, "source": [ "# Dask\n", @@ -603,7 +589,7 @@ }, { "cell_type": "markdown", - "id": "53", + "id": "54", "metadata": {}, "source": [ "We repeat all the operations above using dask. We use a `ProgressBar` so you can see how long it takes. We also suppress warnings to make the output look cleaner (we already saw all the important warnings above)." @@ -612,7 +598,7 @@ { "cell_type": "code", "execution_count": null, - "id": "54", + "id": "55", "metadata": {}, "outputs": [], "source": [ @@ -623,7 +609,7 @@ { "cell_type": "code", "execution_count": null, - "id": "55", + "id": "56", "metadata": {}, "outputs": [], "source": [ @@ -646,7 +632,7 @@ { "cell_type": "code", "execution_count": null, - "id": "56", + "id": "57", "metadata": {}, "outputs": [], "source": [] diff --git a/tutorials/synthetic-images/synthetic-images.ipynb b/tutorials/synthetic-images/synthetic-images.ipynb index dc64c9da..3dde32ef 100755 --- a/tutorials/synthetic-images/synthetic-images.ipynb +++ b/tutorials/synthetic-images/synthetic-images.ipynb @@ -2,21 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "matplotlib\n", - "numpy\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -577,22 +565,14 @@ } ], "metadata": { - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/units-and-integration/units-and-integration.ipynb b/tutorials/units-and-integration/units-and-integration.ipynb index 9ca1d7b4..80ee9609 100755 --- a/tutorials/units-and-integration/units-and-integration.ipynb +++ b/tutorials/units-and-integration/units-and-integration.ipynb @@ -2,22 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "matplotlib\n", - "numpy\n", - "scipy\n", - "\n" - ] - } - ], + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -369,22 +356,14 @@ } ], "metadata": { - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/vo/conesearch.ipynb b/tutorials/vo/conesearch.ipynb index f2fb7227..ca728099 100755 --- a/tutorials/vo/conesearch.ipynb +++ b/tutorials/vo/conesearch.ipynb @@ -2,22 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "astroquery\n", - "matplotlib\n", - "numpy\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -540,22 +527,14 @@ "name": "", "published": false }, - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4, diff --git a/tutorials/wcs-celestial-coords1/celestial_coords1.ipynb b/tutorials/wcs-celestial-coords1/celestial_coords1.ipynb index 8c596c1f..d56f4e31 100644 --- a/tutorials/wcs-celestial-coords1/celestial_coords1.ipynb +++ b/tutorials/wcs-celestial-coords1/celestial_coords1.ipynb @@ -2,20 +2,9 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Required packages for this notebook:\n", - "astropy\n", - "matplotlib\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "with open('requirements.txt') as f:\n", " print(f\"Required packages for this notebook:\\n{f.read()}\")" @@ -451,22 +440,14 @@ } ], "metadata": { - "kernelspec": { - "display_name": "astropy-tutorials", - "language": "python", - "name": "python3" - }, "language_info": { "codemirror_mode": { - "name": "ipython", - "version": 3 + "name": "ipython" }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.5" + "nbconvert_exporter": "python" } }, "nbformat": 4,