Skip to content

Commit

Permalink
refactor(signal_streams): turn wave methods into static methods in Si…
Browse files Browse the repository at this point in the history
…neGenerator and CosineGenerator
  • Loading branch information
BjoernLudwigPTB committed Jan 31, 2022
1 parent dce0d86 commit 9d24259
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions agentMET4FOF/streams/signal_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def __init__(
initial_phase=initial_phase,
)

def sine_wave_function(self, time, sine_freq, amplitude, initial_phase):
@staticmethod
def sine_wave_function(time, sine_freq, amplitude, initial_phase):
"""A simple sine wave generator
Parameters
Expand Down Expand Up @@ -114,7 +115,8 @@ def __init__(
initial_phase=initial_phase,
)

def cosine_wave_function(self, time, cosine_freq, amplitude, initial_phase):
@staticmethod
def cosine_wave_function(time, cosine_freq, amplitude, initial_phase):
"""A simple cosine wave generator
Parameters
Expand Down

0 comments on commit 9d24259

Please sign in to comment.