Skip to content

Commit

Permalink
Merge pull request #225 from desihub/fasterqso
Browse files Browse the repository at this point in the history
fix N^2 scaling of QSO.make_templates
  • Loading branch information
moustakas authored Mar 26, 2017
2 parents 6ec8fe9 + 5c195fb commit b53a286
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ desisim change log

* Fixed a number of documentation errors (`PR #224`_).
* Removed unneeded Travis scripts in ``etc/``.
* Fixed N^2 scaling of ``QSO.make_templates``

.. _`PR #224`: https://github.com/desihub/desisim/pull/224

Expand Down
2 changes: 1 addition & 1 deletion py/desisim/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -1702,7 +1702,7 @@ def make_templates(self, nmodel=100, zrange=(0.5, 4.0), rmagrange=(21.0, 23.0),

_, final_flux, redshifts = dqt.desi_qso_templates(
z_wind=self.z_wind, N_perz=N_perz, rstate=templaterand,
redshift=redshift, rebin_wave=zwave, no_write=True, cosmo=cosmo, ipad=15)
redshift=redshift[ii], rebin_wave=zwave, no_write=True, cosmo=cosmo, ipad=15)


restflux = final_flux.T
Expand Down

0 comments on commit b53a286

Please sign in to comment.