From a51fbe04f2c20d024c29d05103462aad2729d841 Mon Sep 17 00:00:00 2001 From: Matthew Kolopanis Date: Tue, 5 Dec 2023 09:36:07 -0700 Subject: [PATCH] add a test where ant_array is not a np.array --- pyuvdata/uvcal/tests/test_initializers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyuvdata/uvcal/tests/test_initializers.py b/pyuvdata/uvcal/tests/test_initializers.py index ee05375e5e..63dca789ea 100644 --- a/pyuvdata/uvcal/tests/test_initializers.py +++ b/pyuvdata/uvcal/tests/test_initializers.py @@ -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)