Skip to content

Commit

Permalink
Fix raw mocks bug
Browse files Browse the repository at this point in the history
We cannot run raw mock correlations with the rebin option due to missing delta_lambda field in the header of raw mock deltas.
  • Loading branch information
andreicuceu committed Nov 13, 2023
1 parent 089cddc commit 741276b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions py/picca/raw_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def write_delta_from_transmission(deltas, mean_flux, flux_variance, healpix, out
header['FIBERID'] = delta.fiberid
header['ORDER'] = delta.order
header['WAVE_SOLUTION'] = 'lin' if lin_spaced else 'log'
header['DELTA_LAMBDA'] = delta_x

cols = [
delta.log_lambda, delta.delta, delta.weights,
Expand Down

0 comments on commit 741276b

Please sign in to comment.