MCPcopy
hub / github.com/ContextLab/hypertools / test_procrustes_func

Function test_procrustes_func

tests/test_procrustes.py:9–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8
9def test_procrustes_func():
10 target = load('spiral').get_data()[0]
11 rot = np.array([[-0.89433495, -0.44719485, -0.01348182],
12 [-0.43426149, 0.87492975, -0.21427761],
13 [-0.10761949, 0.18578133, 0.97667976]])
14 source = np.dot(target, rot)
15 source_aligned = procrustes(source,target)
16 assert np.allclose(target,source_aligned)

Callers

nothing calls this directly

Calls 3

loadFunction · 0.90
procrustesFunction · 0.90
get_dataMethod · 0.80

Tested by

no test coverage detected