From 51b1976395b29df7e9659fd739da5f41bd27a80d Mon Sep 17 00:00:00 2001 From: arigdon-usgs <arigdon@usgs.gov> Date: Mon, 30 Jul 2018 14:19:51 -0600 Subject: [PATCH] Changed sampling_rate to delta in __create_trace() so that the start and endtimes are calculated correctly --- test/StreamConverter_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/StreamConverter_test.py b/test/StreamConverter_test.py index c072e3b0..bf816375 100644 --- a/test/StreamConverter_test.py +++ b/test/StreamConverter_test.py @@ -305,7 +305,7 @@ def __create_trace(channel, data, decbase=0): """ stats = obspy.core.Stats() stats.starttime = STARTTIME - stats.sampling_rate = 0.0166666666667 + stats.delta = 60 stats.declination_base = decbase stats.channel = channel numpy_data = numpy.array(data, dtype=numpy.float64) -- GitLab