Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Update pituitary gland ODE with better simulator, ODE class and dataframe #94

Open
wants to merge 987 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
987 commits
Select commit Hold shift + click to select a range
29a4cf1
Move codecov.yml so codecov can see it
WolfByttner Jan 16, 2021
ef22198
Make codecov cover everything
WolfByttner Jan 16, 2021
f034499
Remove dead code
WolfByttner Jan 16, 2021
98c37d6
Remove trainers that are no longer needed
WolfByttner Jan 16, 2021
42135fe
Add convergence criterion to regression test
WolfByttner Jan 16, 2021
211da48
Move trainer validate functionality into separate function
WolfByttner Jan 16, 2021
13ce751
Propagate loss type to criterion
WolfByttner Jan 16, 2021
0cfe728
Test network utility functions
WolfByttner Jan 16, 2021
15b4e65
Remove dead code
WolfByttner Jan 16, 2021
140e682
Reformat code
WolfByttner Jan 16, 2021
34f583b
Add plot_prediction to docs
WolfByttner Jan 16, 2021
d4ad805
Update documentation with parameter searching
WolfByttner Jan 16, 2021
b6fb003
Add loss tests
WolfByttner Jan 16, 2021
8b745f2
Reuse classifier, regressor in both ae and vae
WolfByttner Jan 16, 2021
e3dcf25
Merge pull request #39 from traja-team/datagenerator
JustinShenk Jan 17, 2021
a58b919
Rename 'category' to sequence_id
WolfByttner Jan 17, 2021
c3b0fc9
Update docs with sequence_id
WolfByttner Jan 17, 2021
b8831a8
Update generator
WolfByttner Jan 17, 2021
1f8f72a
Change sequence_id to sequence_ids in dataset
WolfByttner Jan 18, 2021
b6ff1be
Add class to TimeseriesDataset init function
WolfByttner Jan 19, 2021
340d392
Rename TimeseriesDataset variables
WolfByttner Jan 20, 2021
1cf7bc9
Add sample class to dataset output
WolfByttner Jan 21, 2021
c2a6a78
Add classification test
WolfByttner Jan 22, 2021
43ba928
Return losses from validate function
WolfByttner Jan 23, 2021
b1cd9b2
Fix failing ae/vae tests
WolfByttner Jan 24, 2021
36eb7e2
Simplify module test cases
WolfByttner Jan 25, 2021
70ddf19
Rename calculate_flow_angles
JustinShenk Jan 31, 2021
af213ee
Bump version
JustinShenk Jan 31, 2021
1597bee
Rename calculate_flow_angles
JustinShenk Jan 31, 2021
1824554
Adding explicit PyTest version
WolfByttner Jan 26, 2021
e37b5f6
Simplify VAE regression test
WolfByttner Jan 27, 2021
95fe8d6
Fix plotting error with timestamps
JustinShenk Feb 3, 2021
2b281e0
Add calc_laterality
JustinShenk Feb 3, 2021
494b39d
Bump version
JustinShenk Feb 3, 2021
b8c9aa8
Merge pull request #55 from traja-team/fix-time-plotting
JustinShenk Feb 3, 2021
dc7b0a4
Merge pull request #51 from traja-team/classification
JustinShenk Feb 3, 2021
e85aadd
Add VAE regression test
WolfByttner Jan 28, 2021
c862d58
Reformat code
WolfByttner Jan 29, 2021
e871d2e
Reformat tests
WolfByttner Jan 30, 2021
48b4966
Add loss test
WolfByttner Feb 2, 2021
b13a57c
Remove dead code
WolfByttner Feb 3, 2021
b7c9ef6
Clean up test docstrings
WolfByttner Feb 4, 2021
a25d1d6
Clean up test docstrings
WolfByttner Feb 5, 2021
e3cf6d0
Fix color_dark plotting
JustinShenk Feb 7, 2021
ef653ff
Merge
JustinShenk Feb 7, 2021
e53517a
Merge branch 'master' into merge-master
JustinShenk Feb 7, 2021
cb776e0
Merge pull request #61 from traja-team/merge-master
JustinShenk Feb 7, 2021
f408853
Remove to_utm and fix geolife import
JustinShenk Feb 7, 2021
83f894f
Merge branch 'fix-geolife-remove-to-utm'
JustinShenk Feb 7, 2021
90680b3
Add pedestrian datasets
JustinShenk Feb 7, 2021
7ff2b54
Fix broken path
JustinShenk Feb 7, 2021
eaf915b
Remove unused import
JustinShenk Feb 7, 2021
40cf5d6
Fix pedestrian imports
JustinShenk Feb 7, 2021
60b0472
Fix mpl 3d import, travis test
JustinShenk Feb 7, 2021
cc17e9f
add sklearn to docs env
JustinShenk Feb 7, 2021
7ae7ce2
update doc env
JustinShenk Feb 7, 2021
0c91d10
DOCS: update doc env
JustinShenk Feb 7, 2021
052f580
DOCS: update doc env
JustinShenk Feb 7, 2021
159f92b
DOCS: update doc env
JustinShenk Feb 7, 2021
f1c4e10
DOCS: update doc env
JustinShenk Feb 7, 2021
f328d2e
Add geolife module
JustinShenk Feb 7, 2021
195be71
Merge pull request #54 from traja-team/feature-add-calc-lat
JustinShenk Feb 7, 2021
4690adb
DOCS: update doc env
JustinShenk Feb 7, 2021
3717164
Merge branch 'master' into docs
JustinShenk Feb 7, 2021
1a69fba
fixing accuracy > 1 error
MaddyThakker Feb 8, 2021
bedc678
Change pypi readme foramtting to rst
JustinShenk Feb 8, 2021
fbb04a8
resolving GPU errors for classification
MaddyThakker Feb 8, 2021
fd842f4
linting and docstr update for visualizer
Saran-nns Feb 9, 2021
37d4a82
Format with black
JustinShenk Feb 9, 2021
b145684
Add flake8 precommit
JustinShenk Feb 9, 2021
a9c58d7
removed unused module manifold and irl
Saran-nns Feb 9, 2021
d39cba9
resolve linter merge conflict
Saran-nns Feb 9, 2021
d6a8f8c
Update visualizer.py
Saran-nns Feb 9, 2021
52fdad2
Update __init__.py
Saran-nns Feb 10, 2021
b5743bc
Update inference.py
Saran-nns Feb 10, 2021
cb0ed2b
Merge branch 'master' into classification
WolfByttner Feb 11, 2021
3f1d802
Remove visualizer until someone writes tests for it
WolfByttner Feb 13, 2021
1ee499e
Merge pull request #56 from traja-team/classification
JustinShenk Feb 13, 2021
045a4bd
Merge pull request #71 from traja-team/linter
JustinShenk Feb 13, 2021
51f7c0e
Merge branch 'master' into fortasyn
JustinShenk Feb 13, 2021
629b7e5
Add initial contributing guide
WolfByttner Feb 13, 2021
f87978d
Merge pull request #66 from traja-team/fortasyn
MaddyThakker Feb 13, 2021
20e7dfa
added params for validation and testing during training
MaddyThakker Feb 14, 2021
1cca373
resolving merge conflicts
Feb 14, 2021
58176c7
cleaning up files
Feb 14, 2021
f35f922
cleaning train.py files
Feb 14, 2021
dd91516
Requested changes done
Feb 15, 2021
438c265
Add pituitary gland ODE
WolfByttner Feb 9, 2021
f023d0c
Add numba to requirements
WolfByttner Feb 10, 2021
3732e38
Add docstring to pituitary gland function
WolfByttner Feb 14, 2021
9e3aa2f
Add pituitary gland distribution function
WolfByttner Feb 16, 2021
cc14fbc
Merge branch 'master' into pituitary_gland
WolfByttner Feb 17, 2021
6a0ccb8
Update contributing.rst
JustinShenk Feb 17, 2021
394371a
Add brownian motion generator
WolfByttner Feb 18, 2021
1e2f8ca
Add dt to Brownian
WolfByttner Feb 18, 2021
84cd135
Add dt documentation to Brownian
WolfByttner Feb 18, 2021
98acec4
Add latin hypercube pituitary gland sampler
WolfByttner Feb 18, 2021
74461f7
Discard pituitary gland activation noise
WolfByttner Feb 19, 2021
7fa1959
Remove deal parentheses
WolfByttner Feb 20, 2021
298fbdb
Speed up brownian motion tests
WolfByttner Feb 20, 2021
ea72fdf
Let the user choose how much to trim from the pituitary gland
WolfByttner Feb 20, 2021
82e4b44
Add commentary on the rhs equation pituitary_ode
WolfByttner Feb 20, 2021
6f40773
Reduce sensitivity of brownian tests
WolfByttner Feb 20, 2021
fcf6b2b
Add non-JIT version of pituitary gland for test coverage
WolfByttner Feb 20, 2021
d4e71b3
Ignore numba-compiled line in pytest
WolfByttner Feb 20, 2021
0041908
Speed up JIT (dispatching through function is slow)
WolfByttner Feb 20, 2021
6746c90
added tests
Feb 20, 2021
6459b74
Add comment explaining why coverage is suppressed on JIT code
WolfByttner Feb 20, 2021
82bccb5
Merge branch 'master' into contributing
WolfByttner Feb 20, 2021
cba433d
added not validated and not tested tests
Feb 23, 2021
78b3bea
Merge pull request #75 from traja-team/pituitary_gland
WolfByttner Feb 23, 2021
9a541a5
Merge pull request #72 from traja-team/fortasyn
MaddyThakker Feb 25, 2021
31a187f
Add test and code quality section to contributors guide
WolfByttner Feb 21, 2021
0c22e7f
Add intro to contributor's guide
WolfByttner Feb 22, 2021
97e83a9
Improve contributing intro section
WolfByttner Feb 25, 2021
81c8d31
Update paper
JustinShenk Mar 7, 2021
da2cc24
Update paper - add refs
JustinShenk Mar 7, 2021
bce81ed
Update paper - add refs
JustinShenk Mar 7, 2021
66b97eb
Update paper - add refs
JustinShenk Mar 7, 2021
83314f6
Update paper, fix formatting
JustinShenk Mar 10, 2021
6e67bfe
Update paper, fix formatting
JustinShenk Mar 10, 2021
388a114
Update paper, fix formatting
JustinShenk Mar 10, 2021
df62011
Update author name
JustinShenk Mar 10, 2021
b60b521
Paper: Update refs
JustinShenk Mar 16, 2021
a6c4816
Paper: Add refs
JustinShenk Mar 16, 2021
c7dee96
Fix author name
JustinShenk Mar 18, 2021
cd6bffc
Continuous pdf creation
JustinShenk Mar 27, 2021
fea9927
Update refs
JustinShenk Mar 27, 2021
d99d24b
Add hyperlinks to notebooks (that exist)
WolfByttner Mar 27, 2021
376fb31
[Paper] Remove API doc from paper
JustinShenk Mar 27, 2021
c0035a9
[Paper] Trim paper
JustinShenk Mar 27, 2021
eb60d5e
[Paper] Trim paper further, fix links
JustinShenk Mar 27, 2021
4202e67
[Paper] Fix image width, remove documentation
JustinShenk Mar 27, 2021
daf14e2
[Paper] fix refs
JustinShenk Mar 29, 2021
c67d83a
[Paper] Add doi
JustinShenk Mar 29, 2021
5b8c1b1
Added convex_hull property to traja dataframe, currently set to popul…
aleczoeller Mar 30, 2021
4b45650
Rebase error removal
aleczoeller Mar 31, 2021
d79b099
Continued rebase error correction
aleczoeller Mar 31, 2021
717680e
Corrected error/ommission from test_trajectory.py
aleczoeller Apr 2, 2021
3e936ff
Merge pull request #78 from aleczoeller/convex_hull_v1
JustinShenk Apr 3, 2021
58ecb51
[Docs] Update documentation
JustinShenk Apr 5, 2021
659c8e0
Merge pull request #73 from traja-team/contributing
WolfByttner Apr 7, 2021
fdb5511
Update copyright
JustinShenk Apr 3, 2021
c1b074d
Reduce test duration
JustinShenk Apr 3, 2021
def493d
Fix model presets, formatting
JustinShenk May 17, 2021
4fa06f0
Fix model presets, formatting
JustinShenk May 17, 2021
888244e
Fix docs
JustinShenk May 17, 2021
7d106ba
Fix tests
JustinShenk May 17, 2021
bfdc127
Initialize with sane defaults
JustinShenk May 17, 2021
5525773
simplify assertions
JustinShenk May 17, 2021
68a72c3
add pytorch ref
JustinShenk May 17, 2021
8de4839
add temp citation
JustinShenk May 17, 2021
087369d
Update docs, update dev requirements
JustinShenk May 17, 2021
3130e20
Update docs, update dev requirements
JustinShenk May 17, 2021
d47c2f4
Remove unused requirements file
JustinShenk May 17, 2021
25be192
Add plot methods
JustinShenk May 18, 2021
7e8590c
Update docs, paper, plotting
JustinShenk May 19, 2021
f3e122c
Update docs, paper, plotting
JustinShenk May 19, 2021
8bde6ad
Update docs, fix warning
JustinShenk May 19, 2021
f23a1b5
Update docs, fix warning
JustinShenk May 19, 2021
469989e
Update paper
JustinShenk May 19, 2021
20999d8
Update paper
JustinShenk May 19, 2021
ff264ec
Update docs
JustinShenk May 19, 2021
2f405af
Update paper
JustinShenk May 19, 2021
3d9a820
Bump version
JustinShenk May 19, 2021
9ac7804
Update paper
JustinShenk May 20, 2021
3cb8fce
Merge pull request #86 from traja-team/add-methods
JustinShenk May 21, 2021
1e48553
Bump version
JustinShenk May 21, 2021
5fa4df7
Move file
JustinShenk May 21, 2021
be1e838
Update citation
JustinShenk May 21, 2021
c2de26b
Update docs
JustinShenk May 21, 2021
50dbf38
Merge branch 'add-methods'
JustinShenk May 21, 2021
8bf9cde
Bump version
JustinShenk May 21, 2021
029670b
Update docs
JustinShenk May 21, 2021
1eaf5fb
Update paper
JustinShenk May 27, 2021
9945aa5
Update paper
JustinShenk May 27, 2021
30ad061
Exclude tests
JustinShenk Jun 2, 2021
6ed2bde
Add init for subpackage
JustinShenk Jun 2, 2021
2e2f434
Merge pull request #90 from traja-team/fix-subpackages
JustinShenk Jun 2, 2021
87280b3
Fix wording
JustinShenk Jun 2, 2021
9a46232
Move colormap to viridis
JustinShenk Jun 2, 2021
55aa7ba
Add animation example
JustinShenk Jun 2, 2021
4b8465f
Add seed to generate, update animate
JustinShenk Jun 2, 2021
2a6e4ab
Fix formatting and typography
JustinShenk Jun 4, 2021
8198e83
[Docs] Update plotting and index
JustinShenk Jun 4, 2021
4b74159
[Docs] Add support page
JustinShenk Jun 4, 2021
7890db5
[Paper] Update paper
JustinShenk Jun 4, 2021
9793179
Fix expected output for test
JustinShenk Jun 4, 2021
c46d803
[Paper] Add jaguar ref
JustinShenk Jun 4, 2021
5a51f9b
[Docs] Fix animation
JustinShenk Jun 4, 2021
4879846
Merge pull request #91 from traja-team/review-update
JustinShenk Jun 4, 2021
0b8d920
Update README.rst
JustinShenk Jun 4, 2021
1349e7c
Update README.rst
JustinShenk Jun 4, 2021
e27dc19
[Docs] Update link
JustinShenk Jun 4, 2021
4ffd945
[Docs] Update link
JustinShenk Jun 4, 2021
7bb9b52
[Paper] Fix minor typo, update date
JustinShenk Jun 4, 2021
1dbfa1e
Update README.rst
JustinShenk Jun 4, 2021
9f628a8
Update README.rst
JustinShenk Jun 4, 2021
b70e6ea
Update README.rst
JustinShenk Jun 4, 2021
41d82de
Update README.rst
JustinShenk Jun 4, 2021
c4ad727
Add JOSS badge
JustinShenk Jun 4, 2021
4612db1
Update README.rst
JustinShenk Jun 4, 2021
81600aa
Started re-drafting pituitary gland with classes
WolfByttner Jun 13, 2021
321003f
[Paper] Add author
JustinShenk Jun 24, 2021
931c469
[Paper] Fix minor typos and formatting
JustinShenk Jun 24, 2021
5520db6
[Paper] Fix figure numbers and clarify text
JustinShenk Jun 24, 2021
f6893c7
[Paper] Fix footnote numbering
JustinShenk Jun 24, 2021
c928a2d
[Paper] Fix minor typos
JustinShenk Jun 28, 2021
ada7187
Bump version
JustinShenk Jul 1, 2021
69a62da
Update README.rst
JustinShenk Jul 1, 2021
de6c57f
Fix link
JustinShenk Jul 1, 2021
2793aa1
[Paper] Fix doi
JustinShenk Jul 2, 2021
15b7aeb
Bump version
JustinShenk Jul 2, 2021
f58690a
[Paper] Fix doi
JustinShenk Jul 2, 2021
823b1d8
Bump version
JustinShenk Jul 2, 2021
5601d80
Bump version
JustinShenk Jul 3, 2021
15c3dd8
Bump version, fix citation
JustinShenk Jul 3, 2021
b55b44d
[Paper] Update ref
JustinShenk Jul 5, 2021
5a33f0c
Minor additions
Jul 9, 2021
33659d4
Merge pull request #92 from jootten/minor_changes
JustinShenk Jul 9, 2021
f560756
[Tests] Add github action
JustinShenk Jul 9, 2021
1d1aff9
[Tests] Add github action
JustinShenk Jul 9, 2021
2e4006e
[Tests] Fix github action
JustinShenk Jul 9, 2021
8639e2d
Fix variable reference, comparisons
JustinShenk Jul 9, 2021
f8f574f
Fix import
JustinShenk Jul 9, 2021
4008d53
Remove unused requirements
JustinShenk Jul 9, 2021
0c02288
Fix convex_hull getter
JustinShenk Jul 9, 2021
4e269ca
[Paper] Fix image size
JustinShenk Jul 12, 2021
e0ae5f6
Remove unused requirements
JustinShenk Jul 12, 2021
567df93
Remove unused requirements
JustinShenk Jul 12, 2021
a2decf4
[Tests] Fix lib install
JustinShenk Jul 12, 2021
a37430b
[Paper] Improve images
JustinShenk Jul 17, 2021
6ef9628
[Paper] Increase image width
JustinShenk Jul 17, 2021
ae4d154
Update README.rst
JustinShenk Jul 17, 2021
de9817b
Add expanded Pituitary ODE
WolfByttner Jul 24, 2021
9e3daa9
Merge branch 'master' into example_ode
WolfByttner Jul 24, 2021
aa84b06
Update issue templates
JustinShenk Jul 25, 2021
a0e3e84
[Tests] increase verbosity
JustinShenk Jul 26, 2021
4f5a8fe
[Tests] Skip test
JustinShenk Jul 27, 2021
ec9c5ac
Add Pituitary ODE simulator that uses pandas dataframes
WolfByttner Aug 8, 2021
50690eb
Remove unused code, update docs
JustinShenk Aug 22, 2021
89e71b1
Add trajectory-less data generation
WolfByttner Aug 23, 2021
1e8abbe
[Docs] Add link to paper
JustinShenk Sep 15, 2021
dae2e31
Remove redundant reference
JustinShenk Nov 21, 2021
f347c8c
[Paper] Remove redundant refs
JustinShenk Nov 21, 2021
ee8d6ce
Add timesteps option to pituitary gland
WolfByttner Nov 21, 2021
8a3725b
Merge branch 'master' into example_ode
WolfByttner Nov 21, 2021
24855cf
Suppress an insignificant ValueError
WolfByttner Nov 22, 2021
d8d4ce4
Suppress an insignificant ValueError
WolfByttner Nov 22, 2021
42b948a
Deal with too-short sequences
WolfByttner Nov 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[bumpversion]
current_version = 0.2.0.dev0
commit = True
tag = False
files = traja/__init__.py
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<n>\d+))?
serialize =
{major}.{minor}.{patch}.{release}{n}
{major}.{minor}.{patch}

