@@ -217,7 +217,7 @@ def subspace(
217217 array([0, 1])
218218 """
219219 T = core ._preprocess (T )
220- core .check_window_size (m , max_size = T .shape [- 1 ])
220+ core .check_window_size (m , max_size = T .shape [- 1 ], n = T . shape [ - 1 ] )
221221 T_subseq_isconstant = core .process_isconstant (T , m , T_subseq_isconstant )
222222
223223 if discretize_func is None :
@@ -409,7 +409,7 @@ def mdl(
409409 (array([ 80. , 111.509775]), [array([1]), array([0, 1])])
410410 """
411411 T = core ._preprocess (T )
412- core .check_window_size (m , max_size = T .shape [- 1 ])
412+ core .check_window_size (m , max_size = T .shape [- 1 ], n = T . shape [ - 1 ] )
413413 T_subseq_isconstant = core .process_isconstant (T , m , T_subseq_isconstant )
414414
415415 if discretize_func is None :
@@ -1228,7 +1228,9 @@ 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- core .check_window_size (m , max_size = min (T_A .shape [1 ], T_B .shape [1 ]))
1231+ # mstump currently supports self-join. Therefore, the argument `n` should be
1232+ # passed to the function `core.check_window_size`.
1233+ core .check_window_size (m , max_size = min (T_A .shape [1 ], T_B .shape [1 ]), n = T_A .shape [1 ])
12321234
12331235 if include is not None :
12341236 include = core ._preprocess_include (include )
0 commit comments