Skip to content

Commit

Permalink
add min and max arguments for Waveform
Browse files Browse the repository at this point in the history
  • Loading branch information
feihoo87 committed Jul 23, 2021
1 parent 4b49133 commit 5532a44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion waveforms/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Define version number here and read it from setup.py automatically"""
__version__ = "1.0.4"
__version__ = "1.0.5"
6 changes: 3 additions & 3 deletions waveforms/waveform.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,11 @@ def _calc_m(t, x):
class Waveform:
__slots__ = ('bounds', 'seq', 'max', 'min')

def __init__(self, bounds=(+inf, ), seq=(_zero, )):
def __init__(self, bounds=(+inf, ), seq=(_zero, ), min=-inf, max=inf):
self.bounds = bounds
self.seq = seq
self.max = inf
self.min = -inf
self.max = max
self.min = min

def simplify(self):
seq = [_simplify(self.seq[0])]
Expand Down

0 comments on commit 5532a44

Please sign in to comment.