Skip to content

Commit 9864376

Browse files
authored
Merge pull request #5 from MilagrosMarin/dev_docs
Fix `mkdocs` build issues, Refactor `reader` module and `setup`, Update docs and Dockerfile
2 parents 62de906 + 5a58710 commit 9864376

File tree

10 files changed

+25
-18
lines changed

10 files changed

+25
-18
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ RUN \
3434
apt-get update && \
3535
apt-get install -y gcc ffmpeg graphviz && \
3636
pip install ipywidgets && \
37-
pip install --no-cache-dir -e /tmp/element-moseq[elements,tests] && \
37+
pip install --no-cache-dir -e /tmp/element-moseq[kpms,elements,tests] && \
3838
# clean up
3939
rm -rf /tmp/element-moseq/ && \
4040
apt-get clean
4141

42-
# Install Keypoint-MoSeq (CPU version)
42+
# Install CPU version for KPMS
4343
RUN pip install "jax[cpu]==0.3.22" -f https://storage.googleapis.com/jax-releases/jax_releases.html
4444

4545
ENV DJ_HOST fakeservices.datajoint.io

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
44
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.
55

6+
## [0.2.1] - 2024-08-30
7+
+ Fix - `mkdocs` build issues
8+
+ Fix - `reader` module imports by adding `__init__.py`
9+
+ Fix - Move KPMS installation to `extras_require` in `setup` for consistency with other Elements
10+
+ Update - markdown files in `mkdocs`
11+
+ Update- Dockerfile
12+
613
## [0.2.0] - 2024-08-16
714
+ Add - `load` functions and new secondary attributes for tutorial purposes
815
+ Add - `outbox` results in the public s3 bucket to be mounted in Codespaces

docs/mkdocs.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ nav:
2828
# 02. Instead of designating codeblocks with bash, use console. For example..
2929
# ```console
3030
# cd ../my_dir
31-
# ```
31+
# ```
3232
# 03. Links across docs should ...
3333
# A. Not involve line breaks.
3434
# B. Use relative paths to docs in the same repo
@@ -48,15 +48,15 @@ nav:
4848
# HOST_UID=$(id -u) docker compose -f docs/docker-compose.yaml up --build
4949
# ```
5050
# 02. The API section will pull docstrings.
51-
# A. Follow google styleguide e.g.,
51+
# A. Follow google styleguide e.g.,
5252
# https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html
5353
# With typing suggestions: https://docs.python.org/3/library/typing.html
5454
# B. To pull a specific workflow fork, change ./docs/src/api/make_pages.py#L19
5555
# 03. To see your fork of the workflow-{element} in this render, change the
5656
# URL in ./docs/src/api/make_pages.py#L19 to your fork.
57-
# 04. To deploy this site on your fork,
57+
# 04. To deploy this site on your fork,
5858
# A. declare a branch called gh-pages
59-
# B. go to the your fork > settings > pages
59+
# B. go to the your fork > settings > pages
6060
# C. direct pages to render from the gh-pages branch at root
6161
# D. push a tag to your fork with the format test*.*.*
6262
#
@@ -93,13 +93,14 @@ plugins:
9393
default_handler: python
9494
handlers:
9595
python:
96+
paths: [../]
9697
options:
9798
members_order: source
9899
group_by_category: false
99100
line_length: 88
100101
- gen-files:
101102
scripts:
102-
- ./src/api/make_pages.py
103+
- ./src/api/make_pages.py
103104
- literate-nav:
104105
nav_file: navigation.md
105106
- exclude-search:
@@ -172,7 +173,7 @@ extra_css:
172173
- assets/stylesheets/extra.css
173174

174175
extra_javascript:
175-
- https://js-na1.hs-scripts.com/23133402.js # HubSpot chatbot
176+
- https://js-na1.hs-scripts.com/23133402.js # HubSpot chatbot
176177
- javascripts/mathjax.js
177178
- https://polyfill.io/v3/polyfill.min.js?features=es6
178179
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js

docs/src/citation.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@ If your work uses the following resources, please cite the respective manuscript
1313
+ Weinreb C, Pearl J, Lin S, Osman MAM, Zhang L, Annapragada S, Conlin E, Hoffman R,
1414
Makowska S, Gillis WF and Jay M. Keypoint-MoSeq: parsing behavior by linking point
1515
tracking to pose dynamics. BioRxiv. 2023 Dec 23. doi: https://doi.org/10.1101/2023.03.16.532307
16-
+ Wiltschko AB, Johnson MJ, Iurilli G, Peterson RE, Katon JM, Pashkovski SL, Abraira VE,
17-
Adams RP, Datta SR. Mapping sub-second structure in mouse behavior. Neuron. 2015 Dec 16;
18-
88(6):1121-35.
16+
+ Wiltschko AB, Johnson MJ, Iurilli G, Peterson RE, Katon JM, Pashkovski SL, Abraira VE, Adams RP, Datta SR. Mapping sub-second structure in mouse behavior. Neuron. 2015 Dec 16;88(6):1121-35.

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ combined with other Elements to assemble a fully functional pipeline.
2929
+ Install with `pip`
3030

3131
```bash
32-
pip install -e .
32+
pip install .
3333
```
3434

3535
+ [Data Pipeline](./pipeline.md) - Pipeline and table descriptions

docs/src/partnerships.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Key partnerships
22

3-
Element MoSeq was developed in collaboration with the [Keypoint-MoSeq developers](https://github.com/dattalab/keypoint-moseq), particularly with Kai Fox from Datta's Lab at Harvard Medical School, to foster integration and interoperability between Keypoint-MoSeq and the DataJoint Element MoSeq.
3+
Element MoSeq was developed in collaboration with the [Keypoint-MoSeq developers](https://github.com/dattalab/keypoint-moseq), particularly with Kai Fox from Datta's Lab at Harvard Medical School, to foster integration and interoperability between Keypoint-MoSeq and the DataJoint Element-MoSeq.

docs/src/pipeline.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ The Element is composed of two main schemas, `moseq_train` and `moseq_infer`. Th
4949
| --- | --- |
5050
| Session | Unique experimental session identifier |
5151

52-
### `model_train` schema
52+
### `moseq_train` schema
5353

54-
- For further details see the [`model_train` schema API docs](https://datajoint.com/docs/elements/element-moseq/latest/api/element_moseq/model_train/)
54+
- For further details see the [`moseq_train` schema API docs](https://datajoint.com/docs/elements/element-moseq/latest/api/element_moseq/moseq_train/)
5555

5656
| Table | Description |
5757
| --- | --- |

element_moseq/readers/__init__.py

Whitespace-only changes.

element_moseq/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Package metadata
33
"""
44

5-
__version__ = "0.2.0"
5+
__version__ = "0.2.1"

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@
2929
"ipykernel>=6.0.1",
3030
"opencv-python",
3131
"scipy<1.12.0",
32-
"pydot==2.0",
3332
"element-interface @ git+https://github.com/datajoint/element-interface.git",
34-
"keypoint-moseq @ git+https://github.com/dattalab/keypoint-moseq.git",
3533
],
3634
extras_require={
35+
"kpms": [
36+
"keypoint-moseq @ git+https://github.com/dattalab/keypoint-moseq.git",
37+
],
3738
"elements": [
3839
"element-animal @ git+https://github.com/datajoint/element-animal.git",
3940
"element-event @ git+https://github.com/datajoint/element-event.git",

0 commit comments

Comments
 (0)