Skip to content

Commit

Permalink
Merge pull request #39 from markm42/master
Browse files Browse the repository at this point in the history
fixed the gain's linear drift function bug
  • Loading branch information
JulienPeloton authored Sep 18, 2019
2 parents 503effb + 45ad8a8 commit 5cd60d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions s4cmb/systematics.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def linear_function(nbolos, nsamples, mean=1, std=0.05,
gains[:, shift:shift + length] = np.array([np.interp(
range(shift, shift + length),
[shift, shift + length - 1],
[1, end]) for end in end_points])
[1, end[0]]) for end in end_points])
else:
continue

Expand Down Expand Up @@ -708,7 +708,7 @@ def linear_function_gen(nsamples, mean=1, std=0.05,
gains[:, shift:shift + length] = np.array([np.interp(
range(shift, shift + length),
[shift, shift + length - 1],
[1, end]) for end in end_points])
[1, end[0]]) for end in end_points])
else:
continue

Expand Down

0 comments on commit 5cd60d2

Please sign in to comment.