[change] prepTimeAxis using linspace (is that ok?)
This commit is contained in:
parent
f0b6897053
commit
5fcb07e647
@ -592,7 +592,7 @@ def prepTimeAxis(stime, trace, verbosity=0):
|
|||||||
srate = trace.stats.sampling_rate
|
srate = trace.stats.sampling_rate
|
||||||
tincr = trace.stats.delta
|
tincr = trace.stats.delta
|
||||||
etime = stime + nsamp / srate
|
etime = stime + nsamp / srate
|
||||||
time_ax = np.arange(stime, etime, tincr)
|
time_ax = np.linspace(stime, etime, nsamp)
|
||||||
if len(time_ax) < nsamp:
|
if len(time_ax) < nsamp:
|
||||||
if verbosity:
|
if verbosity:
|
||||||
print('elongate time axes by one datum')
|
print('elongate time axes by one datum')
|
||||||
|
Loading…
Reference in New Issue
Block a user