Skip to content

Commit 423c679

Browse files
committed
Fixed #1079 Bad error message in T.ndim
1 parent c707ad9 commit 423c679

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

stumpy/maamp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def maamp_multi_distance_profile(query_idx, T, m, include=None, discords=False,
438438
T, T_subseq_isfinite = core.preprocess_non_normalized(T, m)
439439

440440
if T.ndim <= 1: # pragma: no cover
441-
err = f"T is {T.ndim}-dimensional and must be at least 1-dimensional"
441+
err = f"T is {T.ndim}-dimensional and must be at least 2-dimensional"
442442
raise ValueError(f"{err}")
443443

444444
core.check_window_size(m, max_size=T.shape[1], n=T.shape[1])

stumpy/maamped.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def maamped(client, T, m, include=None, discords=False, p=2.0):
386386
T_B, T_B_subseq_isfinite = core.preprocess_non_normalized(T_B, m)
387387

388388
if T_A.ndim <= 1: # pragma: no cover
389-
err = f"T is {T_A.ndim}-dimensional and must be at least 1-dimensional"
389+
err = f"T is {T_A.ndim}-dimensional and must be at least 2-dimensional"
390390
raise ValueError(f"{err}")
391391

392392
core.check_window_size(m, max_size=min(T_A.shape[1], T_B.shape[1]), n=T_A.shape[1])

stumpy/mstump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ def multi_distance_profile(
624624
)
625625

626626
if T.ndim <= 1: # pragma: no cover
627-
err = f"T is {T.ndim}-dimensional and must be at least 1-dimensional"
627+
err = f"T is {T.ndim}-dimensional and must be at least 2-dimensional"
628628
raise ValueError(f"{err}")
629629

630630
core.check_window_size(m, max_size=T.shape[1])

stumpy/mstumped.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def mstumped(
502502
)
503503

504504
if T_A.ndim <= 1: # pragma: no cover
505-
err = f"T is {T_A.ndim}-dimensional and must be at least 1-dimensional"
505+
err = f"T is {T_A.ndim}-dimensional and must be at least 2-dimensional"
506506
raise ValueError(f"{err}")
507507

508508
# mstump currently only supports self-join. Therefore, the argument `n=T_A.shape[1]`

0 commit comments

Comments
 (0)