[bumpversion:part:release]
optional_value = post
first_value = dev
values =
dev
post

[bumpversion:part:n]

10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
omit =
traja/tests/*
traja/contrib/*
5 changes: 5 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[flake8]
ignore = E203, E266, E501, W503, F403, F401
max-line-length = 120
max-complexity = 18
select = B,C,E,F,W,T4,B9
23 changes: 23 additions & 0 deletions .github/workflows/draft-pdf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on: [push]

jobs:
paper:
runs-on: ubuntu-latest
name: Paper Draft
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build draft PDF
uses: openjournals/openjournals-draft-action@master
with:
journal: joss
# This should be the path to the paper within your repo.
paper-path: paper/paper.md
- name: Upload
uses: actions/upload-artifact@v1
with:
name: paper
# This is the output path where Pandoc will write the compiled
# PDF. Note, this should be the same directory as the input
# paper.md
path: paper/paper.pdf
54 changes: 54 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Tests

on:
push:
branches: [master]
tags: [v*]
pull_request:
branches: [master]

jobs:
miniconda:
name: Miniconda ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
channels: conda-forge,defaults
environment-file: environment.yml
python-version: 3.8
auto-activate-base: false
- shell: bash -l {0}
run: |
conda info
conda list
- name: Lint
shell: bash -l {0}
run: |
conda install flake8
python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run pytest
shell: bash -l {0}
run: |
pip install -r requirements/dev.txt
pip install -r requirements/docs.txt
pip install --upgrade pytest flake8 sphinx
pip install scipy --force-reinstall # for https://github.com/conda/conda/issues/6396
pip install .
conda install pytest
py.test . --cov-report=xml --cov=traja
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
verbose: false
129 changes: 129 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

.DS_Store

# Visualstudio code file
.vscode
# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

.idea

_build/

# BUILD FILES
*.zip
hypers.json
model

docs/source/gallery
docs/source/savefig
docs/source/reference

# Editor files
*.swp
*.swo


# Model parameter files
*.pt
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
repos:
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3.7
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
language: python_venv
13 changes: 13 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
sphinx:
configuration: docs/source/conf.py

formats: all

build:
image: latest

python:
version: 3.7
install:
- requirements: requirements/docs.txt
52 changes: 52 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
sudo: false

dist: xenial

language: python

python:
- '3.7'
- '3.8'

git:
depth: false

env:
- MPLBACKEND=Agg CODECOV_TOKEN="287389e5-8f99-42e1-8844-17acef7c454f"

cache: pip

before_install:
- sudo apt-get update

install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
-O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
- pip install -r requirements/dev.txt
- pip install -r requirements/docs.txt
- pip install --upgrade pytest flake8 sphinx
- pip install .
script:
- cd docs && make doctest && cd ..
- py.test . --cov-report term --cov=traja

after_success:
- codecov

deploy:
provider: pypi
user: jshenk
skip_cleanup: true
skip_existing: true
on:
tags: true
branch: master
password:
secure: o5ON/6Q4aORM4dgTVUQ39w0N+Gc+6Ala+K5J16b5lnNWGgHglqIlJzYXJo8THpeNYTm6ZbEDQEFurCTEKA/MZ2WzreePWQ4Z4E2dIihqhI+71rSbForRPKunV2CEr/QQdUEzXe6npO2UTnO0zDS5XMSrlBncKO4F4zUvrYTuXLj5fES0IFiFHMWxEpNaXMKiypfcRIKJriRbHY22/H8uSgzFluxRG+UqpbJz+R94bqIg30wBJw4nI9JMI00Du67eCO91t+aQ26+5Am+DqA6+jawd89OVPxtlLSdWtgtxPmWAD/IBLP2d7sqfK+QnezmH8NuAMB6DJdTkbscHcvYT8itHg8csBDdvfH8xoA9x8f+Cc60gviKaBoayORFF7FXkjyAYTCSfEi2dfxTTDR0UisbEG99k0+25+DMHxdC8z7/NQz4qal2vKfhPe8kTsOPQLwh0EHmdVU+v9M9LgrLhN55/lI/a6w+zL1/BJ6ZO6arMhHLVmgRtHP+Ckq6OKwQJYNwZxsg8PfwZxl0jFfd3yVX9lS9s95An90z9mEPheC8zQNz2fzAZUZun6GI9u/FCrGpMbrzKzq4R0UtNc8mfipHJ/v027+C2x43wkXA0c6Zvf9b7i6Bgm6EonnTagWrkQ0RdwqiKDd3smfgK2QZzD4G9vuv6z0w5CFhHL9v1Oc0=
11 changes: 11 additions & 0 deletions CITATION
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@software{justin_shenk_2019_3237827,
author = {Justin Shenk and
the Traja development team},
title = {justinshenk/traja},
month = jun,
year = 2019,
publisher = {Zenodo},
version = {latest},
doi = {10.5281/zenodo.3237827},
url = {https://doi.org/10.5281/zenodo.3237827}
}
7 changes: 7 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2019 Justin Shenk

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading