Skip to content

Commit

Permalink
Address dependency issues in spectral-ext-stat nb
Browse files Browse the repository at this point in the history
  • Loading branch information
haticekaratay committed Sep 12, 2023
1 parent 5e964e0 commit d0bb4b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
13 changes: 6 additions & 7 deletions notebooks/optimal_extraction/Spectral_Extraction-static.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
"%matplotlib inline\n",
"from glob import glob\n",
"import numpy as np\n",
"from jwst.datamodels import ImageModel, MultiSpecModel\n",
"from stdatamodels.jwst.datamodels import ImageModel\n",
"from stdatamodels.jwst.datamodels import MultiSpecModel\n",
"from astropy.io import fits\n",
"from astropy.modeling import models, fitting\n",
"from astropy.visualization import astropy_mpl_style, simple_norm\n",
Expand Down Expand Up @@ -465,8 +466,6 @@
"psf_template.amplitude = kernel_slice[max_pixel]\n",
"print(psf_template)\n",
"# If deblending multiple sources, add more PSF templates here:\n",
"\n",
"\n",
"\n"
]
},
Expand Down Expand Up @@ -1373,8 +1372,8 @@
" # assume that WebbPSF data files have not been downloaded\n",
" import tarfile, sys\n",
" print(\"Downloading WebbPSF data files.\")\n",
" webb_url = \"https://stsci.box.com/shared/static/qcptcokkbx7fgi3c00w2732yezkxzb99.gz\"\n",
" webb_file = os.path.join('.', \"webbpsf-data-0.9.0.tar.gz\")\n",
" webb_url = \"https://stsci.box.com/shared/static/qxpiaxsjwo15ml6m4pkhtk36c9jgj70k.gz\"\n",
" webb_file = os.path.join('.', \"webbpsf-data-1.2.1.tar.gz\")\n",
" urllib.request.urlretrieve(webb_url, webb_file)\n",
" print(\"Extracting into ./webbpsf-data ...\")\n",
" tar = tarfile.open(webb_file)\n",
Expand Down Expand Up @@ -1698,7 +1697,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -1712,7 +1711,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.12"
"version": "3.11.5"
}
},
"nbformat": 4,
Expand Down
7 changes: 4 additions & 3 deletions notebooks/optimal_extraction/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
astropy == 5.1
astropy == 5.3.3
scipy >= 1.8.1
ipywidgets >= 7.7.0
jwst >= 1.5.2
ipywidgets >= 8.1.0
jwst >= 1.11.2
webbpsf >= 1.0.1
specutils==1.11.0

0 comments on commit d0bb4b1

Please sign in to comment.