forked from M-Labs/artiq
wavesynth: np.int is deprecated
This commit is contained in:
parent
2d79d824f9
commit
ffb1e3ec2d
|
@ -111,7 +111,7 @@ class CoefficientSource:
|
|||
"""
|
||||
t = np.rint(x/scale)
|
||||
x_sample = t*scale
|
||||
durations = np.diff(t).astype(np.int)
|
||||
durations = np.diff(t).astype(int)
|
||||
return x_sample, durations
|
||||
|
||||
def __call__(self, x, **kwargs):
|
||||
|
@ -201,7 +201,7 @@ class SplineSource(CoefficientSource):
|
|||
inc = np.diff(t) >= 0
|
||||
inc = np.r_[inc, inc[-1]]
|
||||
t = np.where(inc, np.ceil(t), np.floor(t))
|
||||
dt = np.diff(t.astype(np.int))
|
||||
dt = np.diff(t.astype(int))
|
||||
|
||||
valid = np.absolute(dt) >= min_duration
|
||||
if not np.any(valid):
|
||||
|
|
Loading…
Reference in New Issue