Skip to content

Commit

Permalink
refactor(metrological_streams): reorder parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
BjoernLudwigPTB committed Apr 21, 2021
1 parent 1bfc2a6 commit b0c465f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agentMET4FOF/metrological_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def _multi_wave_function(self, time, intercept, freq_arr, ampl_arr,
if noisy:
value_arr += self.value_unc / 2 * norm.rvs(size=time.shape)

for ampl, freq, phase_ini in zip(freq_arr, ampl_arr, phase_ini_arr):
for freq, ampl, phase_ini in zip(freq_arr, ampl_arr, phase_ini_arr):
value_arr += ampl * np.cos(2 * np.pi * freq * time + phase_ini)

return value_arr

0 comments on commit b0c465f

Please sign in to comment.