Example code: ```py from acoustics import room, bands t60 = room.t60_impulse(file, bands.octave(31.25, 16e3), "t30") ``` An error raised `ValueError: Digital filter critical frequencies must be 0 < Wn < 1`, which happens at the last frequency band https://github.com/python-acoustics/python-acoustics/blob/3147c6f579e4de5dbf60ba15ae7381cf1a84e0b1/acoustics/room.py#L169-L171 `octave_high()` gives the largest element of `high` is 22627.41699797, which is out of range of Nyquist at 44100Hz. That results in the `ValueError` in https://github.com/python-acoustics/python-acoustics/blob/3147c6f579e4de5dbf60ba15ae7381cf1a84e0b1/acoustics/room.py#L198 It may be better to check the frequency range in `octave_high` and `third_high` or just after they are called.
Example code:
An error raised
ValueError: Digital filter critical frequencies must be 0 < Wn < 1, which happens at the last frequency bandpython-acoustics/acoustics/room.py
Lines 169 to 171 in 3147c6f
octave_high()gives the largest element ofhighis 22627.41699797, which is out of range of Nyquist at 44100Hz. That results in theValueErrorinpython-acoustics/acoustics/room.py
Line 198 in 3147c6f
It may be better to check the frequency range in
octave_highandthird_highor just after they are called.