Skip to content

Commit

Permalink
fixed missing argument
Browse files Browse the repository at this point in the history
  • Loading branch information
rcooke-ast committed Jul 27, 2024
1 parent 76062b4 commit 87527fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypeit/core/datacube.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def extract_point_source(wave, flxcube, ivarcube, bpmcube, wcscube, exptime,

# Generate a whitelight image, and fit a 2D Gaussian to estimate centroid and width
msgs.info("Making white light image")
wl_img = make_whitelight_fromcube(_flxcube, wavemin=whitelight_range[0], wavemax=whitelight_range[1])
wl_img = make_whitelight_fromcube(_flxcube, bpmcube, wave=wave, wavemin=whitelight_range[0], wavemax=whitelight_range[1])
popt, pcov, model = fitGaussian2D(wl_img, norm=True)
if boxcar_radius is None:
nsig = 4 # 4 sigma should be far enough... Note: percentage enclosed for 2D Gaussian = 1-np.exp(-0.5 * nsig**2)
Expand Down

0 comments on commit 87527fa

Please sign in to comment.