Skip to content

Commit

Permalink
adding test requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
dfm committed Nov 5, 2019
1 parent 8081474 commit 5d3b034
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 22 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ cache:
- "$HOME/.cache/pip"
jobs:
include:
- python: '3.5'
- python: '3.6'
- python: '3.7'
- python: '3.8'

install:
- travis_retry python -m pip install -U pip
- travis_retry python -m pip install -U setuptools
- travis_retry python -m pip install -U numpy pybind11
- travis_retry python -m pip install -U -r requirements-dev.txt
- travis_retry python -m pip install -U -r requirements-test.txt
- travis_retry python setup.py develop

script:
Expand Down
2 changes: 1 addition & 1 deletion docs/user/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Installation
============

.. note:: ``exoplanet`` requires Python 3.6 or later.
.. note:: ``exoplanet`` has been tested on Python 3.5 and later.

*exoplanet* doesn't have a compiled components so it can be easily installed from source or by using pip.

Expand Down
15 changes: 1 addition & 14 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
-r requirements.txt
scipy
nose
parameterized
pytest
pytest-cov>=2.6.1
pytest-env
coveralls
pybind11
celerite>=0.3.1
starry
batman-package
radvel
rebound
-r requirements-test.txt
black
isort
flake8
Expand Down
14 changes: 14 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-r requirements.txt
scipy
nose
parameterized
pytest
pytest-cov>=2.6.1
pytest-env
coveralls
pybind11
celerite>=0.3.1
starry
batman-package
radvel
rebound
4 changes: 2 additions & 2 deletions src/exoplanet/distributions/deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def get_joint_radius_impact(
max_radius=1,
testval_r=None,
testval_b=None,
**kwargs
**kwargs,
):
"""Get the joint distribution over radius and impact parameter
Expand Down Expand Up @@ -174,7 +174,7 @@ def get_joint_radius_impact(
max_radius=max_radius,
shape=(2, N_planets),
testval=rb_test,
**kwargs
**kwargs,
)

# Extract the individual components
Expand Down
8 changes: 4 additions & 4 deletions src/exoplanet/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_step_for_trace(
model=None,
regular_window=0,
regular_variance=1e-3,
**kwargs
**kwargs,
):
"""Get a PyMC3 NUTS step tuned for a given burn-in trace
Expand Down Expand Up @@ -164,7 +164,7 @@ def extend_tune(
step_kwargs=None,
trace=None,
step=None,
**kwargs
**kwargs,
):
"""Extend the tuning phase by a given number of steps
Expand Down Expand Up @@ -213,7 +213,7 @@ def tune(self, tune=1000, start=None, step_kwargs=None, **kwargs):
step_kwargs=step_kwargs,
steps=steps,
trace=trace,
**kwargs
**kwargs,
)
steps *= 2
if self.count + steps + steps * 2 > tune:
Expand All @@ -225,7 +225,7 @@ def tune(self, tune=1000, start=None, step_kwargs=None, **kwargs):
step_kwargs=step_kwargs,
steps=self.finish,
trace=trace,
**kwargs
**kwargs,
)

# Copy across the step size from the parallel runs
Expand Down

0 comments on commit 5d3b034

Please sign in to comment.