Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Codespell configuration is within pyproject.toml
---
name: Codespell

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Annotate locations with typos
uses: codespell-project/codespell-problem-matcher@v1
- name: Codespell
uses: codespell-project/actions-codespell@v2
4 changes: 2 additions & 2 deletions brainstem_api_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"source": [
"## Loaded models can be sorted by different criteria applying to\n",
"## their fields. In this example, sessions will be sorted in \n",
"## descending ording according to their name.\n",
"## descending ordering according to their name.\n",
"output1 = client.load_model('session', sort=['-name']).json()"
]
},
Expand All @@ -103,7 +103,7 @@
},
"outputs": [],
"source": [
"### The list of related experiment data can be retrived from the\n",
"### The list of related experiment data can be retrieved from the\n",
"### returned dictionary.\n",
"dataacquisition = output1[\"sessions\"][0][\"dataacquisition\"]"
]
Expand Down
4 changes: 2 additions & 2 deletions brainstem_api_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

## Loaded models can be sorted by different criteria applying to
## their fields. In this example, sessions will be sorted in
## descending ording according to their name.
## descending ordering according to their name.
output1 = client.load_model('session', sort=['-name']).json()

## In some cases models contain relations with other models, and
Expand All @@ -29,7 +29,7 @@
## manipulations related to each session will be included.
output1 = client.load_model('session', include=['projects', 'dataacquisition', 'behaviors', 'manipulations']).json()

### The list of related experiment data can be retrived from the
### The list of related experiment data can be retrieved from the
### returned dictionary.
dataacquisition = output1["sessions"][0]["dataacquisition"]

Expand Down
2 changes: 1 addition & 1 deletion brainstem_api_tutorial_new.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# 2. Loging in with token\n",
"# 2. Login with token\n",
"For convenience, you can save your authentication token to a configuration file. This allows you to quickly initialize the client in future sessions without entering login details. Simply load the token from your saved file and pass it to the client constructor."
]
},
Expand Down
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
build-backend = "setuptools.build_meta"
[tool.codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
skip = '.git*'
check-hidden = true
ignore-regex = '^\s*"image/\S+": ".*'
# ignore-words-list = ''