Skip to content

Commit b53a286

Browse files
authored
Merge pull request #225 from desihub/fasterqso
fix N^2 scaling of QSO.make_templates
2 parents 6ec8fe9 + 5c195fb commit b53a286

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/changes.rst

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ desisim change log
77

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

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

py/desisim/templates.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,7 @@ def make_templates(self, nmodel=100, zrange=(0.5, 4.0), rmagrange=(21.0, 23.0),
17021702

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

17071707

17081708
restflux = final_flux.T

0 commit comments

Comments
 (0)