Repository: aeye-lab/pymovements
Pull request #791 (2024-09-01 21:32:30)

split in definition custom_read_kwargs to gaze and precomputed_events…
due to the introduction of event only datasets (via #771) we need to be able to define `custom_read_kwargs` for both `gaze` and `precomputed_event` datasets

codecov[bot]: ## [Codecov](https://app.codecov.io/gh/aeye-lab/pymovements/pull/791?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aeye-lab) Report
All modified and coverable lines are covered by tests :white_check_mark:
> Project coverage is 99.93%. Comparing base [(`b545c41`)](https://app.codecov.io/gh/aeye-lab/pymovements/commit/b545c41e49193721ec60a3ec541e964f04183ac7?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aeye-lab) to head [(`c8ea396`)](https://app.codecov.io/gh/aeye-lab/pymovements/commit/c8ea396a3da6cf891a0887c820ea9a6c6df20edf?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aeye-lab).

<details><summary>Additional details and impacted files</summary>


```diff
@@             Coverage Diff             @@
##              main     #791      +/-   ##
===========================================
- Coverage   100.00%   99.93%   -0.07%     
===========================================
  Files           61       61              
  Lines         2914     2915       +1     
  Branches       779      718      -61     
===========================================
- Hits          2914     2913       -1     
- Misses           0        1       +1     
- Partials         0        1       +1     
```

</details>

[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/aeye-lab/pymovements/pull/791?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aeye-lab).   
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aeye-lab).


Patch:
diff --git a/docs/source/tutorials/local-dataset.ipynb b/docs/source/tutorials/local-dataset.ipynb
index 49eebf3..ae19af2 100644
--- a/docs/source/tutorials/local-dataset.ipynb
+++ b/docs/source/tutorials/local-dataset.ipynb
@@ -164,7 +164,7 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "custom_read_kwargs = {\n",
+    "gaze_custom_read_kwargs = {\n",
     "    'separator': '\\t',\n",
     "}"
    ]
@@ -253,7 +253,7 @@
     "    experiment=experiment,\n",
     "    filename_format=filename_format,\n",
     "    filename_format_dtypes=filename_format_dtypes,\n",
-    "    custom_read_kwargs=custom_read_kwargs,\n",
+    "    gaze_custom_read_kwargs=gaze_custom_read_kwargs,\n",
     "    time_column=time_column,\n",
     "    time_unit=time_unit,\n",
     "    pixel_columns=pixel_columns,\n",
diff --git a/src/pymovements/dataset/dataset_definition.py b/src/pymovements/dataset/dataset_definition.py
index 098be5a..4e8d152 100644
--- a/src/pymovements/dataset/dataset_definition.py
+++ b/src/pymovements/dataset/dataset_definition.py
@@ -52,7 +52,7 @@ class DatasetDefinition:
     filename_format_dtypes: dict[str, type]
         If named groups are present in the `filename_format`, this makes it possible to cast
         specific named groups to a particular datatype. (default: field(default_factory=dict))
-    custom_read_kwargs : dict[str, Any]
+    gaze_custom_read_kwargs : dict[str, Any]
         If specified, these keyword arguments will be passed to the file reading function. The
         behavior of this argument depends on the file extension of the dataset files.
         If the file extension is `.csv` the keyword arguments will be passed
@@ -102,23 +102,25 @@ class DatasetDefinition:
 
     Notes
     -----
-    When working with the ``custom_read_kwargs`` attribute there are specific use cases and
+    When working with the ``gaze_custom_read_kwargs`` attribute there are specific use cases and
     considerations to keep in mind, especially for reading csv files:
 
     1. Custom separator
     To read a csv file with a custom separator, you can pass the `separator` keyword argument to
-    ``custom_read_kwargs``. For example pass ``custom_read_kwargs={'separator': ';'}`` to read a
-    semicolon-separated csv file.
+    ``gaze_custom_read_kwargs``. For example pass ``gaze_custom_read_kwargs={'separator': ';'}`` to
+    read a semicolon-separated csv file.
 
     2. Reading subset of columns
-    To read only specific columns, specify them in ``custom_read_kwargs``. For example:
-    ``custom_read_kwargs={'columns': ['col1', 'col2']}``
+    To read only specific columns, specify them in ``gaze_custom_read_kwargs``. For example:
+    ``gaze_custom_read_kwargs={'columns': ['col1', 'col2']}``
 
     3. Specifying column datatypes
     ``polars.read_csv`` infers data types from a fixed number of rows, which might not be accurate
     for the entire dataset. To ensure correct data types, you can pass a dictionary to the
