Skip to content

Commit df63e11

Browse files
committed
allow 1D delays in dasmtx
1 parent dd126c5 commit df63e11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pymust/dasmtx.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ def dasmtx(SIG: np.ndarray, x: np.ndarray, z: np.ndarray, *varargin) -> scipy.sp
332332

333333

334334
#%-- Number of elements
335+
assert isinstance(delaysTX,np.ndarray), 'delaysTX must be a numpy array.'
335336
if len(delaysTX.shape) == 1:
336337
delaysTX = delaysTX.reshape((1, -1))
337338
if delaysTX.shape[0] == nc and delaysTX.shape[1] != nc:

0 commit comments

Comments
 (0)