Skip to content

Commit 5d5f8d5

Browse files
committed
improve test coverage
1 parent 4b51e9d commit 5d5f8d5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: Python ${{ matrix.python-version }}
1818
strategy:
1919
matrix:
20-
python-version: [ '3.7', '3.10' ]
20+
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
2121

2222
steps:
2323
- uses: actions/checkout@v2

.github/workflows/ci_stdlib_only.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: Python ${{ matrix.python-version }}
1818
strategy:
1919
matrix:
20-
python-version: [ '3.7', '3.10' ]
20+
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
2121

2222
steps:
2323
- uses: actions/checkout@v2

src/pymap3d/lox.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def loxodrome_direct(
180180
lat1,
181181
lon1,
182182
rng,
183-
a12: float,
183+
a12,
184184
ell: Ellipsoid = None,
185185
deg: bool = True,
186186
) -> tuple:
@@ -220,12 +220,12 @@ def loxodrome_direct(
220220

221221
try:
222222
lat1, rng, a12 = broadcast_arrays(lat1, rng, a12)
223-
if (abs(lat1) > pi / 2).any(): # type: ignore
223+
if (abs(lat1) > pi / 2).any():
224224
raise ValueError("-90 <= latitude <= 90")
225-
if (rng < 0).any(): # type: ignore
225+
if (rng < 0).any():
226226
raise ValueError("ground distance must be >= 0")
227227
except NameError:
228-
if abs(lat1) > pi / 2: # type: ignore
228+
if abs(lat1) > pi / 2:
229229
raise ValueError("-90 <= latitude <= 90")
230230
if rng < 0:
231231
raise ValueError("ground distance must be >= 0")

0 commit comments

Comments
 (0)