Skip to content

Commit

Permalink
fix 10-character bug in quickquasars
Browse files Browse the repository at this point in the history
  • Loading branch information
moustakas committed Sep 21, 2018
1 parent 3941c24 commit 9da25e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/desisim/scripts/quickquasars.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def simulate_one_healpix(ifilename,args,model,obsconditions,decam_and_wise_filte
for these, filters in zip( (~bbflux['SOUTH'], bbflux['SOUTH']),
(bassmzls_and_wise_filters, decam_and_wise_filters) ):
if np.count_nonzero(these) > 0:
maggies = filters.get_ab_maggies(1e-17 * tmp_qso_flux, tmp_qso_wave)
maggies = filters.get_ab_maggies(1e-17 * tmp_qso_flux[these, :], tmp_qso_wave)
for band, filt in zip( bands, maggies.colnames ):
bbflux[band][these] = np.ma.getdata(1e9 * maggies[filt]) # nanomaggies

Expand Down

0 comments on commit 9da25e0

Please sign in to comment.