Skip to content

Commit f4916cb

Browse files
committed
Merge branch 'develop' into bino_maskdef
2 parents a8b9310 + 3fa4614 commit f4916cb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pypeit/core/skysub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,8 +1324,8 @@ def ech_local_skysub_extract(sciimg, sciivar, fullmask, tilts, waveimg,
13241324
if np.sum(ind) == 0:
13251325
msgs.error('There is a missing order for object {0:d} on slit {1:d}!'.format(iobj, slitid))
13261326
if iobj == 0:
1327-
order_vec[islit] = sobjs[ind].ECH_ORDER
1328-
order_snr[islit,iobj] = sobjs[ind].ech_snr
1327+
order_vec[islit] = sobjs[ind][0].ECH_ORDER
1328+
order_snr[islit,iobj] = sobjs[ind][0].ech_snr
13291329

13301330
# Enforce that the number of objects in the sobjs object is an integer multiple of the number of good orders
13311331
if (np.sum(sobjs.sign > 0) % norders) == 0:

pypeit/scripts/run_to_calibstep.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def main(args):
8989
if len(rows) == 0:
9090
msgs.error(f"Calibration group {args.calib_group} not found")
9191
row = rows[0]
92-
row = int(row)
92+
row = int(row[0])
9393
calib_id = pypeIt.fitstbl.find_frame_calib_groups(row)[0]
9494

9595
# Calibrations?

pypeit/spectrographs/keck_deimos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@ def spec1d_match_spectra(self, sobjs):
15711571
sobj = sobjs[ibobj]
15721572
mtc = sobj.RA == robjs.RA
15731573
if np.sum(mtc) == 1:
1574-
irobj = int(ridx[mtc])
1574+
irobj = int(ridx[mtc][0])
15751575
if not np.isclose(sobj.DEC, sobjs[irobj].DEC):
15761576
msgs.error('DEC does not match RA!')
15771577
bmt.append(ibobj)

0 commit comments

Comments
 (0)