diff --git a/CHANGELOG.md b/CHANGELOG.md
index 36d618b..95ed01e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,10 @@
# Changelog
+## Unreleased
+
+- Descriptor: the license sentence gives the official name of the license with its short form.
+- American spelling in generated text, messages and documentation.
+
## 0.1.3 (2026-11-20)
- A behavioural protocol's `described in` is a DOI and becomes a DOI node (protocol schema 1.2).
diff --git a/NOTICE.md b/NOTICE.md
index 1fb0d89..342c5c7 100644
--- a/NOTICE.md
+++ b/NOTICE.md
@@ -10,6 +10,6 @@ fairephys is licensed under the MIT License (see `LICENSE`). The package also sh
- Copyright (c) 2018, BIDS Contributors
- License: Creative Commons Attribution 4.0 International (CC-BY-4.0), https://creativecommons.org/licenses/by/4.0/
-## Creative Commons licence texts
+## Creative Commons license texts
-`src/fairephys/_resources/licenses/*.txt` are the legal code of the Creative Commons licences, written as the `LICENSE` file of a curated dataset. Creative Commons dedicates the text of its public licences to the public domain under CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/).
+`src/fairephys/_resources/licenses/*.txt` are the legal code of the Creative Commons licenses, written as the `LICENSE` file of a curated dataset. Creative Commons dedicates the text of its public licenses to the public domain under CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/).
diff --git a/README.md b/README.md
index 86b2a96..f783735 100644
--- a/README.md
+++ b/README.md
@@ -39,7 +39,7 @@ YAML templates (the lab's description) raw recordings
(BEP032) README across all of them
```
-1. **Capture the metadata.** The researcher or curator describes the experiment in YAML templates, one per concern: the dataset, the subject, the hardware, the behavioural protocol, the recording sessions, the electrode placements and the processing. What stays the same across sessions is written once; each session entry holds only what differs. JSON schemas check every template before it is used, so a missing required field or a value of the wrong type is caught at entry, not in a finished output.
+1. **Capture the metadata.** The researcher or curator describes the experiment in YAML templates, one per concern: the dataset, the subject, the hardware, the behavioral protocol, the recording sessions, the electrode placements and the processing. What stays the same across sessions is written once; each session entry holds only what differs. JSON schemas check every template before it is used, so a missing required field or a value of the wrong type is caught at entry, not in a finished output.
2. **Build one canonical record.** The compiler merges the templates into a single odML document and adds what the recordings already say about themselves (channel names, sampling rates, durations, read with Neo), so that this information is not typed by hand. Plain-text terms such as species and brain regions are resolved to controlled terms (openMINDS, UBERON). Every value keeps its origin: the sources named in the template it was written in, or the file header it was read from.
3. **Translate it for each standard.** Declarative registries, written in YAML, state how the properties of the record appear in NWB, BIDS and openMINDS, including the change of unit, type, structure or vocabulary each standard needs; only the electrode structures of the NWB file are assembled in code, from the probes and their placements. From the record, fairephys converts the recordings to NWB (NeuroConv, with the probe geometry from ProbeInterface), writes the BIDS layout with its tables and sidecars, builds the openMINDS metadata for the EBRAINS Knowledge Graph (fairgraph) and adds a DataCite record and a dataset README.
4. **Check across all outputs.** fairephys compares the outputs with the raw data and with each other: raw samples against the NWB, the probe geometry of ProbeInterface against the BIDS electrodes table and the NWB electrode table, channel counts and names across BIDS and NWB. The BIDS validator, the NWB Inspector and fairgraph then check each output against its own standard.
@@ -68,7 +68,7 @@ How each of these steps works in the code (the modules behind it, the templates
## Scope
-fairephys covers extracellular electrophysiology, both acute recordings with probes placed anew in each session and chronic recordings from implanted arrays. It converts the raw broadband recordings of Blackrock, SpikeGLX, TDT (tanks and SEV files) and Plexon (.pl2) systems; for other formats, the dataset's `curate.py` writes the NWB with the shared helpers of `fairephys.converters`. Beside the recording, the NWB can hold trials, time intervals, sorted units and behavioural series, and auxiliary signals (eye tracking, EMG, motion) become BIDS files of their own.
+fairephys covers extracellular electrophysiology, both acute recordings with probes placed anew in each session and chronic recordings from implanted arrays. It converts the raw broadband recordings of Blackrock, SpikeGLX, TDT (tanks and SEV files) and Plexon (.pl2) systems; for other formats, the dataset's `curate.py` writes the NWB with the shared helpers of `fairephys.converters`. Beside the recording, the NWB can hold trials, time intervals, sorted units and behavioral series, and auxiliary signals (eye tracking, EMG, motion) become BIDS files of their own.
## Installation
@@ -109,7 +109,7 @@ uv run pytest
## License
-MIT, see [LICENSE](LICENSE). Third-party files shipped with the package (the BIDS schema, the Creative Commons licence texts) are listed in [NOTICE.md](NOTICE.md).
+MIT, see [LICENSE](LICENSE). Third-party files shipped with the package (the BIDS schema, the Creative Commons license texts) are listed in [NOTICE.md](NOTICE.md).
## Citation
diff --git a/docs/pipeline.md b/docs/pipeline.md
index 7aea59d..6ae917f 100644
--- a/docs/pipeline.md
+++ b/docs/pipeline.md
@@ -46,10 +46,10 @@ A dataset is described in YAML files under `metadata/curated/`, in the vocabular
| File | Describes |
|------|-----------|
-| `dataset.yaml` | Name, description, licence, custodian, contributors, funding, related publications, related projects |
+| `dataset.yaml` | Name, description, license, custodian, contributors, funding, related publications, related projects |
| `subject.yaml` | Species, sex, age, surgical preparation, and the implanted probes of a chronic recording |
| `hardware.yaml` | Recording system, hardware filters, probes, auxiliary devices (eye tracker, EMG, motion) |
-| `protocol.yaml` | The behavioural protocol and stimulus presentation |
+| `protocol.yaml` | The behavioral protocol and stimulus presentation |
| `recordings.yaml` | Per-session recording configuration of an acute recording: techniques and electrode placements |
| `sessions.yaml` | Session ids, dates, start times, tasks, subjects |
| `processing.yaml` | Processing steps actually performed (optional) |
@@ -214,22 +214,22 @@ Every script takes `--verbose` (debug logging), `--shared-metadata
` (the c
## Adding Content to the NWB
-Besides the recording, a dataset can write what it already holds (trials, time intervals, sorted units, sampled behavioural series) into the same NWB file. `run_conversion` takes a function that receives the NWB file after the recording is added and before it is written; nothing reopens a written file:
+Besides the recording, a dataset can write what it already holds (trials, time intervals, sorted units, sampled behavioral series) into the same NWB file. `run_conversion` takes a function that receives the NWB file after the recording is added and before it is written; nothing reopens a written file:
```python
from fairephys.converters import add_trials, add_units
-def add_behaviour(nwbfile):
+def add_behavior(nwbfile):
add_trials(nwbfile, trials, TRIAL_COLUMNS, stub_test=stub_test) # DataFrame: start_time, stop_time, ...
add_units(nwbfile, units, UNIT_COLUMNS, description="Units sorted by the lab",
resolution=1 / sampling_rate, stub_test=stub_test)
-converter.run_conversion(paths["nwb"], meta, stub_test=stub_test, add_to_nwbfile=add_behaviour)
+converter.run_conversion(paths["nwb"], meta, stub_test=stub_test, add_to_nwbfile=add_behavior)
```
Each helper takes plain data and the dataset's own column descriptions. With `stub_test`, a helper cuts its content to the span of the stub recording (a table keeps the rows that overlap it, a unit its spikes inside it), so a stub stays a consistent short file.
-`fairephys.events` reads the events these tables are built from: a Neo event channel, the epocs of a TDT tank, the trials of a MonkeyLogic BHV2 file, and `match_codes` to align two code sequences (for example the codes in the recording with those of the behaviour file). What the codes mean, and how a lab synchronizes its clocks, stays in the dataset's `curate.py`. The BIDS events files are written with `fairephys.bids.generate_events_tsv`.
+`fairephys.events` reads the events these tables are built from: a Neo event channel, the epocs of a TDT tank, the trials of a MonkeyLogic BHV2 file, and `match_codes` to align two code sequences (for example the codes in the recording with those of the behavior file). What the codes mean, and how a lab synchronizes its clocks, stays in the dataset's `curate.py`. The BIDS events files are written with `fairephys.bids.generate_events_tsv`.
## Auxiliary Signals
@@ -275,7 +275,7 @@ The device channel indices of a session's `probe_group.json` are positions among
## ProbeInterface Integration
-`probes/builder.py` creates ProbeInterface objects from odML (see `probes/README.md`): identity (name, manufacturer, model_name, serial_number), the other fields as annotations with their units, contact ids `01`, `02`, ... numbered from the tip, or from the top with `first contact: top` (library probes keep theirs), device channel indices from the placement or the channel mapping, and an `x_offset` annotation per probe for the side-by-side group layout. The PNG files, one per probe of more than one contact, show `contact id:device channel` per contact; `zoom=` draws a dense probe whole beside its lowest `zoom` micrometers, labelled.
+`probes/builder.py` creates ProbeInterface objects from odML (see `probes/README.md`): identity (name, manufacturer, model_name, serial_number), the other fields as annotations with their units, contact ids `01`, `02`, ... numbered from the tip, or from the top with `first contact: top` (library probes keep theirs), device channel indices from the placement or the channel mapping, and an `x_offset` annotation per probe for the side-by-side group layout. The PNG files, one per probe of more than one contact, show `contact id:device channel` per contact; `zoom=` draws a dense probe whole beside its lowest `zoom` micrometers, labeled.
```python
from fairephys.probes import build_probe_group, build_session_probe_group, save_probe_group
diff --git a/src/fairephys/_resources/registry/README.md b/src/fairephys/_resources/registry/README.md
index 3936310..60feaa3 100644
--- a/src/fairephys/_resources/registry/README.md
+++ b/src/fairephys/_resources/registry/README.md
@@ -9,7 +9,7 @@ Declarative mapping files that drive the metadata pipeline. Code reads these reg
| `openminds_schemas.yaml` | openMINDS entity definitions, odML type assignments | `export/collection.py`, `enrichment/openminds.py`, `metadata/compiler.py` |
| `bids_mappings.yaml` | odML property paths to BIDS sidecar fields and TSV columns, the target BIDS spec | `bids/builder.py`, `bids/aux.py`, `bids/ecephys.py`, `bids/dataset.py`, `converters/metadata.py`, `validation/bids.py`, `export/readme.py` |
| `nwb_mappings.yaml` | odML property paths to NWBFile and Subject fields, unit transforms | `converters/metadata.py` |
-| `licenses.yaml` | licences by SPDX id: name and URL (texts in `_resources/licenses`) | `export/datacite.py`, `export/readme.py` |
+| `licenses.yaml` | licenses by SPDX id: name and URL (texts in `_resources/licenses`) | `export/datacite.py`, `export/readme.py` |
| `readme.yaml` | text blocks of the generated dataset README | `export/readme.py` |
The anatomy atlas (brain region names and UBERON terms) is not a registry: a project names its own table in the collection YAML (`anatomy atlas`).
diff --git a/src/fairephys/_resources/registry/licenses.yaml b/src/fairephys/_resources/registry/licenses.yaml
index a4c0709..ce91396 100644
--- a/src/fairephys/_resources/registry/licenses.yaml
+++ b/src/fairephys/_resources/registry/licenses.yaml
@@ -1,26 +1,34 @@
-# Licences a dataset can be shared under (the dataset template's "license"):
-# SPDX id -> name and URL, as the DataCite record (datacite.yml), the LICENSE
-# file and the data descriptor (README) write them. The names are those GIN's
-# DOI service lists (it matches the datacite.yml name and the first line of
-# LICENSE against them). The legal code of each id is _resources/licenses/.txt.
+# Licenses a dataset can be shared under (the dataset template's "license"):
+# SPDX id -> name and URL, as the DataCite record (datacite.yml) and the LICENSE
+# file write them. The names are those GIN's DOI service lists (it matches the
+# datacite.yml name and the first line of LICENSE against them). The official
+# name is the title of the legal code (_resources/licenses/.txt), as the
+# data descriptor (README) writes it.
CC-BY-4.0:
name: Creative Commons Attribution 4.0 International
+ official name: Creative Commons Attribution 4.0 International Public License
url: https://creativecommons.org/licenses/by/4.0/
CC-BY-SA-4.0:
name: Creative Commons Attribution-ShareAlike 4.0 International
+ official name: Creative Commons Attribution-ShareAlike 4.0 International Public License
url: https://creativecommons.org/licenses/by-sa/4.0/
CC-BY-NC-4.0:
name: Creative Commons Attribution-NonCommercial 4.0 International
+ official name: Creative Commons Attribution-NonCommercial 4.0 International Public License
url: https://creativecommons.org/licenses/by-nc/4.0/
CC-BY-NC-SA-4.0:
name: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
+ official name: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License
url: https://creativecommons.org/licenses/by-nc-sa/4.0/
CC-BY-ND-4.0:
name: Creative Commons Attribution-NoDerivatives 4.0 International
+ official name: Creative Commons Attribution-NoDerivatives 4.0 International Public License
url: https://creativecommons.org/licenses/by-nd/4.0/
CC-BY-NC-ND-4.0:
name: Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International
+ official name: Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License
url: https://creativecommons.org/licenses/by-nc-nd/4.0/
CC0-1.0:
name: Creative Commons CC0 1.0 Public Domain Dedication
+ official name: CC0 1.0 Universal
url: https://creativecommons.org/publicdomain/zero/1.0/
diff --git a/src/fairephys/_resources/registry/openminds_schemas.yaml b/src/fairephys/_resources/registry/openminds_schemas.yaml
index abb3210..074dd05 100644
--- a/src/fairephys/_resources/registry/openminds_schemas.yaml
+++ b/src/fairephys/_resources/registry/openminds_schemas.yaml
@@ -862,7 +862,7 @@ schemas:
# --- FileRepository (the repository of the curated data) ---
# Created per dataset from its repository url (the DOI archive URL when
- # published, the repository URL during curation). The hosting organisation
+ # published, the repository URL during curation). The hosting organization
# and the kind of repository come from the collection metadata
# (collection.yaml: repository host, repository type), which a dataset
# deposited elsewhere overrides in its dataset.yaml.
diff --git a/src/fairephys/_resources/registry/readme.yaml b/src/fairephys/_resources/registry/readme.yaml
index b048339..e61104d 100644
--- a/src/fairephys/_resources/registry/readme.yaml
+++ b/src/fairephys/_resources/registry/readme.yaml
@@ -35,8 +35,8 @@ first use:
# {bids version}, bids_mappings.yaml spec), with ecephys files the sentence on
# where the content of the files is defined, and with a metadata folder the
# part beyond BIDS
-layout standard: "The data are organised following the BIDS extension proposal {bids extension}, a draft extension of BIDS {bids version}."
-layout standard without ecephys: "The data are organised following BIDS {bids version}."
+layout standard: "The data are organized following the BIDS extension proposal {bids extension}, a draft extension of BIDS {bids version}."
+layout standard without ecephys: "The data are organized following BIDS {bids version}."
layout definitions: "The content of the BIDS files is defined in the [BEP032 specification]({bids extension specification})."
layout metadata folder: >-
Beyond BIDS, the layout holds the folder `{metadata dir}/` with the odML record,
@@ -57,7 +57,7 @@ file name keys:
data type folders sentence: "The files of a session are in one folder per data type: {folders}."
data type folders:
ecephys: extracellular electrophysiology
- beh: behaviour
+ beh: behavior
emg: electromyography
motion: motion tracking
anat: anatomical MRI
@@ -214,10 +214,10 @@ files:
content: Video recording
device type: video camera
- pattern: dataset_description.json
- tree: "name, BIDS version, licence, authors, funding and references of the dataset"
+ tree: "name, BIDS version, license, authors, funding and references of the dataset"
format: JSON
content: >-
- Name, BIDS version, licence, authors, funding, references and the
+ Name, BIDS version, license, authors, funding, references and the
software that generated the dataset
- pattern: participants.tsv
tree: "one row per subject"
@@ -278,11 +278,11 @@ files:
format: YAML
content: >-
Citation metadata for the DOI registration on GIN: title, authors,
- description, keywords, licence, funding and references
+ description, keywords, license, funding and references
- pattern: LICENSE
- tree: "licence of the dataset with its legal code"
+ tree: "license of the dataset with its legal code"
format: Text
- content: Licence of the dataset with its legal code
+ content: License of the dataset with its legal code
- pattern: "probes/*.json"
tree: "contact geometry of one probe and the wiring of its contacts to the recording channels"
format: JSON (ProbeInterface)
diff --git a/src/fairephys/_resources/templates/dataset.yaml b/src/fairephys/_resources/templates/dataset.yaml
index 54b2d8b..19793c0 100644
--- a/src/fairephys/_resources/templates/dataset.yaml
+++ b/src/fairephys/_resources/templates/dataset.yaml
@@ -43,7 +43,7 @@ Dataset:
# Ethics details (documented in odML, not pushed to openMINDS entities)
ethics authority: "" # e.g., "IACUC" or local ethics committee
ethics approval id: "" # protocol/authorization number
- licensed institution: "" # the licensed establishment: its name, its licence number, or both
+ licensed institution: "" # the licensed establishment: its name, its license number, or both
ethics directive: "" # e.g., "Directive 2010/63/EU"
authorizing body: "" # ministry or regulatory body
ethics statement: "" # full ethics declaration text
diff --git a/src/fairephys/converters/README.md b/src/fairephys/converters/README.md
index c799cc2..9e313eb 100644
--- a/src/fairephys/converters/README.md
+++ b/src/fairephys/converters/README.md
@@ -17,7 +17,7 @@ NWB conversion using neuroconv with ProbeInterface integration.
## The hook: add_to_nwbfile
-Both converters' `run_conversion(nwbfile_path, metadata, stub_test, add_to_nwbfile)` take the same hook: `add_to_nwbfile(nwbfile)` is called with the open `NWBFile` after neuroconv added the recording (its devices, electrode groups, electrode table and ElectricalSeries) and before the file is written, so a dataset's further content (trials, states, auxiliary and behavioural series, sorted units) goes into the same write. Nothing reopens a written file: a dataset never appends to an NWB. `EphysConverter.run_conversion` is neuroconv's sequence split open for the hook: `validate_metadata`, `create_nwbfile` (`make_nwbfile_from_metadata` and `add_to_nwbfile`), the hook, `write_nwbfile` (`configure_and_write_nwbfile`, neuroconv's chunking and compression). In a test file (`stub_test`) every recording stream is cut by `stub_recording` while it is written; the hook's content is cut by the helpers below.
+Both converters' `run_conversion(nwbfile_path, metadata, stub_test, add_to_nwbfile)` take the same hook: `add_to_nwbfile(nwbfile)` is called with the open `NWBFile` after neuroconv added the recording (its devices, electrode groups, electrode table and ElectricalSeries) and before the file is written, so a dataset's further content (trials, states, auxiliary and behavioral series, sorted units) goes into the same write. Nothing reopens a written file: a dataset never appends to an NWB. `EphysConverter.run_conversion` is neuroconv's sequence split open for the hook: `validate_metadata`, `create_nwbfile` (`make_nwbfile_from_metadata` and `add_to_nwbfile`), the hook, `write_nwbfile` (`configure_and_write_nwbfile`, neuroconv's chunking and compression). In a test file (`stub_test`) every recording stream is cut by `stub_recording` while it is written; the hook's content is cut by the helpers below.
## The helpers: extras.py
diff --git a/src/fairephys/converters/base.py b/src/fairephys/converters/base.py
index 075d05b..bc8fb44 100644
--- a/src/fairephys/converters/base.py
+++ b/src/fairephys/converters/base.py
@@ -162,7 +162,7 @@ def run_conversion(self, nwbfile_path: str | Path, metadata: dict, stub_test: bo
add_to_nwbfile=None):
"""Write the NWB (a test file holds the first samples only, see
stub_recording). `add_to_nwbfile(nwbfile)` adds a dataset's further
- content (behavioural series, intervals) to the file before it is
+ content (behavioral series, intervals) to the file before it is
written; nothing reopens a written file."""
from neuroconv.tools.nwb_helpers import make_nwbfile_from_metadata
from neuroconv.tools.spikeinterface import add_recording_to_nwbfile
@@ -230,7 +230,7 @@ def run_conversion(self, nwbfile_path: str | Path, metadata: dict, stub_test: bo
"""Write the NWB (see prepare_recording for the first-sample anchoring;
a test file holds the first samples of every stream, see
stub_recording). `add_to_nwbfile(nwbfile)` adds a dataset's further
- content (behavioural series, intervals, units) to the file after the
+ content (behavioral series, intervals, units) to the file after the
recording and before it is written; nothing reopens a written file."""
metadata = prepare_recording(self.recording, metadata)
for interface in self.recording_interfaces[1:]:
diff --git a/src/fairephys/enrichment/README.md b/src/fairephys/enrichment/README.md
index 3944c1e..752eeaa 100644
--- a/src/fairephys/enrichment/README.md
+++ b/src/fairephys/enrichment/README.md
@@ -67,7 +67,7 @@ python -m fairephys.enrichment.neo recording.ns5 -f blackrock --json
## fairephys.events
-`fairephys/events.py` reads the events of a recording and of its behaviour file as the datasets need them; what the codes mean and how a lab synchronizes its clocks stay in the datasets.
+`fairephys/events.py` reads the events of a recording and of its behavior file as the datasets need them; what the codes mean and how a lab synchronizes its clocks stay in the datasets.
- `event_times(rawio, channel, block_index=0, seg_index=0)`: times (s) and labels of one event or epoch channel of a parsed Neo RawIO (the Blackrock .nev digital codes, the TDT epocs, the Plexon events), by name or index, through Neo's `get_event_timestamps` and `rescale_event_timestamp`.
- `read_tdt_epocs(tank_dir, store, seg_index=0)`: onsets (s from the start of the block) and float64 values of one TDT epoc store, read from the block's TSQ index in Neo's record layout (`tsq_dtype`, the store's event records of channel 0, as `TdtRawIO`'s event channel returns them; the Tbk header must list the store as an epoc store). `TdtRawIO` itself is not opened: it indexes every channel of every stream of the block for one store (about a minute on a long block against well under a second) and rejects a block whose stream channels hold unequal chunk counts, a layout this reader accepts. `tank_dir` is a tank folder named as its files' prefix (the blocks in start-time order), or a block's .tsq for that block alone.
diff --git a/src/fairephys/events.py b/src/fairephys/events.py
index 10ee918..8fbddbf 100644
--- a/src/fairephys/events.py
+++ b/src/fairephys/events.py
@@ -1,4 +1,4 @@
-"""Events of a recording and of its behaviour file, as the datasets read them:
+"""Events of a recording and of its behavior file, as the datasets read them:
one Neo event or epoch channel, the epocs of a TDT tank, the trials of a
MonkeyLogic BHV2 file, and the alignment of two code sequences. What the codes
mean and how a lab synchronizes its clocks stay in the datasets."""
@@ -90,7 +90,7 @@ def read_tdt_epocs(tank_dir: str | Path, store: str, seg_index: int = 0) -> tupl
def match_codes(a: Sequence, b: Sequence) -> list[tuple[int, int]]:
"""Index pairs (i, j) with a[i] == b[j] that align two code sequences (a
- recording's and a behaviour file's), increasing in both: no code is used
+ recording's and a behavior file's), increasing in both: no code is used
twice and no pair crosses another.
The rule is difflib.SequenceMatcher's without its junk heuristics
diff --git a/src/fairephys/export/README.md b/src/fairephys/export/README.md
index aa135a8..91aaf70 100644
--- a/src/fairephys/export/README.md
+++ b/src/fairephys/export/README.md
@@ -44,7 +44,7 @@ save_collection(collection, "curated-data/metadata/dataset.openminds.jsonld")
- SubjectStates are placed in time (`per_session_config`): `relative_time_unit: day` sets `relative_time_indication` to the days since the subject's first dated session. Sessions without a date get none.
- Shared dataset statement: `Dataset.description` is a template, `{description}` followed by the optional token `{?Dataset/Project/dataset statement}`. The statement is written once in the shared collection metadata (`Project.dataset statement`) and appended to every dataset description; when it is empty the descriptions are unchanged. An empty optional token also drops parentheses that hold nothing else: `BehavioralProtocol.name` is `{name} ({?dataset citation})` ("Resting State Paradigm (Author et al., 2026)", the plain name without contributors), where `dataset citation` is the one derived token: the first Dataset contributor's family name, "et al." with more than one contributor, and the year of the Dataset's `release date` (a first publication elsewhere), else the release year of the export (`SchemaBuilder.dataset_citation`); `DatasetVersion.release_date` is the `release date` alone: without it the version has none and the collection validation lists it as missing (never the export date); the name keeps the export year until the date is set. An optional group `{?words {token} words}` carries the words around one token and is left out with them by the same rules (`recordings{?, provided as {format},} were`). The README reuses `fill_template()` for the shared records statement. The tokens `{bids version}` and `{bids extension}` (`templating.spec_tokens()`, from the BIDS registry `spec`: `bids_version`, `ecephys_extension`) resolve in every registry template, in the shared statements (`fill_statement()`: the dataset, version and usage statements, any other token raises) and in the records statement and the descriptor's file specifications, so a version statement can name the BIDS state the files follow.
- Related publications (`identifier_list`): each `Related Publications` entry whose identifier is a DOI, Handle or ISBN is that openMINDS node in `DatasetVersion.related_publications`; an entry of another type (a URL, an arXiv id, a PMID) or without identifier is listed in `collection.warnings`, which `--openminds-collection` writes to the openMINDS validation output. `DatasetVersion.full_documentation` is the `documentation url`, else (`fallback`) the first `IsDescribedBy` entry with a DOI.
-- `iri` fields take an http(s) URL or a bare DOI (written as `https://doi.org/`); any other value fails the build instead of being dropped. A behavioural protocol's `described in` is a DOI and becomes a DOI node.
+- `iri` fields take an http(s) URL or a bare DOI (written as `https://doi.org/`); any other value fails the build instead of being dropped. A behavioral protocol's `described in` is a DOI and becomes a DOI node.
- Nested entities may use `type: link` fields, resolved against top-level entities built earlier in `build_order` (this is why Consortium is built first). `nested_list` accepts a list of targets and concatenates the built ones: `Custodian.affiliations` = institutional Affiliation + Consortium Affiliation (`consortium member: true`). Consortium membership lives on the Person side (`Affiliation.member_of`); the KG shows it as a reverse link on the Consortium.
**kg.py**: EBRAINS KG integration
@@ -53,15 +53,15 @@ save_collection(collection, "curated-data/metadata/dataset.openminds.jsonld")
- `_save_with_retry()`: exponential backoff for transient KG errors
**datacite.py**: DataCite metadata for GIN DOI registration
-- `references`: one per `Related Publications` entry, in order: `id` with GIN's prefix of the identifier type (`doi:`, `arxiv:`, `pmid:`, `url:`; a Handle as `url:https://hdl.handle.net/`), `reftype` the entry's DataCite relation, `citation` as given. An entry without identifier, or an ISBN (no GIN prefix), is left out with a warning naming its citation; the file is still written. An identifier of no recognised form fails the compile (`fairephys.metadata.identifiers`).
-- `write_datacite()` writes `datacite.yml` and, next to it, `LICENSE`: the licence name (first line, as GIN's DOI service matches it against the datacite.yml licence) and URL, then the official plain-text legal code from `_resources/licenses/.txt` (from creativecommons.org, `/legalcode.txt`). An id without a stored legal code gives name and URL only, with a warning. Both files are added to `.bidsignore`.
+- `references`: one per `Related Publications` entry, in order: `id` with GIN's prefix of the identifier type (`doi:`, `arxiv:`, `pmid:`, `url:`; a Handle as `url:https://hdl.handle.net/`), `reftype` the entry's DataCite relation, `citation` as given. An entry without identifier, or an ISBN (no GIN prefix), is left out with a warning naming its citation; the file is still written. An identifier of no recognized form fails the compile (`fairephys.metadata.identifiers`).
+- `write_datacite()` writes `datacite.yml` and, next to it, `LICENSE`: the license name (first line, as GIN's DOI service matches it against the datacite.yml license) and URL, then the official plain-text legal code from `_resources/licenses/.txt` (from creativecommons.org, `/legalcode.txt`). An id without a stored legal code gives name and URL only, with a warning. Both files are added to `.bidsignore`.
**readme.py**: README generation from odML metadata
-- Nested subject sections: one bullet per filled property, labelled with section and property in sentence case ("Head post material: titanium"); a `description` is the section's own text ("Head post: ...").
+- Nested subject sections: one bullet per filled property, labeled with section and property in sentence case ("Head post material: titanium"); a `description` is the section's own text ("Head post: ...").
- Session durations in minutes (metadata values converted by their unit, Neo durations otherwise); the session count is of distinct sessions per subject; a Subject column with several subjects; table columns that are empty in every session are left out.
- Counts take the singular for 1 ("1 recording session", "1 contact").
- No doubled brackets (`bids.extractors.bracketed`): "Deutsche Forschungsgemeinschaft (DFG), SFB-1528"; a funding without acknowledgement reads "Funder, award title (award number)".
-- The recording system's channel count is labelled "System channels" (the capacity of the system, not the recorded channels).
+- The recording system's channel count is labeled "System channels" (the capacity of the system, not the recorded channels).
- Data Records opens with the shared records statement, its tokens filled from the dataset with lists as prose ("a, b and c"; the original data formats through an optional group), then one line of curation software versions per purpose from the odML `Curation Software` section ("Validation: BIDS validator ... with the BEP032 schema (commit ...), ... Conversion: fairephys 0.1.0 (commit abc1234), ..."; "(commit abc1234, with uncommitted changes)" when the fairephys source had them). No versions line without a records statement (a dataset the pipeline did not convert).
- A header line under the title: "Short name: | Version: | Repository: ", each part when filled (the full repository URL, which the citation no longer holds while it names the DOI placeholder).
- Every generated table has a one-line caption above it saying what it lists: the recording sessions (from the columns shown), the states of a processing step (the code in the raw files, the label, named as the trial_type value of the events files when there are events files, and the description) and the file table.
@@ -69,7 +69,7 @@ save_collection(collection, "curated-data/metadata/dataset.openminds.jsonld")
- The first plain mention of a term of the registry's `first use` is written out ("open metadata Markup Language (odML)"), and the first plain mention of each software of `software links` (or of a `Curation Software` tool with a code url) is linked, unless the text already links it; code, links and URLs are left as they are.
- The video rows of the file table (`*_video.*`, `*_video.json`) name the camera (manufacturer and model) and its recording software from the Hardware Auxiliary Devices of device type "video camera" (registry `device type`); without one they read "Video file in the format of the camera (MTS)" and "JSON".
- Affiliations: "lab, department, institution, city, country", the parts that are filled (the EBRAINS data descriptor template's "Institute (working group) department, university, city, country").
-- Author contributions: the description, then after a comma the openMINDS contribution types it does not already name (whole words, any case); without a description the types alone, capitalised.
+- Author contributions: the description, then after a comma the openMINDS contribution types it does not already name (whole words, any case); without a description the types alone, capitalized.
## Authentication
diff --git a/src/fairephys/export/collection.py b/src/fairephys/export/collection.py
index 578356d..fc8c794 100644
--- a/src/fairephys/export/collection.py
+++ b/src/fairephys/export/collection.py
@@ -821,7 +821,7 @@ def _kg_nodes(self, fdef: dict, section: odml.Section | None) -> Any:
self.collection.add(node)
nodes.append(node)
elif self.kg.client is not None:
- self.warnings.append(f"no {fdef['class']} labelled '{label}' in the Knowledge Graph")
+ self.warnings.append(f"no {fdef['class']} labeled '{label}' in the Knowledge Graph")
logger.warning(" %s", self.warnings[-1])
return (nodes or None) if fdef.get("list") else (nodes[0] if nodes else None)
diff --git a/src/fairephys/export/datacite.py b/src/fairephys/export/datacite.py
index df7cad2..dd576a8 100644
--- a/src/fairephys/export/datacite.py
+++ b/src/fairephys/export/datacite.py
@@ -2,8 +2,8 @@
This is the GIN exporter: datacite.yml follows GIN's DataCite template
(_resources/schemas/datacite.v1.yaml: its fields, reference types and
-licence names), and the LICENSE file next to it names the same licence,
-as GIN's DOI service checks. The licences a dataset can be shared under
+license names), and the LICENSE file next to it names the same license,
+as GIN's DOI service checks. The licenses a dataset can be shared under
are the registry licenses.yaml (SPDX id, name, URL).
"""
@@ -23,8 +23,8 @@
from ..registry import RESOURCES, load as load_registry
SCHEMA_PATH = RESOURCES / "schemas" / "datacite.v1.yaml"
-# Official plain-text legal code of each licence of the registry (.txt,
-# downloaded from creativecommons.org//legalcode.txt)
+# Official plain-text legal code of each license of the registry (.txt,
+# downloaded from creativecommons.org//legalcode.txt)
LICENSES_DIR = RESOURCES / "licenses"
logger = logging.getLogger(__name__)
@@ -32,7 +32,7 @@
# Handle as its URL); an ISBN has none
GIN_ID_PREFIXES = {"DOI": "doi:", "arXiv": "arxiv:", "PMID": "pmid:", "URL": "url:", "Handle": "url:"}
-# SPDX id -> {name, url} (the dataset template's licence ids)
+# SPDX id -> {name, url} (the dataset template's license ids)
LICENSES: dict[str, dict] = load_registry("licenses.yaml")
@@ -43,9 +43,9 @@ def _load_schema() -> dict:
def license_entry(license_id: str) -> dict:
- """{name, url} of a licence id of the registry; an unknown id is an error."""
+ """{name, url} of a license id of the registry; an unknown id is an error."""
if license_id not in LICENSES:
- raise ValueError(f"Unknown licence '{license_id}'; the licences registry (licenses.yaml) "
+ raise ValueError(f"Unknown license '{license_id}'; the licenses registry (licenses.yaml) "
f"has: {', '.join(LICENSES)}")
return LICENSES[license_id]
@@ -119,7 +119,7 @@ def odml_to_datacite(odml_path: Path) -> dict:
if v := _prop(ds, "full name"): dc["title"] = v
if v := _prop(ds, "description"): dc["description"] = v.strip() if isinstance(v, str) else v
if v := _prop(ds, "keywords"): dc["keywords"] = v if isinstance(v, list) else [v]
- if v := _prop(ds, "license"): dc["license"] = dict(license_entry(str(v)))
+ if v := _prop(ds, "license"): dc["license"] = {k: license_entry(str(v))[k] for k in ("name", "url")}
if f := _sec(ds, "Fundings"):
if items := [x for s in f.get("sections", []) if s.get("name", "").startswith("Fundings_") and (x := _funding(s))]:
dc["funding"] = items
@@ -145,26 +145,26 @@ def write_datacite(odml_path: Path, output_dir: Path, validate_output: bool = Tr
raise ValueError("DataCite validation failed:\n" + "\n".join(f" - {e}" for e in errs))
(out := output_dir / "datacite.yml").write_text(yaml.dump(dc, default_flow_style=False, allow_unicode=True, sort_keys=False))
- # LICENSE next to datacite.yml: GIN's DOI service checks that both name the same licence
+ # LICENSE next to datacite.yml: GIN's DOI service checks that both name the same license
if license_id := _prop(_dataset_section(odml_path), "license"):
(license_file := output_dir / "LICENSE").unlink(missing_ok=True) # may be an annexed release
license_file.write_text(license_text(str(license_id)), encoding="utf-8")
else:
- logger.warning("No licence in the odML, no LICENSE file written")
+ logger.warning("No license in the odML, no LICENSE file written")
write_bidsignore(output_dir)
return out
def license_text(license_id: str) -> str:
- """LICENSE content: licence name and URL, then the official plain-text legal code.
+ """LICENSE content: license name and URL, then the official plain-text legal code.
- The first line is the datacite.yml licence name (GIN's DOI service matches
+ The first line is the datacite.yml license name (GIN's DOI service matches
it). A registry id without a stored legal code gives name and URL only.
"""
lic = license_entry(license_id)
head = f"{lic['name']}\n{lic['url']}\n"
legal_code = LICENSES_DIR / f"{license_id}.txt"
if not legal_code.is_file():
- logger.warning("No legal code for licence '%s': LICENSE holds its name and URL only", license_id)
+ logger.warning("No legal code for license '%s': LICENSE holds its name and URL only", license_id)
return head
return f"{head}\n{legal_code.read_text(encoding='utf-8')}"
diff --git a/src/fairephys/export/readme.py b/src/fairephys/export/readme.py
index 6487767..1fd595c 100644
--- a/src/fairephys/export/readme.py
+++ b/src/fairephys/export/readme.py
@@ -270,7 +270,7 @@ def _methods_one_subject(subj: odml.Section, several: bool) -> str:
def _nested_bullets(sec: odml.Section) -> list[str]:
- """One bullet per filled property of a nested section, labelled with the
+ """One bullet per filled property of a nested section, labeled with the
section and the property ("- **Head post material:** titanium"); a
description is the section's own text ("- **Head post:** ..."); the readme
registry's subject labels name a pair whose words repeat ("- **Dura:** intact")."""
@@ -473,7 +473,7 @@ def _states_table(states: list[dict], events_files: bool = False) -> str:
"Label": ("the label in the events tables (`*_events.tsv`, column `trial_type`)" if events_files
else "the label"),
"Description": "a short description"}
- caption = f"{_TABLE} Behavioural states of this annotation: {_prose_list(held[c] for c in columns)}."
+ caption = f"{_TABLE} Behavioral states of this annotation: {_prose_list(held[c] for c in columns)}."
rows = [caption, "", "| " + " | ".join(columns) + " |", "|" + "|".join("-" * (len(c) + 2) for c in columns) + "|"]
rows += ["| " + " | ".join(str(s.get(c.lower(), "")).strip() for c in columns) + " |" for s in states]
return "\n".join(rows)
@@ -617,14 +617,13 @@ def _methods_anatomy(doc: odml.Document) -> str:
def _usage_notes(ds: odml.Section) -> str:
- """Format USAGE NOTES: dataset notes, shared usage statement, licence."""
+ """Format USAGE NOTES: dataset notes, shared usage statement, license."""
parts = [_with_statement(ds, "usage notes", "usage statement")]
license_id = str(prop(ds, "license") or "")
if license_id:
- url = load_registry("licenses.yaml").get(license_id, {}).get("url")
- label = _license_label(license_id)
- name = f"[{label}]({url})" if url else label
- parts.append(f"The data are shared under the {name} licence.")
+ entry = load_registry("licenses.yaml")[license_id]
+ parts.append(f"The data are shared under the {entry['official name']} "
+ f"([{_license_label(license_id)}]({entry['url']})).")
text = "\n\n".join(p for p in parts if p)
if not text:
return ""
@@ -911,7 +910,7 @@ def _author_contributions(ds: odml.Section) -> str:
continue
name = f"{given} {family}".strip()
# the description and, after a comma, the role terms it does not name itself
- # (whole words, any case); the terms alone, capitalised, without a description
+ # (whole words, any case); the terms alone, capitalized, without a description
roles = _values(sub, "roles") or _values(sub, "role")
desc = str(prop(sub, "contribution description") or "").strip().rstrip(".;, ")
unnamed = [str(r) for r in roles if _nonempty(r) and not re.search(
diff --git a/src/fairephys/export/templating.py b/src/fairephys/export/templating.py
index 55db4d1..d5a7976 100644
--- a/src/fairephys/export/templating.py
+++ b/src/fairephys/export/templating.py
@@ -33,7 +33,7 @@ def spec_tokens() -> dict[str, str]:
def fill_statement(text: str, dataset=None) -> str:
"""A shared statement (collection metadata) with its specification tokens
(spec_tokens) and the dataset's {repository url} and {repository path}
- ("organisation/repository"; both empty without a url) filled; any other token raises."""
+ ("organization/repository"; both empty without a url) filled; any other token raises."""
url = str(prop(dataset, "repository url") or "").strip()
tokens = {**spec_tokens(), "repository url": url, "repository path": urlparse(url).path.strip("/")}
diff --git a/src/fairephys/metadata/compiler.py b/src/fairephys/metadata/compiler.py
index 5c3db76..f25fc6d 100644
--- a/src/fairephys/metadata/compiler.py
+++ b/src/fairephys/metadata/compiler.py
@@ -380,7 +380,7 @@ def compile_to_odml(metadata: dict, omit_empty: bool = False, author: str = None
_set_dataset_citation(doc)
_add_curation_software(doc)
- # an identifier of no recognised form, or an entry with neither identifier
+ # an identifier of no recognized form, or an entry with neither identifier
# nor citation, raises here rather than in an output step
related_publications(subsection(doc, "Dataset"))
validate_document(doc)
diff --git a/src/fairephys/metadata/identifiers.py b/src/fairephys/metadata/identifiers.py
index e065a8c..c9bfae8 100644
--- a/src/fairephys/metadata/identifiers.py
+++ b/src/fairephys/metadata/identifiers.py
@@ -1,4 +1,4 @@
-"""Identifiers of related publications: their type and normalised value.
+"""Identifiers of related publications: their type and normalized value.
The types are those of DataCite's relatedIdentifierType that an entry of
dataset.yaml 'Related Publications' can name, read from the form of the
@@ -54,7 +54,7 @@ def link(self) -> str:
def parse_identifier(text: str) -> Identifier:
- """Type and normalised value of an identifier; one of no recognised form raises."""
+ """Type and normalized value of an identifier; one of no recognized form raises."""
text = str(text or "").strip()
for kind, pattern in (("DOI", _DOI_RE), ("Handle", _HANDLE_RE), ("arXiv", _ARXIV_RE), ("PMID", _PMID_RE),
("ISBN", _ISBN_RE), ("URL", _URL_RE)):
@@ -63,7 +63,7 @@ def parse_identifier(text: str) -> Identifier:
if text.lower().startswith("isbn:"):
raise ValueError(f"ISBN '{text}' is not in the form openMINDS requires: {ISBN_PATTERN} "
"(hyphenated, e.g. 978-3-161-48410-0 or 3-161-48410-0)")
- raise ValueError(f"Identifier '{text}' has no recognised form: give {FORMS}")
+ raise ValueError(f"Identifier '{text}' has no recognized form: give {FORMS}")
class Publication(NamedTuple):
@@ -91,7 +91,7 @@ def reference(self) -> str:
def related_publications(dataset: odml.Section | None, name: str = SECTION) -> list[Publication]:
"""The Dataset's Related Publications (the subsection `name`) in their
- order; an identifier of no recognised form, or an entry with neither
+ order; an identifier of no recognized form, or an entry with neither
identifier nor citation, raises."""
entries = subsection(dataset, name)
publications = []
diff --git a/src/fairephys/metadata/provenance.py b/src/fairephys/metadata/provenance.py
index c7b701a..a11ef7a 100644
--- a/src/fairephys/metadata/provenance.py
+++ b/src/fairephys/metadata/provenance.py
@@ -128,7 +128,7 @@ def git(*args: str) -> str | None:
def source_url(project_urls: list[str]) -> str | None:
"""The repository URL among a package's project URLs ("Label, URL" entries
- of [project.urls]) labelled as its source; None without one."""
+ of [project.urls]) labeled as its source; None without one."""
for entry in project_urls:
label, _, url = entry.partition(",")
if re.sub(r"[^a-z0-9]", "", label.lower()) in SOURCE_URL_LABELS and url.strip():
diff --git a/src/fairephys/probes/builder.py b/src/fairephys/probes/builder.py
index 1d4fb57..112622d 100644
--- a/src/fairephys/probes/builder.py
+++ b/src/fairephys/probes/builder.py
@@ -488,8 +488,8 @@ def write_session_probe_group(doc, session, output_dir: Path, **figure) -> Path:
def _plot_probe(probe, path: Path, zoom: float = None, figsize=(8, 10), fontsize: float = 9, **plot_probe_kwargs):
- """Draw a probe with ProbeInterface's plot_probe at true scale, each contact labelled contact id:device
- channel; with zoom (um) the whole probe beside the labelled lowest zoom um of its contacts."""
+ """Draw a probe with ProbeInterface's plot_probe at true scale, each contact labeled contact id:device
+ channel; with zoom (um) the whole probe beside the labeled lowest zoom um of its contacts."""
fig, axes = plt.subplots(1, 1 + bool(zoom), figsize=figsize, layout="constrained", squeeze=False)
if zoom:
plot_probe(probe, ax=axes[0, 0], title=False, **plot_probe_kwargs)
diff --git a/tests/golden/README.md b/tests/golden/README.md
index ec24af3..ab4633f 100644
--- a/tests/golden/README.md
+++ b/tests/golden/README.md
@@ -71,7 +71,7 @@ Resting state in the dark.
**State Annotation** (video annotation)
-**Table 1.** Behavioural states of this annotation: the code of the original annotation, the label and a short description.
+**Table 1.** Behavioral states of this annotation: the code of the original annotation, the label and a short description.
| Code | Label | Description |
|------|-------|-------------|
@@ -95,17 +95,17 @@ Channel 7 is noisy.
Read with [PyNWB](https://pynwb.readthedocs.io/).
-The data are shared under the [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) licence.
+The data are shared under the Creative Commons Attribution 4.0 International Public License ([CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)).
## Data Records
-The data are organised following the Brain Imaging Data Structure ([BIDS](https://bids.neuroimaging.io/)) extension proposal BEP032 Microelectrode Electrophysiology ([bids-specification pull request #2307](https://github.com/bids-standard/bids-specification/pull/2307)), a draft extension of BIDS 1.11.2. The content of the BIDS files is defined in the [BEP032 specification](https://bids-specification--2307.org.readthedocs.build/en/2307/). Beyond BIDS, the layout holds the folder `metadata/` with the open metadata Markup Language ([odML](https://g-node.github.io/python-odml/)) record, the canonical record of all metadata of the dataset, and the [openMINDS](https://openminds.om-i.org/) metadata; the file table below names every file type.
+The data are organized following the Brain Imaging Data Structure ([BIDS](https://bids.neuroimaging.io/)) extension proposal BEP032 Microelectrode Electrophysiology ([bids-specification pull request #2307](https://github.com/bids-standard/bids-specification/pull/2307)), a draft extension of BIDS 1.11.2. The content of the BIDS files is defined in the [BEP032 specification](https://bids-specification--2307.org.readthedocs.build/en/2307/). Beyond BIDS, the layout holds the folder `metadata/` with the open metadata Markup Language ([odML](https://g-node.github.io/python-odml/)) record, the canonical record of all metadata of the dataset, and the [openMINDS](https://openminds.om-i.org/) metadata; the file table below names every file type.
The recordings, provided as Blackrock NSx (.ns5) and Video (.MTS), were converted.
Validation: [BIDS validator](https://github.com/bids-standard/bids-validator) 2.2.6 with the BEP032 schema (commit 508cfc7b) and [NWB Inspector](https://nwbinspector.readthedocs.io/) 0.7.2. Conversion: fairephys 0.1.0 and [NeuroConv](https://neuroconv.readthedocs.io/) 0.10.2.
-File names are made of key-value pairs and end with the file type: `sub` (subject), `ses` (session), `task` (task, or rest) and `recording` (recorded signal). The files of a session are in one folder per data type: `beh` (behaviour) and `ecephys` (extracellular electrophysiology).
+File names are made of key-value pairs and end with the file type: `sub` (subject), `ses` (session), `task` (task, or rest) and `recording` (recorded signal). The files of a session are in one folder per data type: `beh` (behavior) and `ecephys` (extracellular electrophysiology).
```
Test/
@@ -127,9 +127,9 @@ Test/
sub-MonkeyA_ses-01_task-rest_recording-eye_physio.json [column names, sampling frequency and start time of the matching physio.tsv.gz]
sub-MonkeyA_ses-01_task-rest_recording-eye_physio.tsv.gz [eye-tracking signals of the recording, one column per signal]
... (1 more session)
- LICENSE [licence of the dataset with its legal code]
+ LICENSE [license of the dataset with its legal code]
datacite.yml [citation metadata for the DOI registration on GIN]
- dataset_description.json [name, BIDS version, licence, authors, funding and references of the dataset]
+ dataset_description.json [name, BIDS version, license, authors, funding and references of the dataset]
participants.tsv [one row per subject]
```
@@ -144,10 +144,10 @@ Test/
| `*_physio.tsv.gz` | TSV (gzip) | Eye-tracking signals (eye), one column per signal and no header row |
| `*_physio.json` | JavaScript Object Notation (JSON) | Column names, units, sampling frequency and start time of the matching physio.tsv.gz |
| `*_video.MTS` | Video (MTS) | Video recording |
-| `dataset_description.json` | JSON | Name, BIDS version, licence, authors, funding, references and the software that generated the dataset |
+| `dataset_description.json` | JSON | Name, BIDS version, license, authors, funding, references and the software that generated the dataset |
| `participants.tsv` | TSV | One row per subject: species, sex, age and weight |
-| `datacite.yml` | YAML | Citation metadata for the Digital Object Identifier (DOI) registration on GIN: title, authors, description, keywords, licence, funding and references |
-| `LICENSE` | Text | Licence of the dataset with its legal code |
+| `datacite.yml` | YAML | Citation metadata for the Digital Object Identifier (DOI) registration on GIN: title, authors, description, keywords, license, funding and references |
+| `LICENSE` | Text | License of the dataset with its legal code |
| `probes/*.json` | JSON ([ProbeInterface](https://probeinterface.readthedocs.io/)) | Contact geometry of each probe: contact positions and shapes and the wiring to the recording channels |
| `probes/sub-*_ses-*/*.json` | JSON (ProbeInterface) | Contact geometry of each probe: contact positions and shapes and the wiring to the recording channels |
| `metadata/*.instances.yaml` | YAML | openMINDS terms of the controlled vocabulary values in the odML record |
diff --git a/tests/test_nwb.py b/tests/test_nwb.py
index 22c1b11..d0bfc58 100644
--- a/tests/test_nwb.py
+++ b/tests/test_nwb.py
@@ -366,7 +366,7 @@ def add(nwb):
assert recording_span(nwb) == (0.25, 0.349 if stub_test else 1.249)
add_trials(nwb, trials, {"condition": "the condition number"}, stub_test=stub_test)
add_time_intervals(nwb, "states", trials.rename(columns={"condition": "state"}), {"state": "the state"},
- "behavioural states", stub_test=stub_test)
+ "behavioral states", stub_test=stub_test)
if stub_test: # no spike of any unit in the span: no table at all
outside = [{"spike_times": [5.0], "obs_intervals": [[0.0, 10.0]]}]
assert add_units(nwb, outside, {}, "units", resolution=1e-4, stub_test=True) == 0 and nwb.units is None
diff --git a/tests/test_placements.py b/tests/test_placements.py
index 99a1fb8..8c4d45a 100644
--- a/tests/test_placements.py
+++ b/tests/test_placements.py
@@ -214,7 +214,7 @@ def test_unconnected_contacts_left_out_of_a_generated_grid(placed):
def test_parametric_probe_errors():
- """Geometry the builder cannot honour is an error, never a guess."""
+ """Geometry the builder cannot honor is an error, never a guess."""
for cfg, error in [
({"first contact": "middle"}, "neither 'tip' nor 'top'"),
({"first contact": "top", "contact arrangement": "matrix", "number of columns": 1}, "linear probes only"),
diff --git a/tests/test_readme_datacite.py b/tests/test_readme_datacite.py
index 9cdc7c4..8cea234 100644
--- a/tests/test_readme_datacite.py
+++ b/tests/test_readme_datacite.py
@@ -150,7 +150,7 @@ def test_datacite_golden(frozen, make_doc, tmp_path, golden):
def test_datacite_references(make_doc, tmp_path, caplog):
"""Each Related Publications entry is a reference with GIN's id prefix of its type and the entry's relation;
- an ISBN (no GIN prefix) is left out with a warning; an identifier of no recognised form raises."""
+ an ISBN (no GIN prefix) is left out with a warning; an identifier of no recognized form raises."""
def references(*entries):
doc = make_doc(Dataset={"Related Publications": [
{"identifier": i, "relation": r, "citation": f"Citation {n}."} for n, (i, r, *_) in enumerate(entries)]})
@@ -169,7 +169,7 @@ def references(*entries):
assert references(*entries) == [{"id": gin_id, "reftype": relation, "citation": f"Citation {n}."}
for n, (_, relation, gin_id) in enumerate(entries) if gin_id]
assert any("not in datacite.yml: Citation 6." in r.getMessage() for r in caplog.records)
- with pytest.raises(ValueError, match="no recognised form"):
+ with pytest.raises(ValueError, match="no recognized form"):
references(("Doe 2024", "IsSupplementTo"))
@@ -205,21 +205,21 @@ def test_how_to_cite_generated_unless_given(make_doc):
assert doc["Dataset"].properties["how to cite"].values == [expected.replace("YEAR", str(date.today().year))]
-def test_licence_text_and_label(make_doc, tmp_path):
- """LICENSE starts with the registry name and URL; the README links the CC label; unknown licences raise."""
+def test_license_text_and_label(make_doc, tmp_path):
+ """LICENSE starts with the registry name and URL; the README links the CC label; unknown licenses raise."""
name, url, blank, title, *_ = license_text("CC-BY-4.0").splitlines()
assert (name, url, blank, title) == ("Creative Commons Attribution 4.0 International",
"https://creativecommons.org/licenses/by/4.0/", "",
"Attribution 4.0 International")
for spdx, label in (("CC-BY-NC-SA-4.0", "CC BY-NC-SA 4.0"), ("CC0-1.0", "CC0 1.0")):
- assert f"shared under the [{label}](https://" in odml_to_readme(make_doc(Dataset={"license": spdx}), tmp_path)
- with pytest.raises(ValueError, match="Unknown licence 'Some-Licence-1.0'"):
- license_text("Some-Licence-1.0")
+ assert f"([{label}](https://" in odml_to_readme(make_doc(Dataset={"license": spdx}), tmp_path)
+ with pytest.raises(ValueError, match="Unknown license 'Some-License-1.0'"):
+ license_text("Some-License-1.0")
def test_author_contributions(make_doc, tmp_path):
"""Each contributor's description followed, after a comma, by the role terms it does not name
- (whole words, any case), or the terms alone, capitalised (the EBRAINS curators' edits, 2026-11-04)."""
+ (whole words, any case), or the terms alone, capitalized (the EBRAINS curators' edits, 2026-11-04)."""
contributions = [
({"roles": ["coordination", "data management"],
"contribution description": "Project coordination and supervision of data curation"},
@@ -293,7 +293,7 @@ def no_git(*args, **kwargs):
def test_datacite_files_next_to_the_record(make_doc, tmp_path):
- """LICENSE from the licence id next to datacite.yml; .bidsignore lists both once and keeps its entries,
+ """LICENSE from the license id next to datacite.yml; .bidsignore lists both once and keeps its entries,
the same whether the datacite record or the BIDS layout writes it last."""
yaml_path, _ = save_odml(make_doc(), tmp_path / "odml" / "t")
out = tmp_path / "out"
diff --git a/tests/test_registries.py b/tests/test_registries.py
index 3db65a4..48911d7 100644
--- a/tests/test_registries.py
+++ b/tests/test_registries.py
@@ -93,10 +93,10 @@ def walk(node):
assert lookups and set(lookups) == {"common"}
-def test_licences_registry_matches_the_dataset_schema():
- """Every licence the schema allows has name, https URL and legal code; one shared registry."""
+def test_licenses_registry_matches_the_dataset_schema():
+ """Every license the schema allows has name, https URL and legal code; one shared registry."""
schema = yaml.safe_load((RESOURCES / "schemas" / "dataset.v1.yaml").read_text())
allowed = schema["properties"]["Dataset"]["properties"]["license"]["enum"]
assert sorted(allowed) == sorted(LICENSES) and load("licenses.yaml") is LICENSES
- assert all(set(v) == {"name", "url"} and v["url"].startswith("https://") for v in LICENSES.values())
+ assert all(set(v) == {"name", "official name", "url"} and v["url"].startswith("https://") for v in LICENSES.values())
assert all((LICENSES_DIR / f"{spdx}.txt").is_file() for spdx in allowed)
diff --git a/tests/test_validation.py b/tests/test_validation.py
index 1203714..a842fff 100644
--- a/tests/test_validation.py
+++ b/tests/test_validation.py
@@ -243,7 +243,7 @@ def _int16(seed, shape):
(FakeRawIO(_int16(2, (2000, 2)), gain=[1.0, 2.0]),
dict(data=_int16(2, (2000, 2)), channel_conversion=np.array([1e-6, 2e-6])),
{"nwb_scale": "1e-06..2e-06 V"}, False),
-], ids=["volts labelled uV", "int16 with gain", "channel conversion"])
+], ids=["volts labeled uV", "int16 with gain", "channel conversion"])
def test_samples_compared_on_the_nwb_scale(integrity_check, tmp_path, raw, nwb, info, note):
"""Equal samples pass whatever scale each side states; both scales are reported, a disagreement noted."""
report = integrity_check(raw, _series_nwb(tmp_path / "t.nwb", **nwb))