eegdash 0.4.0.dev150__tar.gz → 0.4.0.dev153__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of eegdash might be problematic. Click here for more details.

Files changed (73) hide show
  1. {eegdash-0.4.0.dev150/eegdash.egg-info → eegdash-0.4.0.dev153}/PKG-INFO +1 -1
  2. eegdash-0.4.0.dev153/docs/source/_templates/autosummary/module.rst +65 -0
  3. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/docs/source/conf.py +29 -0
  4. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/docs/source/dataset_summary/bubble.rst +2 -0
  5. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/docs/source/dataset_summary/kde.rst +2 -0
  6. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/docs/source/user_guide.rst +21 -16
  7. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/__init__.py +1 -1
  8. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153/eegdash.egg-info}/PKG-INFO +1 -1
  9. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash.egg-info/SOURCES.txt +1 -0
  10. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/LICENSE +0 -0
  11. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/MANIFEST.in +0 -0
  12. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/README.md +0 -0
  13. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/docs/Makefile +0 -0
  14. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/docs/source/api/api.rst +0 -0
  15. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/docs/source/api/api_core.rst +0 -0
  16. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/docs/source/api/api_features.rst +0 -0
  17. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/docs/source/dataset_summary/table.rst +0 -0
  18. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/docs/source/dataset_summary.rst +0 -0
  19. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/docs/source/index.rst +0 -0
  20. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/docs/source/install/install.rst +0 -0
  21. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/docs/source/install/install_pip.rst +0 -0
  22. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/docs/source/install/install_source.rst +0 -0
  23. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/docs/source/sg_execution_times.rst +0 -0
  24. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/api.py +0 -0
  25. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/bids_eeg_metadata.py +0 -0
  26. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/const.py +0 -0
  27. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/data_utils.py +0 -0
  28. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/dataset/__init__.py +0 -0
  29. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/dataset/dataset.py +0 -0
  30. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/dataset/dataset_summary.csv +0 -0
  31. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/dataset/registry.py +0 -0
  32. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/downloader.py +0 -0
  33. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/features/__init__.py +0 -0
  34. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/features/datasets.py +0 -0
  35. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/features/decorators.py +0 -0
  36. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/features/extractors.py +0 -0
  37. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/features/feature_bank/__init__.py +0 -0
  38. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/features/feature_bank/complexity.py +0 -0
  39. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/features/feature_bank/connectivity.py +0 -0
  40. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/features/feature_bank/csp.py +0 -0
  41. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/features/feature_bank/dimensionality.py +0 -0
  42. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/features/feature_bank/signal.py +0 -0
  43. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/features/feature_bank/spectral.py +0 -0
  44. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/features/feature_bank/utils.py +0 -0
  45. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/features/inspect.py +0 -0
  46. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/features/serialization.py +0 -0
  47. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/features/utils.py +0 -0
  48. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/hbn/__init__.py +0 -0
  49. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/hbn/preprocessing.py +0 -0
  50. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/hbn/windows.py +0 -0
  51. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/logging.py +0 -0
  52. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/mongodb.py +0 -0
  53. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/paths.py +0 -0
  54. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash/utils.py +0 -0
  55. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash.egg-info/dependency_links.txt +0 -0
  56. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash.egg-info/requires.txt +0 -0
  57. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/eegdash.egg-info/top_level.txt +0 -0
  58. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/pyproject.toml +0 -0
  59. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/setup.cfg +0 -0
  60. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/tests/test_api.py +0 -0
  61. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/tests/test_bids_dependencies.py +0 -0
  62. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/tests/test_cache_folder_suffix.py +0 -0
  63. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/tests/test_challenge_kwargs.py +0 -0
  64. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/tests/test_correctness.py +0 -0
  65. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/tests/test_dataset.py +0 -0
  66. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/tests/test_dataset_registration.py +0 -0
  67. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/tests/test_downloader.py +0 -0
  68. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/tests/test_eegdash.py +0 -0
  69. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/tests/test_init.py +0 -0
  70. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/tests/test_minirelease.py +0 -0
  71. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/tests/test_mongo_connection.py +0 -0
  72. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/tests/test_offline.py +0 -0
  73. {eegdash-0.4.0.dev150 → eegdash-0.4.0.dev153}/tests/test_query.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eegdash
3
- Version: 0.4.0.dev150
3
+ Version: 0.4.0.dev153
4
4
  Summary: EEG data for machine learning
5
5
  Author-email: Young Truong <dt.young112@gmail.com>, Arnaud Delorme <adelorme@gmail.com>, Aviv Dotan <avivd220@gmail.com>, Oren Shriki <oren70@gmail.com>, Bruno Aristimunha <b.aristimunha@gmail.com>
