Skip to content

Commit 7eecf5e

Browse files
committed
remove quarto dep, fix docs
1 parent ca8f53f commit 7eecf5e

5 files changed

Lines changed: 21 additions & 4591 deletions

File tree

‎README.md‎

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# BIL Data Python API
22

3-
This repository contains the public-facing Python API for accessing and analyzing neural data from the [Brain Interfacing Laboratory](https://bil.stanford.edu/). The public deposition is at the [Stanford Digital Repository (SDR)](https://purl.stanford.edu/zz618yg1930).
3+
This is a Python API for accessing and analyzing neural data from the [Brain Interfacing Laboratory](https://bil.stanford.edu/). The public deposition is at the [Stanford Digital Repository (SDR)](https://purl.stanford.edu/zz618yg1930).
44

55
## Installation
66

@@ -10,11 +10,9 @@ pip install bilab
1010

1111
## Data Availability
1212

13-
The `bil` package is an API for interacting with [publicly deposited data](https://purl.stanford.edu/zz618yg1930). In that directory, each recording session has its own identifier under the `data` directory. For instance, "U201130_01" is the first session by subject U on 2020-11-30.
13+
The `bilab` package is an API for interacting with [publicly deposited data](https://purl.stanford.edu/zz618yg1930). In that directory, each recording session has its own identifier under the `data` directory. For instance, "U201130_01" is the first session by subject U on 2020-11-30.
1414

15-
**Not all data types are available for all sessions.**
16-
17-
Public datasets are deposited incrementally. The API contains methods for signals that will raise a `FileNotFoundError` if those signals have not been published.
15+
This is a public distribution of an internal API, and **not all data types are publicly available for all sessions.** Public datasets are deposited incrementally. The API contains methods for signals that will raise a `FileNotFoundError` if those signals have not been published. The deposition is growing incrementally to permit reproduction and extension upon published results.
1816

1917
## Quickstart
2018

@@ -40,22 +38,6 @@ span = study.spans[0]
4038
lfp = span.lfp(region="m1") # (96, T) ndarray
4139
```
4240

43-
## Development
44-
45-
For development, clone the repository and install the additional `dev` dependencies:
46-
47-
```bash
48-
pip install -e ".[dev]"
49-
```
50-
51-
Alternatively, `uv` can be used to pull the latest `uv.lock` into a virtual environment:
41+
## Contributing
5242

53-
```bash
54-
uv sync --all-extras
55-
```
56-
57-
Finally, configure pre-commit hooks:
58-
59-
```bash
60-
pre-commit install
61-
```
43+
This is a public distribution of an internal API; at this time, development is proceeding internally.

‎docs/quickstart.ipynb‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,8 @@
1919
"source": [
2020
"First, install the package!\n",
2121
"\n",
22-
"**Via HTTPS:**\n",
2322
"```bash\n",
24-
"pip install git+https://github.com/bil/data-python.git\n",
25-
"```\n",
26-
"\n",
27-
"**Via SSH:**\n",
28-
"```bash\n",
29-
"pip install git+ssh://git@github.com/bil/data-python.git\n",
23+
"pip install bilab\n",
3024
"```"
3125
]
3226
},
@@ -38,7 +32,7 @@
3832
"## Data Availability Disclaimer\n",
3933
"\n",
4034
"1. **Incremental Releases:** The public deposition in the [SDR](https://purl.stanford.edu/zz618yg1930) is being expanded incrementally and only contains data associated with formal publications.\n",
41-
"2. **Missing Files:** Because of this, many API methods **will not work** until the corresponding data has been released. These will fail with a `FileNotFoundError`."
35+
"2. **Missing Files:** Because of this, many API methods targetting unpublished data **will not work** until the corresponding data has been released, and will raise a `FileNotFoundError`."
4236
]
4337
},
4438
{
@@ -382,7 +376,7 @@
382376
"name": "python",
383377
"nbconvert_exporter": "python",
384378
"pygments_lexer": "ipython3",
385-
"version": "3.10.6"
379+
"version": "3.12.3"
386380
}
387381
},
388382
"nbformat": 4,

‎pyproject.toml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "uv_build"
77

88
[project]
99
name = "bilab"
10-
version = "0.1.2"
10+
version = "0.1.4"
1111
description = "A data API for the Brain Interfacing Laboratory"
1212
readme = "README.md"
1313
requires-python = ">=3.9"
@@ -38,7 +38,6 @@ Repository = "https://github.com/bil/data-python"
3838

3939
[project.optional-dependencies]
4040
dev = [
41-
"quarto-cli",
4241
"pytest",
4342
"pytest-mock",
4443
"nbstripout",

‎scripts/release.sh‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,18 @@ if [[ -n "$(git status --porcelain)" ]] then
44
echo "Nonempty status"
55
exit 1
66
fi
7-
# Run AFTER bumping version
8-
git tag "v$(uv version --short)"
9-
git push --tags
7+
if [[ ! -f .env ]] then
8+
echo "Missing .env"
9+
exit 1
10+
fi
11+
# push commits
12+
git push origin HEAD:main
13+
# tag commit
14+
tag="v$(uv version --short)"
15+
git tag "$tag"
16+
# push tag
17+
git push github $tag
1018
# Expect PYPI_TOKEN in a .env
11-
[ ! -f .env ] || export $(grep -v '^#' .env | xargs)
19+
source .env
1220
uv build
1321
uv publish --token $PYPI_TOKEN

0 commit comments

Comments
 (0)