Skip to content

Commit f82e089

Browse files
bhazeltonmkolopanis
authored andcommitted
handle another SPICE error, update codecov.yml for new version
1 parent ffa2790 commit f82e089

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

.codecov.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
codecov:
22
ci:
3-
- !travis-ci # ignore CI builds by Travis
4-
- !azure-pipelines # ignore CI builds by azure pipelines
3+
- "!azure-pipelines" # ignore CI builds by azure pipelines

pyuvdata/tests/test_utils.py

+15-10
Original file line numberDiff line numberDiff line change
@@ -4516,16 +4516,21 @@ def test_uvw_track_generator(flip_u, use_uvw, use_earthloc):
45164516
@pytest.mark.parametrize("selenoid", ["SPHERE", "GSFC", "GRAIL23", "CE-1-LAM-GEO"])
45174517
def test_uvw_track_generator_moon(selenoid):
45184518
# Note this isn't a particularly deep test, but it at least exercises the code.
4519-
gen_results = uvutils.uvw_track_generator(
4520-
lon_coord=0.0,
4521-
lat_coord=0.0,
4522-
coord_frame="icrs",
4523-
telescope_loc=(0, 0, 0),
4524-
time_array=2456789.0,
4525-
antenna_positions=np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]]),
4526-
telescope_frame="mcmf",
4527-
ellipsoid=selenoid,
4528-
)
4519+
from spiceypy.utils.exceptions import SpiceUNKNOWNFRAME
4520+
4521+
try:
4522+
gen_results = uvutils.uvw_track_generator(
4523+
lon_coord=0.0,
4524+
lat_coord=0.0,
4525+
coord_frame="icrs",
4526+
telescope_loc=(0, 0, 0),
4527+
time_array=2456789.0,
4528+
antenna_positions=np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]]),
4529+
telescope_frame="mcmf",
4530+
ellipsoid=selenoid,
4531+
)
4532+
except SpiceUNKNOWNFRAME as err:
4533+
pytest.skip("SpiceUNKNOWNFRAME error: " + str(err))
45294534

45304535
# Check that the total lengths all match 1
45314536
assert np.allclose((gen_results["uvw"] ** 2.0).sum(1), 2.0)

0 commit comments

Comments
 (0)