6
6
  License-Expression: GPL-3.0-only
@@ -0,0 +1,65 @@
1
+ {{ fullname | escape | underline}}
2
+
3
+ .. automodule:: {{ fullname }}
4
+ :members:
5
+ :undoc-members:
6
+ :show-inheritance:
7
+ :member-order: bysource
8
+
9
+ {% block attributes %}
10
+ {%- if attributes %}
11
+ .. rubric:: {{ _('Module Attributes') }}
12
+
13
+ .. autosummary::
14
+ {% for item in attributes %}
15
+ {{ item }}
16
+ {%- endfor %}
17
+ {% endif %}
18
+ {%- endblock %}
19
+
20
+ {%- block functions %}
21
+ {%- if functions %}
22
+ .. rubric:: {{ _('Functions') }}
23
+
24
+ .. autosummary::
25
+ {% for item in functions %}
26
+ {{ item }}
27
+ {%- endfor %}
28
+ {% endif %}
29
+ {%- endblock %}
30
+
31
+ {%- block classes %}
32
+ {%- if classes %}
33
+ .. rubric:: {{ _('Classes') }}
34
+
35
+ .. autosummary::
36
+ {% for item in classes %}
37
+ {{ item }}
38
+ {%- endfor %}
39
+ {% endif %}
40
+ {%- endblock %}
41
+
42
+ {%- block exceptions %}
43
+ {%- if exceptions %}
44
+ .. rubric:: {{ _('Exceptions') }}
45
+
46
+ .. autosummary::
47
+ {% for item in exceptions %}
48
+ {{ item }}
49
+ {%- endfor %}
50
+ {% endif %}
51
+ {%- endblock %}
52
+
53
+ {%- block modules %}
54
+ {%- if modules %}
55
+ .. rubric:: Modules
56
+
57
+ .. autosummary::
58
+ :toctree:
59
+ :recursive:
60
+ {% for item in modules %}
61
+ {{ item }}
62
+ {%- endfor %}
63
+ {% endif %}
64
+ {%- endblock %}
65
+
@@ -293,6 +293,14 @@ EEGDash currently exposes **{dataset_count} OpenNeuro EEG datasets** that are
293
293
  registered dynamically from mongo database. The table below summarises
294
294
  the distribution by experimental type as tracked in the summary file.
295
295
 
296
+ Base Dataset API
297
+ ----------------
298
+
299
+ .. toctree::
300
+ :maxdepth: 1
301
+
302
+ eegdash.dataset.EEGChallengeDataset
303
+
296
304
  .. list-table:: Dataset counts by experimental type
297
305
  :widths: 60 20
298
306
  :header-rows: 1
