Skip to content

Commit

Permalink
Merge pull request #120 from MouseLand/dev
Browse files Browse the repository at this point in the history
Update window size, help windows and readthedocs
  • Loading branch information
Atika-Syeda authored Aug 28, 2023
2 parents 9c4bb42 + 759e2e5 commit 7a06276
Show file tree
Hide file tree
Showing 21 changed files with 341 additions and 242 deletions.
16 changes: 10 additions & 6 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
# Required
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.11"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
Expand All @@ -18,12 +23,11 @@ formats:

# specify dependencies
python:
version: 3.8
install:
- requirements: docs/requirements.txt
#- method: pip
#path: .
#extra_requirements:
# - docs
# - gui
- method: pip
path: .
extra_requirements:
- docs
- gui

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[![Downloads](https://pepy.tech/badge/facemap)](https://pepy.tech/project/facemap)
[![Downloads](https://pepy.tech/badge/facemap/month)](https://pepy.tech/project/facemap)
[![Downloads](https://static.pepy.tech/badge/facemap)](https://pepy.tech/project/facemap)
[![Downloads](https://static.pepy.tech/badge/facemap/month)](https://pepy.tech/project/facemap)
[![GitHub stars](https://badgen.net/github/stars/Mouseland/facemap)](https://github.com/MouseLand/facemap/stargazers)
[![GitHub forks](https://badgen.net/github/forks/Mouseland/facemap)](https://github.com/MouseLand/facemap/network/members)
[![](https://img.shields.io/github/license/MouseLand/facemap)](https://github.com/MouseLand/facemap/blob/main/LICENSE)
[![PyPI version](https://badge.fury.io/py/facemap.svg)](https://badge.fury.io/py/facemap)
[![Documentation Status](https://readthedocs.org/projects/ansicolortags/badge/?version=latest)](https://pypi.org/project/facemap/)
[![GitHub open issues](https://badgen.net/github/open-issues/Mouseland/facemap)](https://github.com/MouseLand/facemap/issues)

# Facemap <img src="https://raw.githubusercontent.com/MouseLand/facemap/main/facemap/mouse.png" width="200" title="facemap" alt="facemap" align="right" vspace = "50">
# Facemap <img src="https://raw.githubusercontent.com/MouseLand/facemap/main/facemap/mouse.png" width="300" title="facemap" alt="facemap" align="right" vspace = "50">

Facemap is a framework for predicting neural activity from mouse orofacial movements. It includes a pose estimation model for tracking distinct keypoints on the mouse face, a neural network model for predicting neural activity using the pose estimates, and also can be used compute the singular value decomposition (SVD) of behavioral videos.

Expand Down
1 change: 0 additions & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Facemap API Guide
===================================


Pose estimation
~~~~~~~~~~~~~~~~
.. autoclass:: facemap.pose.pose.Pose
Expand Down
17 changes: 11 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,22 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import os
import sys
sys.path.insert(0, os.path.abspath('.'))

"""
Use the following command to generate documentation
sphinx-build -b html docs docs/build/html
"""
# -- Project information -----------------------------------------------------

project = "Facemap"
copyright = "2023, Carsen Stringer & Atika Syeda"
author = "Carsen Stringer & Atika Syeda"

# The full version, including alpha/beta/rc tags
release = "1.0.1"
release = "1.0.2"


# -- General configuration ---------------------------------------------------
Expand All @@ -39,7 +43,7 @@
"sphinx.ext.mathjax",
"sphinx.ext.viewcode",
"sphinx.ext.napoleon",
"nbsphinx"
"nbsphinx",
]
# extensions = ['sphinx.ext.autodoc',
# 'sphinx.ext.mathjax',
Expand Down Expand Up @@ -73,9 +77,10 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
"""

html_theme = 'sphinx_rtd_theme'
html_theme_path = ["_themes"]
"""
html_theme_options = {
'canonical_url': '',
'analytics_id': 'UA-XXXXXXX-1', # Provided by Google in your dashboard
Expand Down
9 changes: 0 additions & 9 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,9 @@ For more details, please see our `paper <https://www.biorxiv.org/content/10.1101
gui
inputs
outputs

.. toctree::
:maxdepth: 1
:caption: Tutorials

notebooks/tutorials

.. toctree::
:caption: API Reference:

api

..
Use the following command to generate documentation
sphinx-build -b html docs docs/build/html
7 changes: 3 additions & 4 deletions docs/notebooks/tutorials.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.. toctree::
:maxdepth: 1
Tutorials
===================================

process_keypoints
refine_keypoints_model
See example tutorials for `processing keypoints <https://colab.research.google.com/github/MouseLand/facemap/blob/dev/docs/notebooks/process_keypoints.ipynb>`__ and `refining keypoints model <https://colab.research.google.com/drive/1mrlJVTiqndDQ_kWYXrx7GsPXDiIgpRSm?usp=sharing>`__.
5 changes: 4 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
ipykernel
nbsphinx
nbsphinx
sphinx==5.3.0
sphinx_rtd_theme==1.1.1
readthedocs-sphinx-search==0.1.1
4 changes: 2 additions & 2 deletions facemap/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

import numpy as np

from facemap import process
from facemap import process, version_str
from facemap.gui import gui
from facemap import version_str


def tic():
return time.time()
Expand Down
Loading

0 comments on commit 7a06276

Please sign in to comment.