timsainb / noisereduce

Noise reduction in python using spectral gating (speech, bioacoustics, audio, time-domain signals)
MIT License
1.41k stars 230 forks source link

use_tqdm parameter uses tqdm when False #56

Open sietseschroder opened 2 years ago

sietseschroder commented 2 years ago

Hi, it seems use_tqdm=False leads to the use of tqdm, while use_tqdm=True leads to no use of tqdm. In the source code: tqdm(pos_list, disable=self.use_tqdm) So use_tqdm=False means disable=False so enable is True...

timsainb commented 2 years ago

Thanks for pointing this out! disable=self.use_tqdm should be switched to disable=self.use_tqdm == False