Fixed assert in octave filter
This commit is contained in:
parent
6aa1262c73
commit
6ed88af3e2
@ -33,8 +33,10 @@ class OverallFilterBank:
|
||||
"""
|
||||
Filter input data
|
||||
"""
|
||||
assert data.ndim == 2
|
||||
assert data.shape[1] == 1, "invalid number of channels, should be 1"
|
||||
if data.ndim == 1:
|
||||
data = data[:, None]
|
||||
elif data.ndim == 2:
|
||||
assert data.shape[1] == 1, "invalid number of channels, should be 1"
|
||||
|
||||
if data.shape[0] == 0:
|
||||
return {}
|
||||
|
Loading…
Reference in New Issue
Block a user