()
| 7 | |
| 8 | |
| 9 | def 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) |
nothing calls this directly
no test coverage detected