Skip to content

Commit

Permalink
Merge pull request #338 from murthylab/develop
Browse files Browse the repository at this point in the history
First v0.2.x (0.2.1) on master
  • Loading branch information
ntabris committed Apr 13, 2020
2 parents f7da384 + ea6e541 commit 2fcd195
Show file tree
Hide file tree
Showing 222 changed files with 20,897 additions and 11,797 deletions.
3 changes: 2 additions & 1 deletion .conda/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ rem # this out myself, ughhh.
set PIP_NO_INDEX=False
set PIP_NO_DEPENDENCIES=False
set PIP_IGNORE_INSTALLED=False
pip install cattrs==1.0.0rc opencv-python-headless==3.4.1.15 PySide2>=5.12 imgaug==0.3.0 qimage2ndarray==1.8 imgstore jsmin
pip install cattrs==1.0.0rc0 opencv-python-headless==3.4.1.15 "PySide2>=5.12.0,<=5.14.1" imgaug==0.3.0 qimage2ndarray==1.8 imgstore jsmin seaborn
pip install

rem # Use and update environment.yml call to install pip dependencies. This is slick.
rem # While environment.yml contains the non pip dependencies, the only thing left
Expand Down
3 changes: 2 additions & 1 deletion .conda/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export PIP_NO_INDEX=False
export PIP_NO_DEPENDENCIES=False
export PIP_IGNORE_INSTALLED=False

pip install cattrs==1.0.0rc opencv-python-headless==3.4.1.15 PySide2>=5.12 imgaug==0.3.0 qimage2ndarray==1.8 imgstore jsmin
pip install cattrs==1.0.0rc0 opencv-python-headless==3.4.1.15 "PySide2>=5.12.0,<=5.14.1" imgaug==0.3.0 qimage2ndarray==1.8 imgstore jsmin seaborn
#pip install tensorflow==2.1

pip install setuptools-scm

Expand Down
19 changes: 3 additions & 16 deletions .conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package:
# Repeating name because of the following issue:
# https://github.com/conda/conda-build/issues/2475
name: sleap
version: {{ data.get('version') }}
version: {{ GIT_DESCRIBE_TAG[1:] }}

about:
home: {{ data.get('url') }}
Expand All @@ -20,28 +20,15 @@ source:
requirements:
host:
- python=3.6
- attrs
- jsonpickle=1.2
- networkx
- tensorflow-gpu=2.0
- scikit-learn
- h5py
- pandas
- Pillow
- Shapely
- psutil
- pyzmq
- pyyaml
- python-rapidjson
- pip


run:
- python=3.6
- attrs
- jsonpickle=1.2
- networkx
- tensorflow-gpu=2.0
- tensorflow-gpu=2.1
- tensorboard=2.1
- scikit-learn
- h5py
- pandas
Expand Down
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ instance/

# Sphinx documentation
docs/_build/
docs/_autosummary/
docs/api.rst # this is created when making docs

# PyBuilder
target/
Expand Down Expand Up @@ -104,4 +106,10 @@ venv.bak/
.mypy_cache/

# Pycharm Files
.idea/
.idea/

# Sublime files
*.sublime-*

# VSCode files
.vscode/
4 changes: 1 addition & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
Social LEAP Estimates Animal Pose (SLEAP)
=========================================

.. image:: https://sleap.ai/docs/_static/sleap_movie.gif
:alt: SLEAP demo movie
.. image:: docs/_static/sleap_movie.gif
:width: 600px

|
Expand All @@ -33,4 +32,3 @@ If you use **SLEAP** in your research, cite `Pereira et al. Nature Methods 2019`
.. _Pereira et al. Nature Methods 2019: https://www.nature.com/articles/s41592-018-0234-5
.. _sleap.ai: https://sleap.ai


15 changes: 14 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,17 @@ for:
- cmd: IF "%APPVEYOR_REPO_TAG%" == "true" (anaconda upload --force %BUILD_DIR%\win-64\*.tar.bz2)
- cmd: IF "%APPVEYOR_REPO_TAG%" == "true" (anaconda logout)
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))


# Deploy "dev" builds if develop branch is tagged
-
branches:
only:
- develop
deploy_script:
# Deploy wheel to PyPi
- cmd: IF "%APPVEYOR_REPO_TAG%" == "true" (python setup.py bdist_wheel)
- cmd: IF "%APPVEYOR_REPO_TAG%" == "true" (python -m twine upload dist/* --non-interactive --skip-existing --disable-progress-bar)
# Deploy (Windows) Conda package to anaconda sleap channel
- cmd: IF "%APPVEYOR_REPO_TAG%" == "true" (conda build .conda --output-folder %BUILD_DIR%)
- cmd: IF "%APPVEYOR_REPO_TAG%" == "true" (anaconda upload --force %BUILD_DIR%\win-64\*.tar.bz2 --label dev)
- cmd: IF "%APPVEYOR_REPO_TAG%" == "true" (anaconda logout)
2 changes: 2 additions & 0 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ sphinx_rtd_theme
coveralls
black
pre-commit
jupyterlab
twine
PyGithub
5 changes: 4 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ help:

.PHONY: help Makefile

api.rst:
python make_api_doctree.py

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
%: Makefile api.rst
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Binary file removed docs/_static/inference-dialog.jpg
Binary file not shown.
Binary file added docs/_static/model-selection.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/receptive-field.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/tracker.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_static/training-dialog.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/training-model-dialog.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions docs/_templates/api_head.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _api:

Developer API
=============

.. toctree::
:caption: API

.. autosummary::
:toctree: _autosummary

5 changes: 5 additions & 0 deletions docs/_templates/autosummary/module.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{ fullname }}
{{ underline }}

.. automodule:: {{ fullname }}
:members:
17 changes: 0 additions & 17 deletions docs/api.rst

This file was deleted.

22 changes: 17 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.

import os
import re
import sys

sys.path.insert(0, os.path.abspath(".."))
Expand All @@ -21,15 +22,21 @@
# -- Project information -----------------------------------------------------

project = "SLEAP"
copyright = "2019, Murthy Lab @ Princeton"
copyright = "2019–2020, Murthy Lab @ Princeton"
author = "Talmo D. Pereira, Nat Tabris, David M. Turner"

# The short X.Y version
version = ""
version = "0.2.0"
# The full version, including alpha/beta/rc tags
release = ""


# Get the sleap version
# with open("../sleap/version.py") as f:
# version_file = f.read()
# version = re.search("\d.+(?=['\"])", version_file).group(0)


# -- General configuration ---------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand All @@ -41,11 +48,14 @@
# ones.
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.coverage",
"sphinx.ext.viewcode",
"sphinx.ext.napoleon",
]

autosummary_generate = True

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]

Expand All @@ -68,7 +78,7 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
exclude_patterns = ["_build", "_templates", "Thumbs.db", ".DS_Store"]

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = None
Expand All @@ -79,13 +89,15 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "alabaster"
html_theme = 'alabaster'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}
html_theme_options = {
'font_size': '15px'
}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down
5 changes: 0 additions & 5 deletions docs/dataset.rst

This file was deleted.

50 changes: 0 additions & 50 deletions docs/faq.rst

This file was deleted.

Loading

0 comments on commit 2fcd195

Please sign in to comment.