We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 795af28 commit 1860cfbCopy full SHA for 1860cfb
stumpy/core.py
@@ -4525,6 +4525,22 @@ def check_self_join(ignore_trivial):
4525
Returns
4526
-------
4527
None
4528
+
4529
+ Notes
4530
+ -----
4531
+ These warnings may be supressed by using a context manager
4532
+ ```
4533
+ import stumpy
4534
+ import numpy as np
4535
+ import warnings
4536
4537
+ T = np.random.rand(10_000)
4538
+ m = 50
4539
+ with warnings.catch_warnings():
4540
+ warnings.filterwarnings("ignore", message="`ignore_trivial` cannot be `False`")
4541
+ for _ in range(5):
4542
+ stumpy.stump(T, m, ignore_trivial=False)
4543
4544
"""
4545
if not ignore_trivial:
4546
msg = "`ignore_trivial` cannot be `False` for a self-join and "
0 commit comments