Merge branch 'develop' of ssh://code.ascee.nl:12001/ASCEE/lasp into develop

This commit is contained in:
Anne de Jong 2022-10-11 14:50:49 +02:00
commit 0d6d72fb35

View File

@ -33,7 +33,9 @@ class OverallFilterBank:
""" """
Filter input data Filter input data
""" """
assert data.ndim == 2 if data.ndim == 1:
data = data[:, None]
elif data.ndim == 2:
assert data.shape[1] == 1, "invalid number of channels, should be 1" assert data.shape[1] == 1, "invalid number of channels, should be 1"
if data.shape[0] == 0: if data.shape[0] == 0: