Skip to content

Commit c3cdac8

Browse files
solvinf the user guide
1 parent 551013f commit c3cdac8

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

docs/source/user_guide.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
User Guide
66
==========
77

8-
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.
8+
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.
99

1010
The EEGDash Object
1111
------------------
1212

13-
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.
13+
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.
1414

15-
Initializing ``EEGDash``
15+
Initializing EEGDash
1616
~~~~~~~~~~~~~~~~~~~~~~~~
1717

1818
You can create a client to connect to the public database like this:
@@ -40,25 +40,25 @@ The ``find()`` method allows you to query the database for records matching spec
4040
records_advanced = eegdash.find(query)
4141
print(f"Found {len(records_advanced)} records with advanced query.")
4242
43-
``EEGDash`` vs. ``EEGDashDataset``
43+
EEGDash vs. EEGDashDataset
4444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4545

4646
It's important to understand the distinction between these two objects:
4747

48-
- **EEGDash**: Use this for querying and managing metadata. It returns a list of dictionaries, where each dictionary is a record from the database.
49-
- **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+
- :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.
49+
- :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.
5050

51-
In general, you will use ``EEGDashDataset`` for most of your data loading needs.
51+
In general, you will use :class:`eegdash.api.EEGDashDataset` for most of your data loading needs.
5252

5353
The EEGDashDataset Object
5454
-------------------------
5555

56-
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.
56+
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.
5757

58-
Initializing ``EEGDashDataset``
58+
Initializing EEGDashDataset
5959
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6060

61-
To get started, you need to create an instance of ``EEGDashDataset``. The two most important parameters are ``cache_dir`` and ``dataset``.
61+
To get started, you need to create an instance of :class:`eegdash.api.EEGDashDataset`. The two most important parameters are ``cache_dir`` and ``dataset``.
6262

6363
- ``cache_dir``: This is the local directory where ``eegdash`` will store downloaded data.
6464
- ``dataset``: The identifier of the dataset you want to work with (e.g., ``"ds002718"``).
@@ -82,7 +82,7 @@ This will create a dataset object containing all recordings from ``ds002718``. T
8282
Querying for Specific Data
8383
--------------------------
8484

85-
``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.
85+
: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.
8686

8787
Filtering by Task
8888
~~~~~~~~~~~~~~~~~
@@ -164,11 +164,11 @@ For more complex queries, you can pass a MongoDB-style query dictionary directly
164164
Working with Local Data (Offline Mode)
165165
--------------------------------------
166166

167-
``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.
167+
: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.
168168

169169
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/``.
170170

171-
Here is how to use ``EEGDashDataset`` in offline mode:
171+
Here is how to use :class:`eegdash.api.EEGDashDataset` in offline mode:
172172

173173
.. code-block:: python
174174
@@ -181,12 +181,12 @@ Here is how to use ``EEGDashDataset`` in offline mode:
181181
182182
print(f"Found {len(local_dataset)} local recordings.")
183183
184-
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.
184+
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.
185185

186186
Accessing Data from the Dataset
187187
-------------------------------
188188

189-
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.
189+
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 ``EEGDashBaseDataset`` object, which contains the metadata and methods to load the actual EEG data.
190190

191191
.. code-block:: python
192192

0 commit comments

Comments
 (0)