Skip to content

Commit

Permalink
Modify metadata.yml according to #99 and #103 (#112)
Browse files Browse the repository at this point in the history
* Modify metadata.yml according to #99 and #103
- change name to "eyelink_metadata.yml" so that it has a unique name for 1. ezBIDS to look for in a folder and 2. for EyeLink because other eyetrackers will have other missing metadata and need their own file for the manual metadata
- change tests to look for new filename
- include commit 6e787b6 of metadata schema from bids specification

* Update eyelink_metadata.yml
  • Loading branch information
julia-pfarr authored Jan 21, 2025
1 parent d6c6b0e commit d044883
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
SampleCoordinateUnits: str
SampleCoordinateSystem: str
EnvironmentCoordinates: str
ScreenDistance: int
ScreenRefreshRate: int
ScreenSize: [float]

# Recommended (leave empty if not available but put information you want to share with your dataset here!):
SoftwareVersion: str
ScreenRefreshRate: int
ScreenSize: [float]
ScreenAOIDefinition: [str, [int]]
EyeCameraSettings:
EyeTrackerDistance: float
ScreenDistance: float # or express as X,Y,Z coordinates, e.g. [0.05, 0.30, 0.40]
EyeTrackerDistance: float # or express as X,Y,Z coordinates, e.g. [0.05, 0.30, 0.40]
FeatureDetectionSettings:
GazeMappingSettings:
RawDataFilters:
RawDataFilters: str
InstitutionName: str
InstitutionAddress: str
TaskName: str
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
SampleCoordinateUnits: pixel
SampleCoordinateSystem: gaze-on-screen
EnvironmentCoordinates: top-left
ScreenDistance: 60
ScreenDistance: 0.6
ScreenRefreshRate: 60
ScreenSize: [0.386, 0.29]

Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def root_dir() -> Path:
@pytest.mark.parametrize("output_dir", [data_dir() / "output", None])
@pytest.mark.parametrize("use_relative_path", [False, True])
def test_edf_cli(use_relative_path, output_dir, eyelink_test_data_dir):
metadata_file = data_dir() / "metadata.yml"
metadata_file = data_dir() / "eyelink_metadata.yml"

input_dir = eyelink_test_data_dir / "satf"
input_file = edf_test_files(input_dir=input_dir)[0]
Expand Down
8 changes: 4 additions & 4 deletions tests/test_edf2bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _check_output_content(output_dir, input_file, eye=1):
@pytest.mark.skipif(not _check_edf2asc_present(), reason="edf2asc missing")
def test_edf_end_to_end_all(eyelink_test_data_dir, folder):
"""Run conversion of all test datasets and check output."""
metadata_file = data_dir() / "metadata.yml"
metadata_file = data_dir() / "eyelink_metadata.yml"

input_dir = eyelink_test_data_dir / folder
input_file = edf_test_files(input_dir=input_dir)[0]
Expand All @@ -111,7 +111,7 @@ def test_edf_end_to_end_all(eyelink_test_data_dir, folder):
@pytest.mark.skipif(not _check_edf2asc_present(), reason="edf2asc missing")
def test_edf_end_to_end_emg_xfail(eyelink_test_data_dir, folder):
"""Run conversion of all test datasets and check output."""
metadata_file = data_dir() / "metadata.yml"
metadata_file = data_dir() / "eyelink_metadata.yml"

input_dir = eyelink_test_data_dir / folder
input_file = edf_test_files(input_dir=input_dir)[0]
Expand All @@ -128,7 +128,7 @@ def test_edf_end_to_end_emg_xfail(eyelink_test_data_dir, folder):
@pytest.mark.xfail(reason="Output is not a continuous recording. See #69.")
@pytest.mark.skipif(not _check_edf2asc_present(), reason="edf2asc missing")
def test_edf_end_to_end(eyelink_test_data_dir):
metadata_file = data_dir() / "metadata.yml"
metadata_file = data_dir() / "eyelink_metadata.yml"

input_dir = eyelink_test_data_dir / "satf"
input_file = edf_test_files(input_dir=input_dir)[0]
Expand Down Expand Up @@ -175,7 +175,7 @@ def test_edf_end_to_end_error_no_metadata(eyelink_test_data_dir):

@pytest.mark.skipif(not _check_edf2asc_present(), reason="edf2asc missing")
def test_edf_end_to_end_2eyes(eyelink_test_data_dir):
metadata_file = data_dir() / "metadata.yml"
metadata_file = data_dir() / "eyelink_metadata.yml"

input_dir = eyelink_test_data_dir / "2eyes"
input_file = edf_test_files(input_dir=input_dir)[0]
Expand Down

0 comments on commit d044883

Please sign in to comment.