Skip to content

Commit

Permalink
BUG: test for float
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed Jul 23, 2020
1 parent 4bbb9c4 commit fae4012
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pysatMadrigal/tests/test_utils_coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ def test_geodetic_to_geocentric(Nvals, input, inverse, target):
inverse=inverse)

for i in range(len(target)):
assert abs(output[i] - target[i]).max() < 1.0e-6
if Nvals > 1:
assert abs(output[i] - target[i]).max() < 1.0e-6
assert output[i].shape == lat_in.shape
else:
assert abs(output[i] - target[i]) < 1.0e-6


def test_geodetic_to_geocentric_and_back():
Expand Down

0 comments on commit fae4012

Please sign in to comment.