Skip to content

Commit

Permalink
Merge pull request #349 from California-Planet-Search/next-release
Browse files Browse the repository at this point in the history
Version 1.4.7
  • Loading branch information
bjfultn authored Jul 28, 2021
2 parents 7bcf973 + aeb7358 commit c68b889
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions radvel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ def _custom_warningfmt(msg, *a, **b):
__all__ = ['model', 'likelihood', 'posterior', 'mcmc', 'prior', 'utils',
'fitting', 'report', 'cli', 'driver', 'gp']

__version__ = '1.4.6'
__spec__ = __name__
__version__ = '1.4.7'
__package__ = __path__[0]

MODULEDIR, filename = os.path.split(__file__)
Expand Down
4 changes: 2 additions & 2 deletions radvel/prior.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ def __init__(self, num_planets, upperlims=0.99):

if type(num_planets) == int:
self.planet_list = range(1, num_planets+1)
npl = len(self.planet_list)
npl = num_planets
else:
self.planet_list = num_planets
npl = num_planets
npl = len(self.planet_list)

if type(upperlims) == float:
self.upperlims = [upperlims] * npl
Expand Down
3 changes: 2 additions & 1 deletion radvel/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def userdef_prior_func(inp_list):

prior_tests = {
radvel.prior.EccentricityPrior(1): 1/.99,
radvel.prior.EccentricityPrior([1]): 1/.99,
radvel.prior.PositiveKPrior(1): 1.0,
radvel.prior.Gaussian('per1', 9.9, 0.1): scipy.stats.norm(9.9,0.1).pdf(10.),
radvel.prior.HardBounds('per1', 1.0, 9.0): 0.,
Expand Down Expand Up @@ -325,4 +326,4 @@ def test_model_comp(setupfn='example_planets/HD164922.py'):
test_basis()
#test_kernels()
#test_kepler()
#test_priors()
#test_priors()

0 comments on commit c68b889

Please sign in to comment.