Skip to content

Commit 32e613f

Browse files
committed
Update README and package information.
1 parent 928f03d commit 32e613f

3 files changed

Lines changed: 20 additions & 8 deletions

File tree

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1-
This simple package contains a `brain_plot` function that plots data on cortical surface.
2-
It assumes that:
3-
- The data is in fsaverage space with icoorder3 resolution (642 vertices per hemisphere).
4-
- The non-cortical vertices has been masked out (588 and 587 remaining vertices for the left and right hemisphere, respectively).
1+
This is a Python package that plots data on cortical surface.
2+
3+
## Installation
4+
The package can be installed with pip:
5+
```bash
6+
pip install brainplotlib
7+
```
8+
9+
## Example usage
510

611
```Python
712
import numpy as np
813
from brainplotlib import brain_plot
914

10-
# Generate some random data
15+
## Generate some random data
16+
# In this case it's icoorder3 resolution (642 vertices per hemisphere), and
17+
# the non-cortical vertices have been masked out (588 and 587 remaining
18+
# vertices for the left and right hemisphere, respectively).
1119
rng = np.random.default_rng(0)
1220
v = rng.random((1175, ))
1321

images/random_data.png

24.3 KB
Loading

setup.cfg

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = brainplotlib
3-
version = 0.1.0
3+
version = 0.2.0
44
author = Ma Feilong
55
author_email = mafeilong@gmail.com
66
description = A lightweight package to plot brain surfaces with Python.
@@ -25,8 +25,12 @@ install_requires =
2525
matplotlib
2626

2727
[options.package_data]
28-
brainplotlib =
29-
data/*.npy
28+
brainplotlib =
29+
data/*.npy
3030

3131
[options.packages.find]
3232
where = src
33+
34+
[options.extras_require]
35+
tests =
36+
pytest

0 commit comments

Comments
 (0)