示例#1
0
def test_get_telescope():
    for inst in pyuvdata.known_telescopes():
        telescope_obj = pyuvdata.get_telescope(inst)
        assert telescope_obj.telescope_name == inst
示例#2
0
def test_known_telescopes():
    """Test known_telescopes function returns expected results."""
    nt.assert_equal(pyuvdata.known_telescopes().sort(),
                    expected_known_telescopes.sort())
示例#3
0
def test_known_telescopes():
    """Test known_telescopes function returns expected results."""
    assert sorted(
        pyuvdata.known_telescopes()) == sorted(expected_known_telescopes)
示例#4
0
def test_known_telescopes():
    """Test known_telescopes function returns expected results."""
    # using np.sort here and casting to list instead of .sort() since .sort() acts inplace and returns None
    assert np.sort(pyuvdata.known_telescopes()).tolist() == np.sort(
        expected_known_telescopes).tolist()