Skip to content

Commit

Permalink
fix pep8 on test_goddard
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Alan Weaver committed Nov 11, 2015
1 parent 3eaa528 commit b088ab1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pydl/goddard/tests/test_goddard.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from ..math import flegendre
from ..misc import cirrange


class TestGoddard(object):
"""Test the goddard package.
"""
Expand Down Expand Up @@ -92,8 +93,9 @@ def test_gcirc(self):
dec2 = np.where((dec1 > 0), dec1 - offset, dec1 + offset)
deldec2 = (dec2-dec1)/2.0
delra2 = (ra2-ra1)/2.0
sindis = np.sqrt(np.sin(deldec2)*np.sin(deldec2) +
np.cos(dec1)*np.cos(dec2)*np.sin(delra2)*np.sin(delra2))
sindis = np.sqrt(np.sin(deldec2) * np.sin(deldec2) +
np.cos(dec1) * np.cos(dec2) *
np.sin(delra2) * np.sin(delra2))
dis = 2.0*np.arcsin(sindis)
#
# units = 0
Expand All @@ -103,8 +105,8 @@ def test_gcirc(self):
#
# units = 2
#
d0 = gcirc(np.rad2deg(ra1)/15.0, np.rad2deg(dec1), np.rad2deg(ra2)/15.0,
np.rad2deg(dec2), units=1)
d0 = gcirc(np.rad2deg(ra1)/15.0, np.rad2deg(dec1),
np.rad2deg(ra2)/15.0, np.rad2deg(dec2), units=1)
assert np.allclose(d0, np.rad2deg(dis)*3600.0)
#
# units = 2
Expand Down

0 comments on commit b088ab1

Please sign in to comment.