@@ -507,22 +507,27 @@ def test_href_eye_events(tmp_path):
507
507
"""Test Parsing file where Eye Event Data option was set to 'HREF'."""
508
508
out_file = tmp_path / "tmp_eyelink.asc"
509
509
lines = fname_href .read_text ("utf-8" ).splitlines ()
510
+ breakpoint ()
510
511
for li , line in enumerate (lines ):
511
512
if not line .startswith (("ESACC" , "EFIX" )):
512
513
continue
513
514
tokens = line .split ()
514
515
if line .startswith ("ESACC" ):
515
516
href_sacc_vals = ["9999" , "9999" , "9999" , "9999" , "99.99" , "999" ]
516
517
tokens [5 :5 ] = href_sacc_vals # add href saccade values
517
-
518
+ print (f"\n Line { li } : { line } " )
519
+ print (f"Tokens ({ len (tokens )} ): { tokens } " )
520
+
518
521
elif line .startswith ("EFIX" ):
519
522
tokens = line .split ()
520
523
href_fix_vals = ["9999.9" , "9999.9" , "999" ]
521
524
tokens [5 :3 ] = href_fix_vals
522
525
new_line = "\t " .join (tokens ) + "\n "
523
526
lines [li ] = new_line
524
527
out_file .write_text ("\n " .join (lines ), encoding = "utf-8" )
528
+ breakpoint ()
525
529
raw = read_raw_eyelink (out_file )
526
- # Just check that we actually parsed the Saccade and Fixation events
527
- assert "saccade" in raw .annotations .description
528
- assert "fixation" in raw .annotations .description
530
+ #breakpoint()
531
+ # # Just check that we actually parsed the Saccade and Fixation events
532
+ # assert "saccade" in raw.annotations.description
533
+ # assert "fixation" in raw.annotations.description
0 commit comments