Skip to content

Commit 717592d

Browse files
FrancescoCasalegnoStanislav Schmidt
andauthored
Publish Docs on RTD (#24)
* Add docs/requirements.txt * Add NeuroTS to dependencies * Add badges Co-authored-by: Stanislav Schmidt <stanislav.schmidt@epfl.ch>
1 parent a4944bb commit 717592d

6 files changed

Lines changed: 74 additions & 1 deletion

File tree

.readthedocs.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 2
2+
3+
formats: []
4+
5+
sphinx:
6+
builder: html
7+
configuration: docs/source/conf.py
8+
9+
build:
10+
image: latest
11+
12+
python:
13+
version: "3.8"
14+
install:
15+
- method: pip
16+
path: .
17+
18+
# inspired by: https://github.com/pyg-team/pytorch_geometric/blob/master/docs/requirements.txt
19+
- requirements: docs/requirements.txt
20+
system_packages: true

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,48 @@
22
MorphoClass is a toolbox for neuronal morphologies processing and
33
classification using machine learning.
44

5+
<table>
6+
<tr>
7+
<td>Documentation</td>
8+
<td>
9+
<a href="https://morphoclass.readthedocs.io/en/latest/">
10+
<img src="https://readthedocs.org/projects/morphoclass/badge/?version=latest" alt="Docs">
11+
</a>
12+
</td>
13+
</tr>
14+
<tr>
15+
<td>License</td>
16+
<td>
17+
<a href="https://github.com/BlueBrain/morphoclass/blob/master/LICENSE.txt">
18+
<img src="https://img.shields.io/github/license/BlueBrain/morphoclass" alt="License" />
19+
</a>
20+
</td>
21+
</tr>
22+
<tr>
23+
<td>Static Typing</td>
24+
<td>
25+
<a href="http://mypy-lang.org/">
26+
<img src="http://www.mypy-lang.org/static/mypy_badge.svg" alt="Mypy">
27+
</a>
28+
</td>
29+
</tr>
30+
<tr>
31+
<td>Code Style</td>
32+
<td>
33+
<a href="https://github.com/psf/black">
34+
<img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="Black">
35+
</a>
36+
<a href="https://pycqa.github.io/isort/">
37+
<img src="https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336" alt="Isort">
38+
</a>
39+
<a href="https://flake8.pycqa.org/">
40+
<img src="https://img.shields.io/badge/PEP8-flake8-informational" alt="Pydocstyle">
41+
</a>
42+
</td>
43+
</tr>
44+
</table>
45+
46+
547
# Installation
648
Clone the repository and set up the virtual environment
749
```sh

docs/requirements.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
https://download.pytorch.org/whl/cpu/torch-1.11.0%2Bcpu-cp38-cp38-linux_x86_64.whl
2+
https://data.pyg.org/whl/torch-1.11.0%2Bcpu/torch_scatter-2.0.9-cp38-cp38-linux_x86_64.whl
3+
https://data.pyg.org/whl/torch-1.11.0%2Bcpu/torch_sparse-0.6.13-cp38-cp38-linux_x86_64.whl
4+
https://data.pyg.org/whl/torch-1.11.0%2Bcpu/torch_cluster-1.6.0-cp38-cp38-linux_x86_64.whl
5+
https://data.pyg.org/whl/torch-1.11.0%2Bcpu/torch_spline_conv-1.2.1-cp38-cp38-linux_x86_64.whl
6+
torch-geometric==1.7.2
7+
Sphinx==3.5.4
8+
sphinx-rtd-theme==1.0.0
9+
sphinx-bluebrain-theme==0.2.9

docs/source/sections/using_gnn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ is ``mc.models.ManNet``. It can be trained on the data loaded above in a few lin
7474
import torch.optim
7575
from tqdm import tqdm
7676

77-
import morphoclass as dm
77+
import morphoclass as mc
7878
import morphoclass.models
7979
import morphoclass.training
8080
import morphoclass.utils

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ morphio==3.3.3
1414
morphology-workflows==0.2.0
1515
networkx==2.5
1616
neurom==3.1.0
17+
neurots==3.1.1
1718
numpy==1.20.3
1819
pandas==1.3.4
1920
plotly==5.4.0

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ install_requires =
3838
morphology-workflows>=0.2.0
3939
networkx
4040
neurom>=3
41+
neurots
4142
numpy
4243
pandas
4344
plotly

0 commit comments

Comments
 (0)