Skip to content

Commit d75e3ac

Browse files
committed
revert to boolean targ vector
1 parent 504dd13 commit d75e3ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pypeit/spectrographs/mmt_binospec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ def get_maskdef_slitedges(self, filename:str=None, det:int=1, debug:bool=None,
656656
hdu = io.fits_open(filename)
657657
mask_fits = hdu[9].data[0] if det == 1 else hdu[10].data[0]
658658
# keep only the TARGET slits
659-
targ = np.where(mask_fits['TARGET_TYPE'] == 'TARGET')[0]
659+
targ = mask_fits['TARGET_TYPE'] == 'TARGET'
660660

661661
# Define det buffer and mm/pixel scale factor
662662
# NOTE: these are hard-coded and not sure if there is a more robust way to determine them

0 commit comments

Comments
 (0)