Skip to content

Commit

Permalink
feat(agents): adds ampl and phase_ini parameters to SineGenerator…
Browse files Browse the repository at this point in the history
…Agent
  • Loading branch information
anupam-prasad committed Jun 30, 2021
1 parent 998b158 commit 774a91b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agentMET4FOF/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -2104,7 +2104,7 @@ class SineGeneratorAgent(AgentMET4FOF):
to connected agents via its output channel.
"""

def init_parameters(self, sfreq=500, sine_freq=5):
def init_parameters(self, sfreq=500, sine_freq=5, ampl=1, phase_ini=0):
"""Initialize the input data
Initialize the input data stream as an instance of the :class:`SineGenerator`
Expand All @@ -2117,7 +2117,7 @@ def init_parameters(self, sfreq=500, sine_freq=5):
sine_freq : float
frequency of the generated sine wave
"""
self._sine_stream = SineGenerator(sfreq=sfreq, sine_freq=sine_freq)
self._sine_stream = SineGenerator(sfreq=sfreq, sine_freq=sine_freq, ampl=ampl, phase_ini=phase_ini)

def agent_loop(self):
"""Model the agent's behaviour
Expand Down

0 comments on commit 774a91b

Please sign in to comment.