Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update requirements for python 3.11 upgrade - ifu_optimal.ipynb #165

Merged
merged 3 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 4 additions & 17 deletions notebooks/ifu_optimal/ifu_optimal.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"* _scipy_ for gaussian smoothing\n",
"* _specutils_ for Spectrum1D data model\n",
"* _jdaviz_ : Cubeviz data visualization tool\n",
"* _regions_ to read DS9 regions\n",
"* _photutils_ to define circular apertures\n",
"* _astropy.io_ for reading and writing FITS cubes and images\n",
"* _astropy.wcs, units, coordinates_ for defining and reading WCS\n",
Expand All @@ -50,23 +49,13 @@
"outputs": [],
"source": [
"import time\n",
"\n",
"import numpy as np\n",
"\n",
"import scipy\n",
"\n",
"import specutils\n",
"from specutils import Spectrum1D\n",
"\n",
"from jdaviz import Cubeviz\n",
"\n",
"from regions import CircleSkyRegion\n",
"\n",
"from photutils import CircularAperture, SkyCircularAperture, aperture_photometry \n",
"\n",
"from photutils import CircularAperture, aperture_photometry \n",
"from astropy.io import fits\n",
"from astropy import wcs\n",
"import astropy.units as u\n",
"from astropy.stats import sigma_clip\n",
"from astropy.utils.data import download_file"
]
Expand All @@ -88,7 +77,7 @@
"source": [
"## Introduction\n",
"\n",
"This notebook illustrates various extraction methods for a point source in JWST NIRSpec IFU data. First we\n",
" This notebook illustrates various extraction methods for a point source in JWST NIRSpec IFU data. First we\n",
"demonstrate a number of regular extraction techniques, including subset extraction with Cubeviz, simple sum over spaxels, cylindrical aperture, and conical aperture photometry. Then we compare optimal extraction using a WebbPSF model PSF to optimal extraction using a reference star PSF. \n"
]
},
Expand Down Expand Up @@ -178,9 +167,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"cubeviz = Cubeviz()\n",
Expand Down Expand Up @@ -839,7 +826,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion notebooks/ifu_optimal/pre-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
astropy-helpers==2.0.11
astropy-helpers>=2.0.11

32 changes: 16 additions & 16 deletions notebooks/ifu_optimal/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
notebook==6.1.5
jupyter_client==5.3.5
numpy==1.19.2
scipy==1.5.2
specutils==1.1.1
glue-astronomy==0.1
glue-core==1.0.0
glue-jupyter==0.2.1
glue-vispy-viewers==1.0.1
jdaviz==1.0.3
git+https://github.com/astropy/regions.git
photutils==1.0.1
notebook>=6.1.5
jupyter_client>=5.3.5
numpy>=1.19.2
scipy>=1.5.2
specutils>=1.1.1
glue-astronomy>=0.1
glue-core>=1.0.0
glue-jupyter>=0.2.1
glue-vispy-viewers>=1.0.1
jdaviz>=1.0.3
regions>=0.7
photutils>=1.0.1
astropy>=4.2
matplotlib==3.3.2
ipyvuetify==1.6.2
ipyvue==1.5.0
git+https://github.com/radio-astro-tools/radio-beam.git
matplotlib>=3.3.2
ipyvuetify>=1.6.2
ipyvue>=1.5.0
radio-beam>=0.3.6
Loading