Skip to content

Commit

Permalink
Merge branch 'next-release' of https://github.com/California-Planet-S…
Browse files Browse the repository at this point in the history
…earch/radvel into next-release
  • Loading branch information
bjfultn committed Jul 28, 2021
2 parents a503dea + 6476ee3 commit aeb7358
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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 aeb7358

Please sign in to comment.