Skip to content

Commit

Permalink
add a test where ant_array is not a np.array
Browse files Browse the repository at this point in the history
  • Loading branch information
mkolopanis committed Dec 5, 2023
1 parent 489075e commit a51fbe0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyuvdata/uvcal/tests/test_initializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,9 @@ def test_new_uvcal_with_history(uvd_kw, uvc_only_kw):
uvd = new_uvdata(**uvd_kw)
uvc = new_uvcal_from_uvdata(uvd, history="my substring", **uvc_only_kw)
assert "my substring" in uvc.history


def test_new_uvcal_ant_array_list(uvd_kw, uvc_only_kw):
uvd = new_uvdata(**uvd_kw)
uvc = new_uvcal_from_uvdata(uvd, ant_array=[1, 2, 3], **uvc_only_kw)
assert np.array_equal(np.array([1, 2], dtype=np.uint64), uvc.ant_array)

0 comments on commit a51fbe0

Please sign in to comment.