Skip to content

Commit

Permalink
test for r_v attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarbary committed Dec 13, 2016
1 parent 1f26b33 commit 2665bc9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,15 @@ def test_fitzpatrick99_idl():
assert_allclose(a_lambda, a_lambda_ref, rtol=0.00005)


def test_fitzpatrick99_r_v():
"""Test that we can access the `r_v` attribute."""

f = extinction.Fitzpatrick99()
assert f.r_v == 3.1
f = extinction.Fitzpatrick99(2.1)
assert f.r_v == 2.1


def test_fm07():
wave = np.arange(3000., 9000., 1000)

Expand Down

0 comments on commit 2665bc9

Please sign in to comment.