File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 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):
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
3137if __name__ == "__main__" :
3238 unittest .main ()
You can’t perform that action at this time.
0 commit comments