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

Address dependency issues in spectral-ext-stat nb #143

Merged
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
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
Loading