From ffb1e3ec2d4277ecaaf09e98e80cfa758b810ea5 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 13 Sep 2021 07:02:35 +0800 Subject: [PATCH] wavesynth: np.int is deprecated --- artiq/wavesynth/coefficients.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/wavesynth/coefficients.py b/artiq/wavesynth/coefficients.py index 3c41990ed..e70a4080e 100644 --- a/artiq/wavesynth/coefficients.py +++ b/artiq/wavesynth/coefficients.py @@ -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):