Skip to content

Commit cdfc3a1

Browse files
author
sprenger
committed
[MLIO] update test
1 parent 602a849 commit cdfc3a1

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

neo/test/iotest/test_monkeylogicio.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,18 @@ class TestMonkeyLogicIO(unittest.TestCase):
2121
# TODO: Adjust this once ML files are on GIN
2222

2323
def test_read(self):
24-
filename = '/home/sprengerj/projects/monkey_logic/210909_TSCM_5cj_5cl_Riesling.bhv2'
25-
filename = '/home/sprengerj/projects/monkey_logic/sabrina/210810__learndms_userloop.bhv2'
24+
filename = '/home/sprengerj/projects/monkey_logic/guilhem/210909_TSCM_5cj_5cl_Riesling.bhv2'
25+
# filename = '/home/sprengerj/projects/monkey_logic/sabrina/210810__learndms_userloop.bhv2'
2626
# filename = '/home/sprengerj/projects/monkey_logic/sabrina/210916__learndms_userloop.bhv2'
2727
# filename = '/home/sprengerj/projects/monkey_logic/sabrina/210917__learndms_userloop.bhv2'
2828
io = MonkeyLogicIO(filename)
29-
io.read_block()
29+
bl = io.read_block()
30+
31+
assert len(bl.segments) == len(io.trial_ids)
32+
assert 'Trial' in bl.segments[0].annotations
33+
assert len(bl.segments[0].events) == 1
34+
print(bl.segments[0].events[0].times)
35+
3036

3137
if __name__ == "__main__":
3238
unittest.main()

0 commit comments

Comments
 (0)