File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,18 @@ class TestMonkeyLogicIO(unittest.TestCase):
21
21
# TODO: Adjust this once ML files are on GIN
22
22
23
23
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'
26
26
# filename = '/home/sprengerj/projects/monkey_logic/sabrina/210916__learndms_userloop.bhv2'
27
27
# filename = '/home/sprengerj/projects/monkey_logic/sabrina/210917__learndms_userloop.bhv2'
28
28
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
+
30
36
31
37
if __name__ == "__main__" :
32
38
unittest .main ()
You can’t perform that action at this time.
0 commit comments