diff --git a/python/tools/thor.py b/python/tools/thor.py index b3c6eef..770242a 100644 --- a/python/tools/thor.py +++ b/python/tools/thor.py @@ -581,7 +581,7 @@ def _usrp_setup(self): # (integer division of clock rate) cr = op.clock_rates[0] srdec = int(round(cr / samplerate)) - op.samplerate_frac = Fraction(cr).limit_denominator(2 ** 32) / srdec + op.samplerate_frac = Fraction(cr).limit_denominator(2**32) / srdec samplerate_ld = np.longdouble(cr) / srdec op.samplerate = samplerate_ld @@ -727,7 +727,7 @@ def _finalize_options(self): if osr is None: ratio = Fraction(1) else: - ratio = (Fraction(osr) / op.samplerate_frac).limit_denominator(2 ** 16) + ratio = (Fraction(osr) / op.samplerate_frac).limit_denominator(2**16) op.resampling_ratios.append(ratio) # get output samplerate fraction