Skip to content

Commit

Permalink
refactor(multi_generator): replaces amplitude with value in varia…
Browse files Browse the repository at this point in the history
…ble names in generator classes
  • Loading branch information
anupam-prasad committed Jun 25, 2021
1 parent f7475ba commit ee45e1c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions agentMET4FOF_tutorials/datastreams/multi_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,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 SawToothGenerator(DataStreamMET4FOF):
"""
Expand All @@ -38,8 +38,8 @@ def __init__(self,sfreq = 500, F=5):
self.set_generator_function(generator_function=self.sawtooth_wave_function, sfreq=sfreq, F=F)

def sawtooth_wave_function(self, time, F):
amplitude = signal.sawtooth(2 * np.pi * F * time)
return amplitude
value = signal.sawtooth(2 * np.pi * F * time)
return value

class SquareGenerator(DataStreamMET4FOF):
"""
Expand All @@ -55,8 +55,8 @@ def __init__(self,sfreq = 500, F=5):
self.set_generator_function(generator_function=self.square_wave_function, sfreq=sfreq, F=F)

def square_wave_function(self, time, F):
amplitude = signal.square(2 * np.pi * F * time)
return amplitude
value = signal.square(2 * np.pi * F * time)
return value

class MultiGeneratorAgent(AgentMET4FOF):
"""
Expand Down

0 comments on commit ee45e1c

Please sign in to comment.