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

Function test_force_align

tests/test_format_data.py:58–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57
58def test_force_align():
59 mat = np.random.rand(4, 3)
60 df = pd.DataFrame(np.random.rand(4, 3))
61 text = ['here is some test text', 'and a little more', 'and more', 'just a bit more']
62 res = format_data([mat, df, text])
63 assert isinstance(res, list)
64 assert all(map(lambda x: isinstance(x, np.ndarray), res))
65 assert all(map(lambda x: x.shape[1] == 50, res))

Callers

nothing calls this directly

Calls 1

format_dataFunction · 0.90

Tested by

no test coverage detected