From 5fcb07e6476fb6a7ae0984a7d57c9ed60e2ffe4a Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 18 Apr 2018 16:17:16 +0200 Subject: [PATCH] [change] prepTimeAxis using linspace (is that ok?) --- pylot/core/util/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylot/core/util/utils.py b/pylot/core/util/utils.py index ba6656f7..79872e31 100644 --- a/pylot/core/util/utils.py +++ b/pylot/core/util/utils.py @@ -592,7 +592,7 @@ def prepTimeAxis(stime, trace, verbosity=0): srate = trace.stats.sampling_rate tincr = trace.stats.delta etime = stime + nsamp / srate - time_ax = np.arange(stime, etime, tincr) + time_ax = np.linspace(stime, etime, nsamp) if len(time_ax) < nsamp: if verbosity: print('elongate time axes by one datum')