MCPcopy
hub / github.com/stumpy-dev/stumpy / test_mparray_init

Function test_mparray_init

tests/test_mparray.py:27–40  ·  view source on GitHub ↗
(T_A, T_B)

Source from the content-addressed store, hash-verified

25
26@pytest.mark.parametrize("T_A, T_B", test_data)
27def test_mparray_init(T_A, T_B):
28 # Test different `mparray` initialization approaches
29 m = 3
30 k = 2
31 arr = stump(T_B, m, ignore_trivial=True, k=k)
32 mp = mparray(arr, m, k, config.STUMPY_EXCL_ZONE_DENOM)
33 assert mp._m == m
34 assert mp._k == k
35 assert mp._excl_zone_denom == config.STUMPY_EXCL_ZONE_DENOM
36
37 slice_mp = mp[1:, :] # Initialize "new-from-template"
38 assert slice_mp._m == m
39 assert slice_mp._k == k
40 assert mp._excl_zone_denom == config.STUMPY_EXCL_ZONE_DENOM
41
42
43@pytest.mark.parametrize("T_A, T_B", test_data)

Callers

nothing calls this directly

Calls 2

stumpFunction · 0.90
mparrayClass · 0.90

Tested by

no test coverage detected