diff --git a/dev/.buildinfo b/dev/.buildinfo index eba07e810..177311ba7 100644 --- a/dev/.buildinfo +++ b/dev/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 88be86eb1ead2c30bf7578c466dc42db +config: 7e827f982bf71cd0f6a2c7d255480056 tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/dev/_downloads/07841a9269d1816a3add41f32d8a5ed2/read_bids_datasets.ipynb b/dev/_downloads/07841a9269d1816a3add41f32d8a5ed2/read_bids_datasets.ipynb index 3e55048a8..9dae3b0aa 100644 --- a/dev/_downloads/07841a9269d1816a3add41f32d8a5ed2/read_bids_datasets.ipynb +++ b/dev/_downloads/07841a9269d1816a3add41f32d8a5ed2/read_bids_datasets.ipynb @@ -58,7 +58,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Explore the dataset contents\n\nWe can use MNE-BIDS to print a tree of all\nincluded files and folders. We pass the ``max_depth`` parameter to\n`mne_bids.print_dir_tree` to the output to four levels of folders, for\nbetter readability in this example.\n\n" + "## Explore the dataset contents\n\nWe can use MNE-BIDS to print a tree of all\nincluded files and folders. We pass the ``max_depth`` parameter to\n:func:`mne_bids.print_dir_tree` to the output to four levels of folders, for\nbetter readability in this example.\n\n" ] }, { diff --git a/dev/_downloads/07fcc19ba03226cd3d83d4e40ec44385/auto_examples_python.zip b/dev/_downloads/07fcc19ba03226cd3d83d4e40ec44385/auto_examples_python.zip index 003544785..0f9081f9b 100644 Binary files a/dev/_downloads/07fcc19ba03226cd3d83d4e40ec44385/auto_examples_python.zip and b/dev/_downloads/07fcc19ba03226cd3d83d4e40ec44385/auto_examples_python.zip differ diff --git a/dev/_downloads/0c7e85abda2fce1fe2c484ad9f9aaa81/bidspath.ipynb b/dev/_downloads/0c7e85abda2fce1fe2c484ad9f9aaa81/bidspath.ipynb index 1ccfd3f46..9c04f1e6b 100644 --- a/dev/_downloads/0c7e85abda2fce1fe2c484ad9f9aaa81/bidspath.ipynb +++ b/dev/_downloads/0c7e85abda2fce1fe2c484ad9f9aaa81/bidspath.ipynb @@ -112,7 +112,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Now that was easy! We're almost there! We also need to specify a\n**data type**, i.e., ``meg`` for MEG data, ``eeg`` and ``ieeg`` for EEG and\niEEG data, or ``anat`` for anatomical MRI scans. Typically, MNE-BIDS will\ninfer the data type of your data automatically, for example when writing data\nusing `mne_bids.write_raw_bids`. For the sake of this example, however, we\nare going to specify the data type explicitly.\n\n" + "Now that was easy! We're almost there! We also need to specify a\n**data type**, i.e., ``meg`` for MEG data, ``eeg`` and ``ieeg`` for EEG and\niEEG data, or ``anat`` for anatomical MRI scans. Typically, MNE-BIDS will\ninfer the data type of your data automatically, for example when writing data\nusing :func:`mne_bids.write_raw_bids`. For the sake of this example, however, we\nare going to specify the data type explicitly.\n\n" ] }, { diff --git a/dev/_downloads/4b11a3ce6cfd9d8cf2b976f8386a2f8f/bidspath.py b/dev/_downloads/4b11a3ce6cfd9d8cf2b976f8386a2f8f/bidspath.py index fac85e9a9..943821398 100644 --- a/dev/_downloads/4b11a3ce6cfd9d8cf2b976f8386a2f8f/bidspath.py +++ b/dev/_downloads/4b11a3ce6cfd9d8cf2b976f8386a2f8f/bidspath.py @@ -81,7 +81,7 @@ # **data type**, i.e., ``meg`` for MEG data, ``eeg`` and ``ieeg`` for EEG and # iEEG data, or ``anat`` for anatomical MRI scans. Typically, MNE-BIDS will # infer the data type of your data automatically, for example when writing data -# using `mne_bids.write_raw_bids`. For the sake of this example, however, we +# using :func:`mne_bids.write_raw_bids`. For the sake of this example, however, we # are going to specify the data type explicitly. datatype = "eeg" diff --git a/dev/_downloads/5eebd75ee4f8ffd30e34a83e87d0e28b/read_bids_datasets.py b/dev/_downloads/5eebd75ee4f8ffd30e34a83e87d0e28b/read_bids_datasets.py index b0d03ed95..00263d3b8 100644 --- a/dev/_downloads/5eebd75ee4f8ffd30e34a83e87d0e28b/read_bids_datasets.py +++ b/dev/_downloads/5eebd75ee4f8ffd30e34a83e87d0e28b/read_bids_datasets.py @@ -78,7 +78,7 @@ # # We can use MNE-BIDS to print a tree of all # included files and folders. We pass the ``max_depth`` parameter to -# `mne_bids.print_dir_tree` to the output to four levels of folders, for +# :func:`mne_bids.print_dir_tree` to the output to four levels of folders, for # better readability in this example. print_dir_tree(bids_root, max_depth=4) diff --git a/dev/_downloads/6a10915cde9ea548655ec1feef4a85d1/update_bids_datasets.ipynb b/dev/_downloads/6a10915cde9ea548655ec1feef4a85d1/update_bids_datasets.ipynb index 9b8c0aedf..dfaeb0f8b 100644 --- a/dev/_downloads/6a10915cde9ea548655ec1feef4a85d1/update_bids_datasets.ipynb +++ b/dev/_downloads/6a10915cde9ea548655ec1feef4a85d1/update_bids_datasets.ipynb @@ -58,7 +58,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Explore the dataset contents\n\nWe can use MNE-BIDS to print a tree of all\nincluded files and folders. We pass the ``max_depth`` parameter to\n`mne_bids.print_dir_tree` to the output to three levels of folders, for\nbetter readability in this example.\n\n" + "## Explore the dataset contents\n\nWe can use MNE-BIDS to print a tree of all\nincluded files and folders. We pass the ``max_depth`` parameter to\n:func:`mne_bids.print_dir_tree` to the output to three levels of folders, for\nbetter readability in this example.\n\n" ] }, { diff --git a/dev/_downloads/6f1e7a639e0699d6164445b55e6c116d/auto_examples_jupyter.zip b/dev/_downloads/6f1e7a639e0699d6164445b55e6c116d/auto_examples_jupyter.zip index b62937be2..43b4b524d 100644 Binary files a/dev/_downloads/6f1e7a639e0699d6164445b55e6c116d/auto_examples_jupyter.zip and b/dev/_downloads/6f1e7a639e0699d6164445b55e6c116d/auto_examples_jupyter.zip differ diff --git a/dev/_downloads/8a652dc37d1d38cf986f15eab46d0f7d/update_bids_datasets.py b/dev/_downloads/8a652dc37d1d38cf986f15eab46d0f7d/update_bids_datasets.py index 23a693348..9e2383972 100644 --- a/dev/_downloads/8a652dc37d1d38cf986f15eab46d0f7d/update_bids_datasets.py +++ b/dev/_downloads/8a652dc37d1d38cf986f15eab46d0f7d/update_bids_datasets.py @@ -48,7 +48,7 @@ # # We can use MNE-BIDS to print a tree of all # included files and folders. We pass the ``max_depth`` parameter to -# `mne_bids.print_dir_tree` to the output to three levels of folders, for +# :func:`mne_bids.print_dir_tree` to the output to three levels of folders, for # better readability in this example. print_dir_tree(bids_root, max_depth=3) diff --git a/dev/_modules/index.html b/dev/_modules/index.html index bee1f8580..7e4d471cb 100644 --- a/dev/_modules/index.html +++ b/dev/_modules/index.html @@ -7,7 +7,7 @@
-MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -564,7 +564,7 @@
- © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-12.
+ © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-19.
MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -1211,7 +1211,7 @@
- © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-12.
+ © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-19.
diff --git a/dev/_modules/mne_bids/dig.html b/dev/_modules/mne_bids/dig.html
index 794a82bb6..ad5511374 100644
--- a/dev/_modules/mne_bids/dig.html
+++ b/dev/_modules/mne_bids/dig.html
@@ -7,7 +7,7 @@
- mne_bids.dig — MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ mne_bids.dig — MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -40,7 +40,7 @@
-
+
@@ -147,7 +147,7 @@
- MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
- © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-12.
+ © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-19.
diff --git a/dev/_modules/mne_bids/inspect.html b/dev/_modules/mne_bids/inspect.html
index 6b993acfd..67296a49c 100644
--- a/dev/_modules/mne_bids/inspect.html
+++ b/dev/_modules/mne_bids/inspect.html
@@ -7,7 +7,7 @@
- mne_bids.inspect — MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ mne_bids.inspect — MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -40,7 +40,7 @@
-
+
@@ -147,7 +147,7 @@
- MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
- © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-12.
+ © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-19.
diff --git a/dev/_modules/mne_bids/path.html b/dev/_modules/mne_bids/path.html
index 54965e72d..03d0177dc 100644
--- a/dev/_modules/mne_bids/path.html
+++ b/dev/_modules/mne_bids/path.html
@@ -7,7 +7,7 @@
- mne_bids.path — MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ mne_bids.path — MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -40,7 +40,7 @@
-
+
@@ -147,7 +147,7 @@
- MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
If a boolean, controls whether to enforce BIDS conformity. This
will set the ``.check`` attribute accordingly. If ``None``, rely on
the existing ``.check`` attribute instead, which is set upon
- `mne_bids.BIDSPath` instantiation. Defaults to ``None``.
+ :class:`mne_bids.BIDSPath` instantiation. Defaults to ``None``.
**kwargs : dict
It can contain updates for valid BIDSPath entities:
'subject', 'session', 'task', 'acquisition', 'processing', 'run',
@@ -1552,7 +1552,7 @@ Source code for mne_bids.path
check : bool
If ``True``, only returns paths that conform to BIDS. If ``False``
(default), the ``.check`` attribute of the returned
- `mne_bids.BIDSPath` object will be set to ``True`` for paths that
+ :class:`mne_bids.BIDSPath` object will be set to ``True`` for paths that
do conform to BIDS, and to ``False`` for those that don't.
Returns
@@ -2947,7 +2947,7 @@ Source code for mne_bids.path
check : bool
If ``True``, only returns paths that conform to BIDS. If ``False``
(default), the ``.check`` attribute of the returned
- `mne_bids.BIDSPath` object will be set to ``True`` for paths that
+ :class:`mne_bids.BIDSPath` object will be set to ``True`` for paths that
do conform to BIDS, and to ``False`` for those that don't.
Returns
@@ -3025,7 +3025,7 @@ Source code for mne_bids.path
check : bool
If ``True``, only returns paths that conform to BIDS. If ``False``
(default), the ``.check`` attribute of the returned
- `mne_bids.BIDSPath` object will be set to ``True`` for paths that
+ :class:`mne_bids.BIDSPath` object will be set to ``True`` for paths that
do conform to BIDS, and to ``False`` for those that don't.
Returns
@@ -3094,7 +3094,7 @@ Source code for mne_bids.path
- © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-12.
+ © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-19.
diff --git a/dev/_modules/mne_bids/read.html b/dev/_modules/mne_bids/read.html
index 683c6e1b4..52f25c20a 100644
--- a/dev/_modules/mne_bids/read.html
+++ b/dev/_modules/mne_bids/read.html
@@ -7,7 +7,7 @@
- mne_bids.read — MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ mne_bids.read — MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -40,7 +40,7 @@
-
+
@@ -147,7 +147,7 @@
- MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -1742,7 +1742,7 @@ Source code for mne_bids.read
- © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-12.
+ © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-19.
diff --git a/dev/_modules/mne_bids/report/_report.html b/dev/_modules/mne_bids/report/_report.html
index 0cea84fed..c058b0e58 100644
--- a/dev/_modules/mne_bids/report/_report.html
+++ b/dev/_modules/mne_bids/report/_report.html
@@ -7,7 +7,7 @@
- mne_bids.report._report — MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ mne_bids.report._report — MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -40,7 +40,7 @@
-
+
@@ -147,7 +147,7 @@
- MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -1098,7 +1098,7 @@ Source code for mne_bids.report._report
- © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-12.
+ © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-19.
diff --git a/dev/_modules/mne_bids/sidecar_updates.html b/dev/_modules/mne_bids/sidecar_updates.html
index 9a330ae19..da7778979 100644
--- a/dev/_modules/mne_bids/sidecar_updates.html
+++ b/dev/_modules/mne_bids/sidecar_updates.html
@@ -7,7 +7,7 @@
- mne_bids.sidecar_updates — MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ mne_bids.sidecar_updates — MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -40,7 +40,7 @@
-
+
@@ -147,7 +147,7 @@
- MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -949,7 +949,7 @@ Source code for mne_bids.sidecar_updates
- © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-12.
+ © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-19.
diff --git a/dev/_modules/mne_bids/stats.html b/dev/_modules/mne_bids/stats.html
index e698296fd..d092449de 100644
--- a/dev/_modules/mne_bids/stats.html
+++ b/dev/_modules/mne_bids/stats.html
@@ -7,7 +7,7 @@
- mne_bids.stats — MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ mne_bids.stats — MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -40,7 +40,7 @@
-
+
@@ -147,7 +147,7 @@
- MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -689,7 +689,7 @@ Source code for mne_bids.stats
- © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-12.
+ © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-19.
diff --git a/dev/_modules/mne_bids/utils.html b/dev/_modules/mne_bids/utils.html
index 4e653acc0..5131b3a17 100644
--- a/dev/_modules/mne_bids/utils.html
+++ b/dev/_modules/mne_bids/utils.html
@@ -7,7 +7,7 @@
- mne_bids.utils — MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ mne_bids.utils — MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -40,7 +40,7 @@
-
+
@@ -147,7 +147,7 @@
- MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -1097,7 +1097,7 @@ Source code for mne_bids.utils
- © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-12.
+ © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-19.
diff --git a/dev/_modules/mne_bids/write.html b/dev/_modules/mne_bids/write.html
index c870cc75e..0652c17c1 100644
--- a/dev/_modules/mne_bids/write.html
+++ b/dev/_modules/mne_bids/write.html
@@ -7,7 +7,7 @@
- mne_bids.write — MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ mne_bids.write — MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -40,7 +40,7 @@
-
+
@@ -147,7 +147,7 @@
- MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -529,7 +529,7 @@ Source code for mne_bids.write
import sys
import warnings
from collections import OrderedDict, defaultdict
-from datetime import datetime, timedelta, timezone
+from datetime import date, datetime, timedelta, timezone
from pathlib import Path
import mne
@@ -974,12 +974,14 @@ Source code for mne_bids.write
# determine the age of the participant
age = subject_info.get("birthday", None)
+ if isinstance(age, tuple): # can be removed once MNE >= 1.8 is required
+ age = date(*age)
meas_date = raw.info.get("meas_date", None)
if isinstance(meas_date, (tuple, list, np.ndarray)):
meas_date = meas_date[0]
if meas_date is not None and age is not None:
- bday = datetime(age[0], age[1], age[2], tzinfo=timezone.utc)
+ bday = datetime(age.year, age.month, age.day, tzinfo=timezone.utc)
if isinstance(meas_date, datetime):
meas_datetime = meas_date
else:
@@ -1931,7 +1933,7 @@ Source code for mne_bids.write
already loaded from disk unless ``allow_preload`` is explicitly set
to ``True``. See warning for the ``allow_preload`` parameter.
bids_path : BIDSPath
- The file to write. The `mne_bids.BIDSPath` instance passed here
+ The file to write. The :class:`mne_bids.BIDSPath` instance passed here
**must** have the ``subject``, ``task``, and ``root`` attributes set.
If the ``datatype`` attribute is not set, it will be inferred from the
recording data type found in ``raw``. In case of multiple data types,
@@ -3723,7 +3725,7 @@ Source code for mne_bids.write
- © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-12.
+ © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-19.
diff --git a/dev/_static/documentation_options.js b/dev/_static/documentation_options.js
index 683867597..e3a2cb1bb 100644
--- a/dev/_static/documentation_options.js
+++ b/dev/_static/documentation_options.js
@@ -1,5 +1,5 @@
const DOCUMENTATION_OPTIONS = {
- VERSION: '0.16.0.dev11+gdbdf957f',
+ VERSION: '0.16.0.dev13+gaf12bc47',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
BUILDER: 'html',
diff --git a/dev/api.html b/dev/api.html
index 0b3a1cbdc..bbbe042d1 100644
--- a/dev/api.html
+++ b/dev/api.html
@@ -8,7 +8,7 @@
- API Documentation — MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ API Documentation — MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -41,7 +41,7 @@
-
+
@@ -150,7 +150,7 @@
- MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -779,7 +779,7 @@ mne_bids.copyfiles
- © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-12.
+ © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-19.
diff --git a/dev/authors.html b/dev/authors.html
index 5cb1c6336..5c27e2400 100644
--- a/dev/authors.html
+++ b/dev/authors.html
@@ -8,7 +8,7 @@
- <no title> — MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ <no title> — MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -41,7 +41,7 @@
-
+
@@ -148,7 +148,7 @@
- MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -575,7 +575,7 @@
- © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-12.
+ © Copyright 2017, The MNE-BIDS developers. Last updated on 2024-07-19.
diff --git a/dev/auto_examples/anonymize_dataset.html b/dev/auto_examples/anonymize_dataset.html
index f94a3da75..5e8b5e7d8 100644
--- a/dev/auto_examples/anonymize_dataset.html
+++ b/dev/auto_examples/anonymize_dataset.html
@@ -8,7 +8,7 @@
- 13. Anonymizing a BIDS dataset — MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ 13. Anonymizing a BIDS dataset — MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -41,7 +41,7 @@
-
+
@@ -151,7 +151,7 @@
- MNE-BIDS 0.16.0.dev11+gdbdf957f documentation
+ MNE-BIDS 0.16.0.dev13+gaf12bc47 documentation
@@ -675,7 +675,7 @@ Basic anonymizationSpecifying subject IDsSpecifying subject IDsSpecifying subject IDs
@@ -930,9 +930,9 @@ ReproducibilityTotal running time of the script: (0 minutes 11.205 seconds)
+Total running time of the script: (0 minutes 12.149 seconds)