Esempio n. 1
0
 def testEqualizeSamplingRates(self):
     y = num.random.random(1000)
     t1 = trace.Trace(tmin=0, ydata=y, deltat=0.01)
     t2 = trace.Trace(tmin=0, ydata=y, deltat=0.5)
     t1_new, t2_new = trace.equalize_sampling_rates(t1, t2)
     self.assertEqual(
         t1_new.deltat, t2_new.deltat,
         'Equalization of sampling rates failed: dt1=%s, dt2=%s' %
         (t1.deltat, t2.deltat))
Esempio n. 2
0
 def testEqualizeSamplingRates(self):
     y = num.random.random(1000)
     t1 = trace.Trace(tmin=0, ydata=y, deltat=0.01)
     t2 = trace.Trace(tmin=0, ydata=y, deltat=0.5)
     t1_new, t2_new = trace.equalize_sampling_rates(t1, t2)
     self.assertEqual(
         t1_new.deltat, t2_new.deltat,
         'Equalization of sampling rates failed: dt1=%s, dt2=%s'
         % (t1.deltat, t2.deltat))