Skip to content

Commit

Permalink
pep8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarbary committed Feb 13, 2015
1 parent 00f90b0 commit 7c028cd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sncosmo/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ def test_format_value():


def test_ppf():
# test a flat prior between 0 and 10
prior = lambda x: 1.
"""Test the ppf function."""

# Flat prior between 0 and 10
def prior(x):
return 1.

x = np.array([0.1, 0.2, 0.9, 0.9999])
y = utils.ppf(prior, x, 0., 10.)
assert_allclose(y, [1., 2., 9., 9.999])
Expand Down

0 comments on commit 7c028cd

Please sign in to comment.