Skip to content

Commit c12c6ea

Browse files
committed
pep8
1 parent a08dd0f commit c12c6ea

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/pymap3d/aer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ def aer2geodetic(
165165

166166

167167
def eci2aer(
168-
x: "ndarray", y: "ndarray", z: "ndarray", lat0: "ndarray", lon0: "ndarray", h0: "ndarray", t: datetime) -> typing.Tuple["ndarray", "ndarray", "ndarray"]:
168+
x: "ndarray", y: "ndarray", z: "ndarray", lat0: "ndarray", lon0: "ndarray", h0: "ndarray", t: datetime
169+
) -> typing.Tuple["ndarray", "ndarray", "ndarray"]:
169170
"""
170171
takes Earth Centered Inertial x,y,z ECI coordinates of point and gives az, el, slant range from Observer
171172
@@ -213,7 +214,8 @@ def aer2eci(
213214
h0: "ndarray",
214215
t: datetime,
215216
ell=None,
216-
deg: bool = True) -> typing.Tuple["ndarray", "ndarray", "ndarray"]:
217+
deg: bool = True,
218+
) -> typing.Tuple["ndarray", "ndarray", "ndarray"]:
217219
"""
218220
gives ECI of a point from an observer at az, el, slant range
219221

tests/test_astropy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ def test_anglesep_meeus():
4545

4646

4747
def test_eci_geodetic():
48-
pytest.importorskip("numpy")
48+
pytest.importorskip("astropy")
4949
t = "2013-01-15T12:00:05"
5050
lla = pm.eci2geodetic(*eci0, t)
51-
assert lla == approx(lla0, rel=0.2)
51+
assert lla == approx(lla0, rel=0.001)
5252

5353

5454
def test_eci_aer():
55-
pytest.importorskip("numpy")
55+
pytest.importorskip("astropy")
5656
t = "2013-01-15T12:00:05"
5757

5858
aer1 = pm.eci2aer(*eci0, 42, -100, 0, t)

tests/test_eci.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
def test_eci2ecef():
88

9-
pytest.importorskip('astropy')
9+
pytest.importorskip("astropy")
1010
# this example from Matlab eci2ecef docs
1111
eci = [-2981784, 5207055, 3161595]
1212
utc = datetime(2019, 1, 4, 12)
@@ -16,7 +16,7 @@ def test_eci2ecef():
1616

1717
def test_ecef2eci():
1818

19-
pytest.importorskip('astropy')
19+
pytest.importorskip("astropy")
2020
# this example from Matlab ecef2eci docs
2121
ecef = [-5762640, -1682738, 3156028]
2222
utc = datetime(2019, 1, 4, 12)

0 commit comments

Comments
 (0)