Skip to content

Commit

Permalink
Address dependency and import issues (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
haticekaratay authored Sep 11, 2023
1 parent c64f77d commit 5e964e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"\n",
"from photutils.detection import DAOStarFinder\n",
"from photutils.background import MMMBackground, MADStdBackgroundRMS, Background2D\n",
"from photutils import CircularAperture, CircularAnnulus, aperture_photometry"
"from photutils.aperture import CircularAperture, CircularAnnulus, aperture_photometry"
]
},
{
Expand Down Expand Up @@ -161,7 +161,7 @@
" else:\n",
" d = d\n",
"\n",
" wv = np.float(f[1:3])\n",
" wv = float(f[1:3])\n",
"\n",
" if wv > 24:\n",
" ff_long.append(f)\n",
Expand Down Expand Up @@ -448,7 +448,7 @@
"\n",
" for rad in radius:\n",
" print(\"Performing aperture photometry for filter {1}; radius r = {0} px\".format(rad, filt))\n",
" rr = np.str(rad)\n",
" rr = str(rad)\n",
" aperture = CircularAperture(positions, r=rad)\n",
" annulus_aperture = CircularAnnulus(positions, r_in=sky_in, r_out=sky_out)\n",
" annulus_mask = annulus_aperture.to_mask(method='center')\n",
Expand Down Expand Up @@ -526,7 +526,7 @@
" for j, filt in enumerate(filts_short):\n",
" for i in np.arange(0, len(dict_images[det][filt]['images']), 1):\n",
"\n",
" radius = np.str(radii[j])\n",
" radius = str(radii[j])\n",
"\n",
" image = fits.open(dict_images[det][filt]['images'][0])\n",
" data = image[1].data\n",
Expand Down Expand Up @@ -1435,7 +1435,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.11.5"
}
},
"nbformat": 4,
Expand Down
12 changes: 6 additions & 6 deletions notebooks/aperture_photometry/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
numpy==1.19.1
pandas==1.1.1
jwst@git+https://github.com/spacetelescope/[email protected]
astropy==4.0.1.post1
photutils==1.0.1
matplotlib==3.3.1
numpy==1.25.2
pandas==2.1.0
jwst==1.11.4
astropy==5.3.3
photutils==1.9.0
matplotlib==3.7.2

0 comments on commit 5e964e0

Please sign in to comment.