From 5b83fad5afdf85c5c90661d71c469a7fe8e05b7e Mon Sep 17 00:00:00 2001 From: Ryan Volz Date: Wed, 13 Dec 2023 09:46:14 -0500 Subject: [PATCH] python: tools: Fix new "black" lint on thor.py --- python/tools/thor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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