Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Jun 26, 2024
1 parent b348bd1 commit 6a771cc
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eye2bids/edf2bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ def edf2bids(

# Messages and events to physioevents.tsv.gz

if _2eyesmode(df_ms_reduced) == False:
if not _2eyesmode(df_ms_reduced):
output_eventsfilename_eye1 = generate_output_filename(
output_dir=output_dir,
input_file=input_file,
Expand Down
32 changes: 32 additions & 0 deletions satf_search_recording-eye1_physio.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"Manufacturer": "SR-Research",
"Columns": [
"x_coordinate",
"y_coordinate",
"pupil_size",
"timestamp"
],
"timestamp": {
"Description": "Timestamp issued by the eye-tracker indexing the continuous recordings corresponding to the sampled eye."
},
"x_coordinate": {
"Description": "Gaze position x-coordinate of the recorded eye, in the coordinate units specified in the corresponding metadata sidecar.",
"Units": "a.u."
},
"y_coordinate": {
"Description": "Gaze position y-coordinate of the recorded eye, in the coordinate units specified in the corresponding metadata sidecar.",
"Units": "a.u."
},
"pupil_size": {
"Description": "Pupil area of the recorded eye as calculated by the eye-tracker in arbitrary units (see EyeLink's documentation for conversion).",
"Units": "a.u."
},
"ManufacturersModelName": "EYELINK II CL v4.594 Jul 6 2012",
"DeviceSerialNumber": "CL1-ACF05",
"EyeTrackingMethod": "P-CR",
"PupilFitMethod": "CENTROID",
"SamplingFrequency": 500,
"StartTime": 3098681,
"StopTime": 4305132,
"RecordedEye": "Right"
}
Binary file added satf_search_recording-eye1_physio.tsv.gz
Binary file not shown.
2 changes: 0 additions & 2 deletions tests/test_edf2bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import json
from pathlib import Path

import numpy as np
import pandas as pd
import pytest

Expand All @@ -28,7 +27,6 @@
_load_asc_file_as_df,
_load_asc_file_as_reduced_df,
_physioevents_eye1,
_physioevents_eye2,
edf2bids,
)

Expand Down

0 comments on commit 6a771cc

Please sign in to comment.