-
Notifications
You must be signed in to change notification settings - Fork 338
Closed
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededtesting
Description
The mmotifs and aamp_mmotifs features were recently added but they need unit tests to accompany them:
-
Add naive implementation formmotifsandaamp_motifsintests/naive.py - Add
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_motifs.pyto thetest_unitfunction intest.sh - Add
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_aamp_motifs.pyto thetest_unitfunction intest.sh - Add unit tests for
mmotifsintests/test_mmotifs.py - Add unit tests for
aamp_motifsintests/test_aamp_mmotifs.py - Add
mmotifsandaamp_motifstostumpy/__init__.py - Add
mmotifstodocs/api.rst - Add Example section to
mmotifs()docstring:
Examples
--------
>>> mp = stumpy.stump(np.array([584., -11., 23., 79., 1001., 0., -19.]), m=3)
>>> stumpy.motifs(
... np.array([584., -11., 23., 79., 1001., 0., -19.]),
... mp[:, 0],
... max_distance=2.0)
(array([[0. , 0.11633857]]), array([[0, 4]]))
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededtesting