Skip to content

Commit

Permalink
Merge pull request #79 from hammerlab/dev
Browse files Browse the repository at this point in the history
v0.1.2.6
  • Loading branch information
jburos authored Jan 10, 2019
2 parents 5c68ce4 + 41f6502 commit 1227ca9
Show file tree
Hide file tree
Showing 33 changed files with 3,177 additions and 3,652 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

*.sublime-*

# swp files
*.swp

# C extensions
*.so

Expand Down
17 changes: 12 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
sudo: false # Use container-based infrastructure
language: python
cache:
cache:
pip: true
directories:
directories:
- $HOME/.cached_models
python:
- "2.7"
- "3.4"
- "3.6"
env:
- TEST=lint
- TEST=test/test_exp_survival_model.py
- TEST=test/test_exp_survival_model_sim.py
- TEST=test/test_pem_survival_model.py
Expand All @@ -21,6 +23,8 @@ env:
- TEST=test/test_byo-gamma_survival_model.py
- TEST=test/test_byo-gamma_survival_model_sim.py
- TEST=test/test_jointmodel_datasets.py
- TEST=test/test_formulas.py
- TEST=test/test_SurvivalStanData.py
before_install:
# Commands below copied from: http://conda.pydata.org/docs/travis.html
# We do this conditionally because it saves us some downloading if the
Expand All @@ -38,7 +42,7 @@ before_install:
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# borrow following from http://github.com/stan-dev/rstan
# borrow following from http://github.com/stan-dev/rstan
- echo -e "#\x21/bin/bash\n\$@ > wait4.out 2>&1 3>&1 &\nPROCESS=\"\$!\"\nfunction finish {\ncat wait4.out\n}\ntrap finish EXIT\nwhile :\ndo\n RESULT=\`ps -p \${PROCESS} -o comm=\`" > wait4.sh
- echo -e " if [ -z \"\${RESULT}\" ]; then\n wait \${PROCESS}; exit \$?\n else\n echo \"-\"; sleep 10\n fi\ndone\nexit \$?" >> wait4.sh
- more wait4.sh
Expand All @@ -57,8 +61,11 @@ install:
- pip install .
- pip install coveralls
script:
- ./lint.sh
- ./wait4.sh nosetests $TEST --with-coverage --cover-package=survivalstan
- if [[ "$TEST" == "lint" ]]; then
./lint.sh;
else
./wait4.sh nosetests $TEST --with-coverage --cover-package=survivalstan;
fi
after_success:
coveralls
deploy:
Expand Down
481 changes: 288 additions & 193 deletions example-notebooks/Test new_gamma_survival_model with simulated data.ipynb

Large diffs are not rendered by default.

1,633 changes: 461 additions & 1,172 deletions example-notebooks/Test pem_survival_model with simulated data.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 1227ca9

Please sign in to comment.