Skip to content

Commit

Permalink
refactor(simple_generator): replaces amplitude with value in vari…
Browse files Browse the repository at this point in the history
…able names in generator classes
  • Loading branch information
anupam-prasad committed Jun 25, 2021
1 parent 7a995ff commit f7475ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agentMET4FOF_tutorials/datastreams/simple_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def __init__(self,sfreq = 500, F=5):
self.set_generator_function(generator_function=self.sine_wave_function, sfreq=sfreq, F=F)

def sine_wave_function(self, time, F=50):
amplitude = np.sin(2*np.pi*F*time)
return amplitude
value = np.sin(2*np.pi*F*time)
return value

class SineGeneratorAgent(AgentMET4FOF):
"""An agent streaming a sine signal
Expand Down

0 comments on commit f7475ba

Please sign in to comment.