hifiberry / hifiberry-dsp

DSP toolkit
MIT License
143 stars 36 forks source link

UnboundLocalError: local variable 'db' referenced before assignment #42

Closed tstupka closed 1 year ago

tstupka commented 2 years ago

Traceback (most recent call last): File "/usr/local/bin/dsptoolkit", line 29, in cmdline.main() File "/usr/local/lib/python3.7/dist-packages/hifiberrydsp/dsptoolkit.py", line 1021, in main self.command_map[cmd]() File "/usr/local/lib/python3.7/dist-packages/hifiberrydsp/dsptoolkit.py", line 653, in cmd_set_rew_filters_both self.set_iir_filters(mode=MODE_BOTH, format=REW) File "/usr/local/lib/python3.7/dist-packages/hifiberrydsp/dsptoolkit.py", line 595, in set_iir_filters self.dsptk.get_samplerate()) File "/usr/local/lib/python3.7/dist-packages/hifiberrydsp/parser/rew.py", line 112, in readfilters logging.info("Filter NO fc=%s", fc, db) UnboundLocalError: local variable 'db' referenced before assignment

tstupka commented 2 years ago

also note the gaion typo in REWParser.readfilters: ... /logging.info("Filter EQ fc=%s, q=%s, gaion=%s, fs=%s