Skip to content

Commit

Permalink
similar small fix to Z arm coadding in coadd_arms_forest
Browse files Browse the repository at this point in the history
  • Loading branch information
p-slash committed Jul 9, 2024
1 parent a4c2aac commit d757815
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions py/qsonic/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,10 @@ def coadd_arms_forest(
min_wave = np.min([wave[0] for wave in self.forestwave.values()])
max_wave = np.max([wave[-1] for wave in self.forestwave.values()])

nwaves = int((max_wave - min_wave) / self.dwave + 0.1) + 1
coadd_wave = np.linspace(min_wave, max_wave, nwaves)
nwaves = round((max_wave - min_wave) / self.dwave + 0.1)
coadd_wave = np.linspace(
min_wave, min_wave + nwaves * self.dwave, nwaves + 1)
nwaves += 1
coadd_flux = np.zeros(nwaves)
coadd_ivar = np.zeros(nwaves)
coadd_norm = np.zeros(nwaves)
Expand Down

0 comments on commit d757815

Please sign in to comment.