Skip to content

Commit 7a02787

Browse files
fix pylint warnings
1 parent 8f9591d commit 7a02787

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cedargrove_wavebuilder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ def _triangle_wave(self, ratio, amplitude):
316316
return _temporary
317317

318318
# pylint: disable=consider-using-generator
319+
# pylint: disable=too-many-branches
319320
def _update_table(self):
320321
# Replace frequencies in _oscillators with ratios based on the fundamental
321322
fundamental_frequency = min([osc[1] for osc in self._oscillators])
@@ -325,7 +326,7 @@ def _update_table(self):
325326

326327
self._summed_amplitude = sum([abs(osc[2]) for osc in self._oscillators])
327328
if self._summed_amplitude > 1.0:
328-
raise ValueError(f"Summed amplitude of oscillators exceeds 1.0.")
329+
raise ValueError("Summed amplitude of oscillators exceeds 1.0.")
329330

330331
# Test each oscillator ratio to confirm that table_length has sufficient resolution
331332
for overtone in self._oscillators:

0 commit comments

Comments
 (0)