Fix test_time_transform for Python 2 compatibility.
@@ -60,11 +60,11 @@ class NetworkTestCase(unittest.TestCase):
data_rate = 5e9
num_taps = (100, 101)
for i in range(2):
- tps = 1 / spb[i] / data_rate
+ tps = 1. / spb[i] / data_rate
num_points = spb[i] * num_taps[i]
# Frequency terms should NOT contain Nyquist frequency if number of points is odd
inc_nyq = True if num_points % 2 == 0 else False
- freq = npy.linspace(0, 1 / 2 / tps, num_points // 2 + 1, endpoint=inc_nyq)
+ freq = npy.linspace(0, 1. / 2 / tps, num_points // 2 + 1, endpoint=inc_nyq)
dut = self.ntwk1.copy()
freq_valid = freq[npy.logical_and(freq >= dut.f[0], freq <= dut.f[-1])]
