11import numpy as np
22import numpy .testing as npt
33import pandas as pd
4- from stumpy import core , mstumped
4+ from stumpy import core , maamped
55import pytest
66from dask .distributed import Client , LocalCluster
77import warnings
@@ -26,7 +26,7 @@ def dask_cluster():
2626@pytest .mark .filterwarnings ("ignore:\\ s+Port 8787 is already in use:UserWarning" )
2727@pytest .mark .parametrize ("T, m" , test_data )
2828@pytest .mark .parametrize ("substitution_location" , substitution_locations )
29- def test_mstumped_one_subsequence_inf_self_join_first_dimension (
29+ def test_maamped_one_subsequence_inf_self_join_first_dimension (
3030 T , m , substitution_location , dask_cluster
3131):
3232 with Client (dask_cluster ) as dask_client :
@@ -35,8 +35,8 @@ def test_mstumped_one_subsequence_inf_self_join_first_dimension(
3535 T_sub = T .copy ()
3636 T_sub [0 , substitution_location ] = np .inf
3737
38- ref_P , ref_I = naive .mstump (T_sub , m , excl_zone )
39- comp_P , comp_I = mstumped (dask_client , T_sub , m )
38+ ref_P , ref_I = naive .maamp (T_sub , m , excl_zone )
39+ comp_P , comp_I = maamped (dask_client , T_sub , m )
4040
4141 npt .assert_almost_equal (ref_P , comp_P )
4242 npt .assert_almost_equal (ref_I , comp_I )
@@ -45,7 +45,7 @@ def test_mstumped_one_subsequence_inf_self_join_first_dimension(
4545@pytest .mark .filterwarnings ("ignore:\\ s+Port 8787 is already in use:UserWarning" )
4646@pytest .mark .parametrize ("T, m" , test_data )
4747@pytest .mark .parametrize ("substitution_location" , substitution_locations )
48- def test_mstumped_one_subsequence_inf_self_join_all_dimensions (
48+ def test_maamped_one_subsequence_inf_self_join_all_dimensions (
4949 T , m , substitution_location , dask_cluster
5050):
5151 with Client (dask_cluster ) as dask_client :
@@ -54,8 +54,8 @@ def test_mstumped_one_subsequence_inf_self_join_all_dimensions(
5454 T_sub = T .copy ()
5555 T_sub [:, substitution_location ] = np .inf
5656
57- ref_P , ref_I = naive .mstump (T_sub , m , excl_zone )
58- comp_P , comp_I = mstumped (dask_client , T_sub , m )
57+ ref_P , ref_I = naive .maamp (T_sub , m , excl_zone )
58+ comp_P , comp_I = maamped (dask_client , T_sub , m )
5959
6060 npt .assert_almost_equal (ref_P , comp_P )
6161 npt .assert_almost_equal (ref_I , comp_I )
0 commit comments