Skip to content

Commit

Permalink
fix plot_spectra targetid selection
Browse files Browse the repository at this point in the history
  • Loading branch information
sbailey committed Mar 8, 2023
1 parent de70ada commit b7ca509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/plot_spectra
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ for tid in targetids :
something_to_show = False
for spec in spectra :
jj=np.where(spec.fibermap["TARGETID"]==tid)[0]
if np.sum(jj)==0 :
if len(jj)==0 :
log.warning("TARGETID {} not in spectra".format(tid))
continue
something_to_show = True
Expand Down

0 comments on commit b7ca509

Please sign in to comment.