Skip to content

Commit

Permalink
python: tools: Fix new "black" lint on thor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanvolz committed Dec 13, 2023
1 parent f092077 commit 5b83fad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tools/thor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5b83fad

Please sign in to comment.