diff --git a/notebooks/IFU_cube_continuum_fit/NGC4151_FeII_ContinuumFit.ipynb b/notebooks/IFU_cube_continuum_fit/NGC4151_FeII_ContinuumFit.ipynb index e1098f929..9b6520233 100644 --- a/notebooks/IFU_cube_continuum_fit/NGC4151_FeII_ContinuumFit.ipynb +++ b/notebooks/IFU_cube_continuum_fit/NGC4151_FeII_ContinuumFit.ipynb @@ -47,19 +47,15 @@ "# load important packages\n", "import time\n", "import os\n", - "from copy import copy\n", "from IPython.display import HTML, YouTubeVideo\n", "\n", - "import astropy\n", "import numpy as np\n", - "from astropy.io import fits, ascii\n", + "from astropy.io import fits\n", "from astropy import units as u\n", "from astropy.modeling import models\n", "from astropy.utils.data import download_file\n", - "from specutils.fitting import fit_lines\n", "from specutils import Spectrum1D\n", "from jdaviz import Cubeviz\n", - "from jdaviz.app import Application\n", "from specutils.manipulation import extract_region\n", "from specutils.spectra import SpectralRegion" ] @@ -99,9 +95,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "scrolled": true - }, + "metadata": {}, "outputs": [], "source": [ "# This cell accesses the datacube file, defines the wavelength grid from header information and then plots a simple\n", @@ -154,9 +148,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "scrolled": true - }, + "metadata": {}, "outputs": [], "source": [ "# This cell defines the wavelength regions of interest: around the emission line, and the location\n", @@ -366,9 +358,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "scrolled": true - }, + "metadata": {}, "outputs": [], "source": [ "# Extract the line region defined in the spectral viewer\n", @@ -383,9 +373,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "scrolled": true - }, + "metadata": {}, "outputs": [], "source": [ "# Extract the continuum region defined in the spectral viewer\n", @@ -637,7 +625,7 @@ "source": [ "# If you are using jdaviz < 3.5, uncomment the following line instead:\n", "# params['LinFitCont_3d']['slope']\n", - "params['LinFitCont']['slope']" + "# params['LinFitCont']['slope']" ] }, { @@ -871,7 +859,7 @@ "\n", "model_label = \"GaussAll\"\n", "# If you are using jdaviz < 3.5, uncomment the following line instead:\n", - "# model_label = \"GaussAll_3d\"\n", + "model_label = \"GaussAll_3d\"\n", "\n", "nz, ny, nx = gauss_cube_2component.shape\n", "for i in range(0, nx-1):\n", @@ -991,7 +979,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -1005,7 +993,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.15" + "version": "3.11.6" }, "toc": { "base_numbering": 1, diff --git a/notebooks/IFU_cube_continuum_fit/pre-install.sh b/notebooks/IFU_cube_continuum_fit/pre-install.sh index b70768e33..3299e8cf5 100644 --- a/notebooks/IFU_cube_continuum_fit/pre-install.sh +++ b/notebooks/IFU_cube_continuum_fit/pre-install.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash source bin/activate -pip install astropy-helpers==2.0.11 -pip install radio_beam==0.3.2 -pip install git+https://github.com/spacetelescope/jdaviz.git@625acca8562249c2f4d9041c566c1820a4d480b2#egg=jdaviz +pip install astropy-helpers>=2.0.11 +pip install radio_beam>=0.3.2 +pip install jdaviz>=3.7.0 diff --git a/notebooks/IFU_cube_continuum_fit/requirements.txt b/notebooks/IFU_cube_continuum_fit/requirements.txt index 669df5108..1fb47a99a 100644 --- a/notebooks/IFU_cube_continuum_fit/requirements.txt +++ b/notebooks/IFU_cube_continuum_fit/requirements.txt @@ -1,3 +1,5 @@ +astropy-helpers>=2.0.11 +radio_beam>=0.3.2 astropy>=4.3.1 specutils>=1.4.0 matplotlib>=3.4.3