Lines Matching refs:C

21 import tables as T, appendix_c as C  namespace
518 for i in range(len(C.E_B[dt])):
520 scf = lc3.sns_compute_scale_factors(dt, sr, C.E_B[dt][i], False)
521 ok = ok and np.amax(np.abs(scf - C.SCF[dt][i])) < 1e-4
524 ok = ok and lf == C.IND_LF[dt][i] and hf == C.IND_HF[dt][i]
527 ok = ok and np.any(y[0][:16] - C.SNS_Y0[dt][i] == 0)
528 ok = ok and np.any(y[1][:10] - C.SNS_Y1[dt][i] == 0)
529 ok = ok and np.any(y[2][:16] - C.SNS_Y2[dt][i] == 0)
530 ok = ok and np.any(y[3][:16] - C.SNS_Y3[dt][i] == 0)
531 ok = ok and shape == 2*C.SUBMODE_MSB[dt][i] + C.SUBMODE_LSB[dt][i]
532 ok = ok and gain == C.G_IND[dt][i]
535 ok = ok and np.amax(np.abs(scf_q - C.SCF_Q[dt][i])) < 1e-5
537 x = lc3.sns_spectral_shaping(dt, sr, C.SCF_Q[dt][i], False, C.X[dt][i])
538 ok = ok and np.amax(np.abs(1 - x/C.X_S[dt][i])) < 1e-5
540 (x, data) = lc3.sns_analyze(dt, sr, C.E_B[dt][i], False, C.X[dt][i])
541 ok = ok and data['lfcb'] == C.IND_LF[dt][i]
542 ok = ok and data['hfcb'] == C.IND_HF[dt][i]
544 2*C.SUBMODE_MSB[dt][i] + C.SUBMODE_LSB[dt][i]
545 ok = ok and data['gain'] == C.G_IND[dt][i]
546 ok = ok and data['idx_a'] == C.IDX_A[dt][i]
547 ok = ok and data['ls_a'] == C.LS_IND_A[dt][i]
548 ok = ok and (C.IDX_B[dt][i] is None or
549 data['idx_b'] == C.IDX_B[dt][i])
550 ok = ok and (C.LS_IND_B[dt][i] is None or
551 data['ls_b'] == C.LS_IND_B[dt][i])
552 ok = ok and np.amax(np.abs(1 - x/C.X_S[dt][i])) < 1e-5
561 for i in range(len(C.X_HAT_TNS[dt])):
564 'lfcb' : C.IND_LF[dt][i], 'hfcb' : C.IND_HF[dt][i],
565 'shape' : 2*C.SUBMODE_MSB[dt][i] + C.SUBMODE_LSB[dt][i],
566 'gain' : C.G_IND[dt][i],
567 'idx_a' : C.IDX_A[dt][i],
568 'ls_a' : C.LS_IND_A[dt][i],
569 'idx_b' : C.IDX_B[dt][i] if C.IDX_B[dt][i] is not None else 0,
570 'ls_b' : C.LS_IND_B[dt][i] if C.LS_IND_B[dt][i] is not None else 0,
573 x = lc3.sns_synthesize(dt, sr, data, C.X_HAT_TNS[dt][i])
574 ok = ok and np.amax(np.abs(x - C.X_HAT_SNS[dt][i])) < 1e0