@@ -314,6 +322,22 @@ All Datasets
314
322
  """
315
323
 
316
324
 
325
+ BASE_DATASET_TEMPLATE = """{notice}.. _api_eegdash_challenge_dataset:
326
+
327
+ .. currentmodule:: eegdash.dataset
328
+
329
+ EEGChallengeDataset
330
+ ===================
331
+
332
+ .. autoclass:: eegdash.dataset.EEGChallengeDataset
333
+ :members:
334
+ :undoc-members:
335
+ :show-inheritance:
336
+ :member-order: bysource
337
+
338
+ """
339
+
340
+
317
341
  def _write_if_changed(path: Path, content: str) -> bool:
318
342
  """Write ``content`` to ``path`` if it differs from the current file."""
319
343
  existing = path.read_text(encoding="utf-8") if path.exists() else None
@@ -540,6 +564,11 @@ def _generate_dataset_docs(app) -> None:
540
564
  if _write_if_changed(index_path, index_content):
541
565
  LOGGER.info("[dataset-docs] Updated %s", index_path.relative_to(app.srcdir))
542
566
 
567
+ base_content = BASE_DATASET_TEMPLATE.format(notice=AUTOGEN_NOTICE)
568
+ base_path = dataset_dir / "eegdash.dataset.EEGChallengeDataset.rst"
569
+ if _write_if_changed(base_path, base_content):
570
+ LOGGER.info("[dataset-docs] Updated %s", base_path.relative_to(app.srcdir))
571
+
543
572
  generated_paths: set[Path] = set()
544
573
  for name in dataset_names:
545
574
  title = f"eegdash.dataset.{name}"
@@ -1,3 +1,5 @@
1
+ .. rubric:: Dataset landscape
2
+
1
3
  .. raw:: html
2
4
 
3
5
  <figure class="eegdash-figure" style="margin: 0 0 1.25rem 0;">
@@ -1,3 +1,5 @@
1
+ .. rubric:: Participant Distribution by Modality
2
+
1
3
  .. raw:: html
2
4
 
3
5
  <figure class="eegdash-figure" style="margin: 0 0 1.25rem 0;">
@@ -1,16 +1,21 @@
1
1
  .. _user_guide:
2
2
 
3
+ :html_theme.sidebar_secondary.remove: true
4
+
5
+ .. currentmodule:: eegdash.api
6
+
7
+
3
8
  User Guide
4
9
  ==========
5
10
 
6
- This guide provides a comprehensive overview of the ``eegdash`` library, focusing on its core data access object, ``EEGDashDataset``. You will learn how to use this object to find, access, and manage EEG data for your research and analysis tasks.
11
+ This guide provides a comprehensive overview of the :mod:`eegdash` library, focusing on its core data access object, :class:`~eegdash.api.EEGDashDataset`. You will learn how to use this object to find, access, and manage EEG data for your research and analysis tasks.
7
12
 
8
13
  The EEGDash Object
9
14
  ------------------
10
15
 
11
- While :class:`~eegdash.EEGDashDataset` is the main tool for loading data for machine learning, the :class:`~eegdash.EEGDash` object provides a lower-level interface for directly interacting with the metadata database. It is useful for exploring the available data, performing complex queries, or managing metadata records.
16
+ While :class:`~eegdash.api.EEGDashDataset` is the main tool for loading data for machine learning, the :class:`~eegdash.api.EEGDash` object provides a lower-level interface for directly interacting with the metadata database. It is useful for exploring the available data, performing complex queries, or managing metadata records.
12
17
 
13
- Initializing ``EEGDash``
18
+ Initializing EEGDash
14
19
  ~~~~~~~~~~~~~~~~~~~~~~~~
15
20
 
16
21
  You can create a client to connect to the public database like this:
@@ -38,25 +43,25 @@ The ``find()`` method allows you to query the database for records matching spec
38
43
  records_advanced = eegdash.find(query)
39
44
  print(f"Found {len(records_advanced)} records with advanced query.")
40
45
 
41
- ``EEGDash`` vs. ``EEGDashDataset``
46
+ EEGDash vs. EEGDashDataset
42
47
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
43
48
 
44
49
  It's important to understand the distinction between these two objects:
45
50
 
46
- - **EEGDash**: Use this for querying and managing metadata. It returns a list of dictionaries, where each dictionary is a record from the database.
47
- - **EEGDashDataset**: Use this when you need to load EEG data for analysis or machine learning. It returns a PyTorch-compatible dataset object where each item can load the actual EEG signal.
51
+ - :class:`~eegdash.api.EEGDash`: Use this for querying and managing metadata. It returns a list of dictionaries, where each dictionary is a record from the database.
52
+ - :class:`~eegdash.api.EEGDashDataset`: Use this when you need to load EEG data for analysis or machine learning. It returns a PyTorch-compatible dataset object where each item can load the actual EEG signal.
48
53
 
49
- In general, you will use ``EEGDashDataset`` for most of your data loading needs.
54
+ In general, you will use :class:`~eegdash.api.EEGDashDataset` for most of your data loading needs.
50
55
 
51
56
  The EEGDashDataset Object
52
57
  -------------------------
53
58
 
54
- The :class:`~eegdash.EEGDashDataset` is the primary entry point for working with EEG recordings in ``eegdash``. It acts as a high-level interface that allows you to query a metadata database and load corresponding EEG data, either from a remote source or from a local cache.
59
+ The :class:`~eegdash.api.EEGDashDataset` is the primary entry point for working with EEG recordings in :mod:`eegdash`. It acts as a high-level interface that allows you to query a metadata database and load corresponding EEG data, either from a remote source or from a local cache.
55
60
 
56
- Initializing ``EEGDashDataset``
61
+ Initializing EEGDashDataset
57
62
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
58
63
 
59
- To get started, you need to create an instance of ``EEGDashDataset``. The two most important parameters are ``cache_dir`` and ``dataset``.
64
+ To get started, you need to create an instance of :class:`~eegdash.api.EEGDashDataset`. The two most important parameters are ``cache_dir`` and ``dataset``.
60
65
 
61
66
  - ``cache_dir``: This is the local directory where ``eegdash`` will store downloaded data.
62
67
  - ``dataset``: The identifier of the dataset you want to work with (e.g., ``"ds002718"``).
@@ -80,7 +85,7 @@ This will create a dataset object containing all recordings from ``ds002718``. T
80
85
  Querying for Specific Data
81
86
  --------------------------
82
87
 
83
- ``EEGDashDataset`` offers powerful filtering capabilities, allowing you to select a subset of recordings based on various criteria. You can filter by task, subject, session, or run.
88
+ :class:`~eegdash.api.EEGDashDataset` offers powerful filtering capabilities, allowing you to select a subset of recordings based on various criteria. You can filter by task, subject, session, or run.
84
89
 
85
90
  Filtering by Task
86
91
  ~~~~~~~~~~~~~~~~~
@@ -162,11 +167,11 @@ For more complex queries, you can pass a MongoDB-style query dictionary directly
162
167
  Working with Local Data (Offline Mode)
163
168
  --------------------------------------
164
169
 
165
- ``eegdash`` also supports working with local data that you have already downloaded or manage separately. By setting ``download=False``, you can instruct ``EEGDashDataset`` to use local BIDS-compliant data instead of accessing the database or remote storage.
170
+ :mod:`eegdash` also supports working with local data that you have already downloaded or manage separately. By setting ``download=False``, you can instruct :class:`~eegdash.api.EEGDashDataset` to use local BIDS-compliant data instead of accessing the database or remote storage.
166
171
 
167
172
  To use this feature, your data must be organized in a BIDS-like structure within your ``cache_dir``. For example, if your ``cache_dir`` is ``./eeg_data`` and your dataset is ``ds002718``, the files should be located at ``./eeg_data/ds002718/``.
168
173
 
169
- Here is how to use ``EEGDashDataset`` in offline mode:
174
+ Here is how to use :class:`~eegdash.api.EEGDashDataset` in offline mode:
170
175
 
171
176
  .. code-block:: python
172
177
 
@@ -179,12 +184,12 @@ Here is how to use ``EEGDashDataset`` in offline mode:
179
184
 
180
185
  print(f"Found {len(local_dataset)} local recordings.")
181
186
 
182
- When ``download=False``, ``eegdash`` will scan the specified directory for EEG files and construct the dataset from the local file system. This is useful for environments without internet access or when you want to work with your own curated datasets.
187
+ When ``download=False``, :mod:`eegdash` will scan the specified directory for EEG files and construct the dataset from the local file system. This is useful for environments without internet access or when you want to work with your own curated datasets.
183
188
 
184
189
  Accessing Data from the Dataset
185
190
  -------------------------------
186
191
 
187
- Once you have your ``EEGDashDataset`` object, you can access individual recordings as if it were a list. Each item in the dataset is an ``EEGDashBaseDataset`` object, which contains the metadata and methods to load the actual EEG data.
192
+ Once you have your :class:`~eegdash.api.EEGDashDataset` object, you can access individual recordings as if it were a list. Each item in the dataset is an :class:`~eegdash.data_utils.EEGDashBaseDataset` object, which contains the metadata and methods to load the actual EEG data.
188
193
 
189
194
  .. code-block:: python
190
195
 
@@ -199,4 +204,4 @@ Once you have your ``EEGDashDataset`` object, you can access individual recordin
199
204
  print(f"Sampling frequency: {raw.info['sfreq']} Hz")
200
205
  print(f"Number of channels: {len(raw.ch_names)}")
201
206
 
202
- This provides a powerful and flexible way to integrate ``eegdash`` into your data analysis pipelines, whether you are working with remote or local data.
207
+ This provides a powerful and flexible way to integrate ``eegdash`` into your data analysis pipelines, whether you are working with remote or local data.
@@ -18,4 +18,4 @@ _init_mongo_client()
18
18
 
19
19
  __all__ = ["EEGDash", "EEGDashDataset", "EEGChallengeDataset", "preprocessing"]
20
20
 
21
- __version__ = "0.4.0.dev150"
21
+ __version__ = "0.4.0.dev153"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eegdash
3
- Version: 0.4.0.dev150
3
+ Version: 0.4.0.dev153
4
4
  Summary: EEG data for machine learning
5
5
  Author-email: Young Truong <dt.young112@gmail.com>, Arnaud Delorme <adelorme@gmail.com>, Aviv Dotan <avivd220@gmail.com>, Oren Shriki <oren70@gmail.com>, Bruno Aristimunha <b.aristimunha@gmail.com>
6
6
  License-Expression: GPL-3.0-only
@@ -8,6 +8,7 @@ docs/source/dataset_summary.rst
8
8
  docs/source/index.rst
9
9
  docs/source/sg_execution_times.rst
10
10
  docs/source/user_guide.rst
11
+ docs/source/_templates/autosummary/module.rst
11
12
  docs/source/api/api.rst
12
13
  docs/source/api/api_core.rst
13
14
  docs/source/api/api_features.rst
File without changes
File without changes
File without changes