-    ``dtypes`` keyword argument in ``custom_read_kwargs``. Use data types from the `polars` library.
-    For instance: ``custom_read_kwargs={'dtypes': {'col1': polars.Int64, 'col2': polars.Float64}}``
+    ``dtypes`` keyword argument in ``gaze_custom_read_kwargs``.
+    Use data types from the `polars` library.
+    For instance:
+    ``gaze_custom_read_kwargs={'dtypes': {'col1': polars.Int64, 'col2': polars.Float64}}``
     """
 
     # pylint: disable=too-many-instance-attributes
@@ -138,7 +140,8 @@ class DatasetDefinition:
 
     filename_format_dtypes: dict[str, type] = field(default_factory=dict)
 
-    custom_read_kwargs: dict[str, Any] = field(default_factory=dict)
+    precomputed_event_custom_read_kwargs: dict[str, Any] = field(default_factory=dict)
+    gaze_custom_read_kwargs: dict[str, Any] = field(default_factory=dict)
 
     column_map: dict[str, str] = field(default_factory=dict)
 
diff --git a/src/pymovements/dataset/dataset_files.py b/src/pymovements/dataset/dataset_files.py
index ae0399e..bded250 100644
--- a/src/pymovements/dataset/dataset_files.py
+++ b/src/pymovements/dataset/dataset_files.py
@@ -224,7 +224,7 @@ def load_gaze_files(
             fileinfo_row=fileinfo_row,
             definition=definition,
             preprocessed=preprocessed,
-            custom_read_kwargs=definition.custom_read_kwargs,
+            custom_read_kwargs=definition.gaze_custom_read_kwargs,
         )
         gaze_dfs.append(gaze_df)
 
@@ -381,7 +381,12 @@ def load_precomputed_event_files(
     precomputed_events = []
     for resource in definition.precomputed_event_resources:
         data_path = paths.precomputed_events / resource['filename']
-        precomputed_events.append(load_precomputed_event_file(data_path))
+        precomputed_events.append(
+            load_precomputed_event_file(
+                data_path,
+                definition.precomputed_event_custom_read_kwargs,
+            ),
+        )
     return precomputed_events
 
 
diff --git a/src/pymovements/datasets/gaze_graph.py b/src/pymovements/datasets/gaze_graph.py
index 9333fc7..724f206 100644
--- a/src/pymovements/datasets/gaze_graph.py
+++ b/src/pymovements/datasets/gaze_graph.py
@@ -77,7 +77,7 @@ class GazeGraph(DatasetDefinition):
     column_map : dict[str, str]
         The keys are the columns to read, the values are the names to which they should be renamed.
 
-    custom_read_kwargs : dict[str, Any], optional
+    gaze_custom_read_kwargs : dict[str, Any], optional
         If specified, these keyword arguments will be passed to the file reading function.
 
     Examples
@@ -145,7 +145,7 @@ class GazeGraph(DatasetDefinition):
 
     column_map: dict[str, str] = field(default_factory=lambda: {})
 
-    custom_read_kwargs: dict[str, Any] = field(
+    gaze_custom_read_kwargs: dict[str, Any] = field(
         default_factory=lambda: {
             'separator': ',',
             'has_header': False,
diff --git a/src/pymovements/datasets/gaze_on_faces.py b/src/pymovements/datasets/gaze_on_faces.py
index a6ea899..0831b6a 100644
--- a/src/pymovements/datasets/gaze_on_faces.py
+++ b/src/pymovements/datasets/gaze_on_faces.py
@@ -74,7 +74,7 @@ class GazeOnFaces(DatasetDefinition):
     column_map : dict[str, str]
         The keys are the columns to read, the values are the names to which they should be renamed.
 
-    custom_read_kwargs : dict[str, Any], optional
+    gaze_custom_read_kwargs : dict[str, Any], optional
         If specified, these keyword arguments will be passed to the file reading function.
 
     Examples
@@ -141,7 +141,7 @@ class GazeOnFaces(DatasetDefinition):
 
     column_map: dict[str, str] = field(default_factory=lambda: {})
 
-    custom_read_kwargs: dict[str, Any] = field(
+    gaze_custom_read_kwargs: dict[str, Any] = field(
         default_factory=lambda: {
             'separator': ',',
             'has_header': False,
diff --git a/src/pymovements/datasets/gazebase.py b/src/pymovements/datasets/gazebase.py
index fd2b49e..74b4854 100644
--- a/src/pymovements/datasets/gazebase.py
+++ b/src/pymovements/datasets/gazebase.py
@@ -78,7 +78,7 @@ class GazeBase(DatasetDefinition):
     column_map : dict[str, str]
         The keys are the columns to read, the values are the names to which they should be renamed.
 
-    custom_read_kwargs : dict[str, Any], optional
+    gaze_custom_read_kwargs : dict[str, Any], optional
         If specified, these keyword arguments will be passed to the file reading function.
 
     Examples
@@ -158,7 +158,7 @@ class GazeBase(DatasetDefinition):
         },
     )
 
-    custom_read_kwargs: dict[str, Any] = field(
+    gaze_custom_read_kwargs: dict[str, Any] = field(
         default_factory=lambda: {
             'null_values': 'NaN',
             'dtypes': {
diff --git a/src/pymovements/datasets/gazebasevr.py b/src/pymovements/datasets/gazebasevr.py
index a636d55..e9d616e 100644
--- a/src/pymovements/datasets/gazebasevr.py
+++ b/src/pymovements/datasets/gazebasevr.py
@@ -79,7 +79,7 @@ class GazeBaseVR(DatasetDefinition):
     column_map : dict[str, str]
         The keys are the columns to read, the values are the names to which they should be renamed.
 
-    custom_read_kwargs : dict[str, Any], optional
+    gaze_custom_read_kwargs : dict[str, Any], optional
         If specified, these keyword arguments will be passed to the file reading function.
 
     Examples
@@ -158,7 +158,7 @@ class GazeBaseVR(DatasetDefinition):
         },
     )
 
-    custom_read_kwargs: dict[str, Any] = field(
+    gaze_custom_read_kwargs: dict[str, Any] = field(
         default_factory=lambda: {
             'dtypes': {
                 'n': pl.Float32,
diff --git a/src/pymovements/datasets/hbn.py b/src/pymovements/datasets/hbn.py
index 9803c5c..8d88681 100644
--- a/src/pymovements/datasets/hbn.py
+++ b/src/pymovements/datasets/hbn.py
@@ -73,7 +73,7 @@ class HBN(DatasetDefinition):
     column_map : dict[str, str]
         The keys are the columns to read, the values are the names to which they should be renamed.
 
-    custom_read_kwargs : dict[str, Any], optional
+    gaze_custom_read_kwargs : dict[str, Any], optional
         If specified, these keyword arguments will be passed to the file reading function.
 
     Examples
@@ -140,7 +140,7 @@ class HBN(DatasetDefinition):
 
     column_map: dict[str, str] = field(default_factory=lambda: {})
 
-    custom_read_kwargs: dict[str, Any] = field(
+    gaze_custom_read_kwargs: dict[str, Any] = field(
         default_factory=lambda: {
             'separator': ',',
             'columns': ['time', 'x_pix', 'y_pix'],
diff --git a/src/pymovements/datasets/judo1000.py b/src/pymovements/datasets/judo1000.py
index dc77f63..8c39747 100644
--- a/src/pymovements/datasets/judo1000.py
+++ b/src/pymovements/datasets/judo1000.py
@@ -72,7 +72,7 @@ class JuDo1000(DatasetDefinition):
     column_map : dict[str, str]
         The keys are the columns to read, the values are the names to which they should be renamed.
 
-    custom_read_kwargs : dict[str, Any], optional
+    gaze_custom_read_kwargs : dict[str, Any], optional
         If specified, these keyword arguments will be passed to the file reading function.
 
     Examples
@@ -150,7 +150,7 @@ class JuDo1000(DatasetDefinition):
         },
     )
 
-    custom_read_kwargs: dict[str, Any] = field(
+    gaze_custom_read_kwargs: dict[str, Any] = field(
         default_factory=lambda: {
             'dtypes': {
                 'trialId': pl.Int64,
diff --git a/src/pymovements/datasets/potec.py b/src/pymovements/datasets/potec.py
index db522ab..8a3f7e8 100644
--- a/src/pymovements/datasets/potec.py
+++ b/src/pymovements/datasets/potec.py
@@ -82,7 +82,7 @@ class PoTeC(DatasetDefinition):
     column_map : dict[str, str]
         The keys are the columns to read, the values are the names to which they should be renamed.
 
-    custom_read_kwargs : dict[str, Any], optional
+    gaze_custom_read_kwargs : dict[str, Any], optional
         If specified, these keyword arguments will be passed to the file reading function.
 
     Examples
@@ -153,7 +153,7 @@ class PoTeC(DatasetDefinition):
         ],
     )
 
-    custom_read_kwargs: dict[str, Any] = field(
+    gaze_custom_read_kwargs: dict[str, Any] = field(
         default_factory=lambda: {
             'dtypes': {
                 'time': pl.Int64,
diff --git a/src/pymovements/datasets/sb_sat.py b/src/pymovements/datasets/sb_sat.py
index 41c892f..3daf5d7 100644
--- a/src/pymovements/datasets/sb_sat.py
+++ b/src/pymovements/datasets/sb_sat.py
@@ -73,7 +73,7 @@ class SBSAT(DatasetDefinition):
     column_map : dict[str, str]
         The keys are the columns to read, the values are the names to which they should be renamed.
 
-    custom_read_kwargs : dict[str, Any], optional
+    gaze_custom_read_kwargs : dict[str, Any], optional
         If specified, these keyword arguments will be passed to the file reading function.
 
     Examples
@@ -159,7 +159,7 @@ class SBSAT(DatasetDefinition):
 
     column_map: dict[str, str] = field(default_factory=lambda: {})
 
-    custom_read_kwargs: dict[str, Any] = field(
+    gaze_custom_read_kwargs: dict[str, Any] = field(
         default_factory=lambda: {
             'separator': '\t',
             'columns': ['time', 'book_name', 'screen_id', 'x_left', 'y_left', 'pupil_left'],
diff --git a/src/pymovements/datasets/toy_dataset.py b/src/pymovements/datasets/toy_dataset.py
index e9d9866..f75e683 100644
--- a/src/pymovements/datasets/toy_dataset.py
+++ b/src/pymovements/datasets/toy_dataset.py
@@ -70,7 +70,7 @@ class ToyDataset(DatasetDefinition):
     column_map : dict[str, str]
         The keys are the columns to read, the values are the names to which they should be renamed.
 
-    custom_read_kwargs : dict[str, Any], optional
+    gaze_custom_read_kwargs : dict[str, Any], optional
         If specified, these keyword arguments will be passed to the file reading function.
 
     Examples
@@ -138,7 +138,7 @@ class ToyDataset(DatasetDefinition):
 
     column_map: dict[str, str] = field(default_factory=lambda: {})
 
-    custom_read_kwargs: dict[str, Any] = field(
+    gaze_custom_read_kwargs: dict[str, Any] = field(
         default_factory=lambda: {
             'columns': ['timestamp', 'x', 'y', 'stimuli_x', 'stimuli_y'],
             'dtypes': {
diff --git a/src/pymovements/datasets/toy_dataset_eyelink.py b/src/pymovements/datasets/toy_dataset_eyelink.py
index 4677435..ce8cf9b 100644
--- a/src/pymovements/datasets/toy_dataset_eyelink.py
+++ b/src/pymovements/datasets/toy_dataset_eyelink.py
@@ -71,7 +71,7 @@ class ToyDatasetEyeLink(DatasetDefinition):
     column_map : dict[str, str]
         The keys are the columns to read, the values are the names to which they should be renamed.
 
-    custom_read_kwargs : dict[str, Any], optional
+    gaze_custom_read_kwargs : dict[str, Any], optional
         If specified, these keyword arguments will be passed to the file reading function.
 
     Examples
@@ -145,7 +145,7 @@ class ToyDatasetEyeLink(DatasetDefinition):
 
     pixel_columns: list[str] = field(default_factory=lambda: ['x_pix', 'y_pix'])
 
-    custom_read_kwargs: dict[str, Any] = field(
+    gaze_custom_read_kwargs: dict[str, Any] = field(
         default_factory=lambda: {
             'patterns': [
                 {


Test patch:
diff --git a/tests/functional/gaze_file_processing_test.py b/tests/functional/gaze_file_processing_test.py
index caa5431..e15cfa3 100644
--- a/tests/functional/gaze_file_processing_test.py
+++ b/tests/functional/gaze_file_processing_test.py
@@ -84,7 +84,7 @@ def fixture_gaze_init_kwargs(request):
             'time_unit': pm.datasets.SBSAT().time_unit,
             'pixel_columns': pm.datasets.SBSAT().pixel_columns,
             'experiment': pm.datasets.SBSAT().experiment,
-            **pm.datasets.SBSAT().custom_read_kwargs,
+            **pm.datasets.SBSAT().gaze_custom_read_kwargs,
         },
         'gaze_on_faces': {
             'file': 'tests/files/gaze_on_faces_example.csv',
@@ -92,7 +92,7 @@ def fixture_gaze_init_kwargs(request):
             'time_unit': pm.datasets.GazeOnFaces().time_unit,
             'pixel_columns': pm.datasets.GazeOnFaces().pixel_columns,
             'experiment': pm.datasets.GazeOnFaces().experiment,
-            **pm.datasets.GazeOnFaces().custom_read_kwargs,
+            **pm.datasets.GazeOnFaces().gaze_custom_read_kwargs,
         },
         'gazebase': {
             'file': 'tests/files/gazebase_example.csv',
@@ -114,7 +114,7 @@ def fixture_gaze_init_kwargs(request):
             'time_unit': pm.datasets.JuDo1000().time_unit,
             'pixel_columns': pm.datasets.JuDo1000().pixel_columns,
             'experiment': pm.datasets.JuDo1000().experiment,
-            **pm.datasets.JuDo1000().custom_read_kwargs,
+            **pm.datasets.JuDo1000().gaze_custom_read_kwargs,
         },
         'potec': {
             'file': 'tests/files/potec_example.tsv',
@@ -122,7 +122,7 @@ def fixture_gaze_init_kwargs(request):
             'time_unit': pm.datasets.PoTeC().time_unit,
             'pixel_columns': pm.datasets.PoTeC().pixel_columns,
             'experiment': pm.datasets.PoTeC().experiment,
-            **pm.datasets.PoTeC().custom_read_kwargs,
+            **pm.datasets.PoTeC().gaze_custom_read_kwargs,
         },
 
     }
diff --git a/tests/unit/dataset/dataset_download_test.py b/tests/unit/dataset/dataset_download_test.py
index d08d994..11ec928 100644
--- a/tests/unit/dataset/dataset_download_test.py
+++ b/tests/unit/dataset/dataset_download_test.py
@@ -75,7 +75,7 @@ def dataset_definition_fixture(request):
             extract_precomputed_data: bool = True
 
         return CustomPublicDataset()
-    elif request.param == 'CustomGazeOnly':
+    if request.param == 'CustomGazeOnly':
         @dataclass
         @pm.register_dataset
         class CustomPublicDataset(pm.DatasetDefinition):
@@ -98,7 +98,7 @@ def dataset_definition_fixture(request):
             has_precomputed_event_files: bool = False
 
         return CustomPublicDataset()
-    elif request.param == 'CustomPrecomputedOnly':
+    if request.param == 'CustomPrecomputedOnly':
         @dataclass
         @pm.register_dataset
         class CustomPublicDataset(pm.DatasetDefinition):
@@ -122,7 +122,7 @@ def dataset_definition_fixture(request):
             extract_precomputed_data: bool = True
 
         return CustomPublicDataset()
-    elif request.param == 'CustomPrecomputedOnlyNoExtract':
+    if request.param == 'CustomPrecomputedOnlyNoExtract':
         @dataclass
         @pm.register_dataset
         class CustomPublicDataset(pm.DatasetDefinition):
@@ -851,12 +851,12 @@ def test_public_dataset_registered_correct_attributes(tmp_path, dataset_definiti
     assert dataset.definition.experiment == dataset_definition.experiment
     assert dataset.definition.filename_format == dataset_definition.filename_format
     assert dataset.definition.filename_format_dtypes == dataset_definition.filename_format_dtypes
-    assert dataset.definition.custom_read_kwargs == dataset_definition.custom_read_kwargs
+    assert dataset.definition.gaze_custom_read_kwargs == dataset_definition.gaze_custom_read_kwargs
     assert dataset.definition.has_precomputed_event_files == dataset_definition.has_precomputed_event_files  # noqa: E501
     assert dataset.definition.has_gaze_files == dataset_definition.has_gaze_files
 
 
-def test_extract_dataset_precomputed_move_single_file(tmp_path):
+def test_extract_dataset_precomputed_move_single_file():
     class PrecomputedResourcesDefinition(pm.DatasetDefinition):
         name: str = 'CustomPublicDataset'
 
diff --git a/tests/unit/datasets/datasets_test.py b/tests/unit/datasets/datasets_test.py
index 4513505..528bacd 100644
--- a/tests/unit/datasets/datasets_test.py
+++ b/tests/unit/datasets/datasets_test.py
@@ -100,8 +100,8 @@ def test_public_dataset_registered(public_dataset, dataset_name, dataset_path, d
     assert dataset_definition.filename_format_dtypes == registered_definition.filename_format_dtypes
     assert dataset_definition.has_gaze_files == registered_definition.has_gaze_files
     assert dataset_definition.has_precomputed_event_files == registered_definition.has_precomputed_event_files  # noqa: E501
-    assert dataset_definition.custom_read_kwargs == registered_definition.custom_read_kwargs
-
+    assert dataset_definition.gaze_custom_read_kwargs == registered_definition.gaze_custom_read_kwargs  # noqa: E501
+    assert dataset_definition.precomputed_event_custom_read_kwargs == registered_definition.precomputed_event_custom_read_kwargs  # noqa: E501
     dataset, expected_paths = construct_public_dataset(
         public_dataset,
         dataset_path,
diff --git a/tests/unit/gaze/io/asc_test.py b/tests/unit/gaze/io/asc_test.py
index c5fb157..e4f1324 100644
--- a/tests/unit/gaze/io/asc_test.py
+++ b/tests/unit/gaze/io/asc_test.py
@@ -61,8 +61,8 @@ import pymovements as pm
         pytest.param(
             {
                 'file': 'tests/files/eyelink_monocular_example.asc',
-                'patterns': pm.datasets.ToyDatasetEyeLink().custom_read_kwargs['patterns'],
-                'schema': pm.datasets.ToyDatasetEyeLink().custom_read_kwargs['schema'],
+                'patterns': pm.datasets.ToyDatasetEyeLink().gaze_custom_read_kwargs['patterns'],
+                'schema': pm.datasets.ToyDatasetEyeLink().gaze_custom_read_kwargs['schema'],
             },
             pl.DataFrame(
                 data={
diff --git a/tests/unit/gaze/io/csv_test.py b/tests/unit/gaze/io/csv_test.py
index d24a645..08b67d9 100644
--- a/tests/unit/gaze/io/csv_test.py
+++ b/tests/unit/gaze/io/csv_test.py
@@ -65,7 +65,7 @@ import pymovements as pm
                 'time_column': pm.datasets.SBSAT().time_column,
                 'time_unit': pm.datasets.SBSAT().time_unit,
                 'pixel_columns': pm.datasets.SBSAT().pixel_columns,
-                **pm.datasets.SBSAT().custom_read_kwargs,
+                **pm.datasets.SBSAT().gaze_custom_read_kwargs,
             },
             (10, 5),
             id='sbsat_dataset_example',
@@ -76,7 +76,7 @@ import pymovements as pm
                 'time_column': pm.datasets.GazeBase().time_column,
                 'time_unit': pm.datasets.GazeBase().time_unit,
                 'position_columns': pm.datasets.GazeBase().position_columns,
-                **pm.datasets.GazeBase().custom_read_kwargs,
+                **pm.datasets.GazeBase().gaze_custom_read_kwargs,
             },
             (10, 7),
             id='gazebase_dataset_example',
@@ -87,7 +87,7 @@ import pymovements as pm
                 'time_column': pm.datasets.GazeOnFaces().time_column,
                 'time_unit': pm.datasets.GazeOnFaces().time_unit,
                 'pixel_columns': pm.datasets.GazeOnFaces().pixel_columns,
-                **pm.datasets.GazeOnFaces().custom_read_kwargs,
+                **pm.datasets.GazeOnFaces().gaze_custom_read_kwargs,
             },
             (10, 1),
             id='gaze_on_faces_dataset_example',
@@ -108,7 +108,7 @@ import pymovements as pm
                 'time_column': pm.datasets.JuDo1000().time_column,
                 'time_unit': pm.datasets.JuDo1000().time_unit,
                 'pixel_columns': pm.datasets.JuDo1000().pixel_columns,
-                **pm.datasets.JuDo1000().custom_read_kwargs,
+                **pm.datasets.JuDo1000().gaze_custom_read_kwargs,
             },
             (10, 4),
             id='judo1000_dataset_example',