Skip to content

Commit a30908d

Browse files
committed
make np.unique call compat with older numpy
1 parent 85d7f95 commit a30908d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/aspire/operators/filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def _init_size(self):
331331
Check sizes of _components are coherent and initialize resulting length.
332332
"""
333333
filter_lengths = [len(f) for f in self._components]
334-
filter_lengths = np.unique(filter_lengths, sorted=True)
334+
filter_lengths = np.unique(filter_lengths) # defaults to sorted=True
335335

336336
# Code should be able to broadcast n_filters with n_filters, or n_filters with 1_filters.
337337
# Any other combination is considered an error.

0 commit comments

Comments
 (0)