Coverage for /opt/obspy/update-docs/src/obspy/obspy/signal/tests/test_hoctavbands : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
#!/usr/bin/python # -*- coding: utf-8 -*- The hoctavbands.core test suite. """
# only tests for windowed data are implemented currently
""" Test cases for half octav bands """ # directory where the test files are located #self.path = os.path.dirname(__file__) #self.res = np.loadtxt("3cssan.hy.1.MBGA_Z") #data = np.loadtxt("MBGA_Z.ASC") #[0] Time (k*inc) #[1] A_norm #[2] dA_norm #[3] dAsum #[4] dA2sum #[5] ct #[6] dct #[7] omega #[8] domega #[9] sigma #[10] dsigma #[11] logcep #[12] logcep #[13] logcep #[14] dperiod #[15] ddperiod #[16] bwith #[17] dbwith #[18] cfreq #[19] dcfreq #[20] hob1 #[21] hob2 #[22] hob3 #[23] hob4 #[24] hob5 #[25] hob6 #[26] hob7 #[27] hob8 #[28] phi12 #[29] dphi12 #[30] phi13 #[31] dphi13 #[32] phi23 #[33] dphi23 #[34] lv_h1 #[35] lv_h2 #[36] lv_h3 #[37] dlv_h1 #[38] dlv_h2 #[39] dlv_h3 #[40] rect #[41] drect #[42] plan #[43] dplan util.enframe(data, signal.hamming(self.n), self.inc)
""" """ self.nofb, self.no_win) np.sum(self.res[:, 20] ** 2)) np.sum(self.res[:, 21] ** 2)) np.sum(self.res[:, 22] ** 2)) np.sum(self.res[:, 23] ** 2)) np.sum(self.res[:, 24] ** 2)) np.sum(self.res[:, 25] ** 2)) np.sum(self.res[:, 26] ** 2)) np.sum(self.res[:, 27] ** 2))
if __name__ == '__main__': unittest.main(defaultTest='suite') |