Skip to content

Commit a9aca55

Browse files
committed
Addressing sqrt(negative) in singular test case
1 parent 5250e9c commit a9aca55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/utils/test_dop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def test_singularity_dop(navdata):
416416
# that the values are unrealistically large.
417417
# Note: we use np.any() since we can get small values in the DOP matrix
418418
for _, val in dop_dict.items():
419-
assert np.any(np.abs(val) > 1e6)
419+
assert np.any(np.isnan(val)) or np.any(np.abs(val) > 1e6)
420420

421421
except np.linalg.LinAlgError:
422422
# We expect a singularity error. If we get the singularity error, then

0 commit comments

Comments
 (0)