Skip to content

Commit 949db7e

Browse files
committed
minor changes
1 parent e29cdca commit 949db7e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

stumpy/core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -557,9 +557,9 @@ def get_max_window_size(n):
557557
def check_window_size(m, max_size=None, n=None):
558558
"""
559559
Check the window size and ensure that it is greater than or equal to 3 and, if
560-
`max_size` is provided, ensure that the window size is less than or equal to the
561-
`max_size`. Furthermore, if `n` is provided, then a self-join is assumed and it
562-
checks whether all subsequences have at least one non-trivial neighbor.
560+
``max_size`` is provided, ensure that the window size is less than or equal to
561+
the ``max_size``. Furthermore, if ``n`` is provided, then a self-join is assumed
562+
and it checks whether all subsequences have at least one non-trivial neighbor.
563563
564564
Parameters
565565
----------
@@ -571,7 +571,7 @@ def check_window_size(m, max_size=None, n=None):
571571
572572
n : int, default None
573573
The length of the time series in the case of a self-join.
574-
`n` should be set to `None` in the case of an `AB-join`.
574+
``n`` should not be supplied (or set to ``None``) in the case of an AB-join.
575575
576576
Returns
577577
-------

stumpy/mstump.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,8 +1228,8 @@ def mstump(
12281228
err = f"T is {T_A.ndim}-dimensional and must be at least 1-dimensional"
12291229
raise ValueError(f"{err}")
12301230

1231-
# mstump currently supports self-join. Therefore, the argument `n=T_A.shape[1]`
1232-
# should be passed to the function `core.check_window_size`.
1231+
# mstump currently only supports self-join. Therefore, the argument `n=T_A.shape[1]`
1232+
# must be passed to the function `core.check_window_size`.
12331233
core.check_window_size(m, max_size=min(T_A.shape[1], T_B.shape[1]), n=T_A.shape[1])
12341234

12351235
if include is not None:

stumpy/mstumped.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,8 @@ def mstumped(
505505
err = f"T is {T_A.ndim}-dimensional and must be at least 1-dimensional"
506506
raise ValueError(f"{err}")
507507

508-
# mstump currently supports self-join. Therefore, the argument `n` should be
509-
# passed to the function `core.check_window_size`.
508+
# mstump currently only supports self-join. Therefore, the argument `n=T_A.shape[1]`
509+
# must be passed to the function `core.check_window_size`.
510510
core.check_window_size(m, max_size=min(T_A.shape[1], T_B.shape[1]), n=T_A.shape[1])
511511

512512
if include is not None:

0 commit comments

Comments
 (0)