From 188815d9bd4f31153c9997ad23c5fe70ad1e82e3 Mon Sep 17 00:00:00 2001 From: Matthew Kolopanis Date: Fri, 3 Nov 2023 10:14:37 -0700 Subject: [PATCH] re-add min bl comparison --- pyuvdata/utils.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyuvdata/utils.pyx b/pyuvdata/utils.pyx index 9c864dfd6f..ae76e9472e 100644 --- a/pyuvdata/utils.pyx +++ b/pyuvdata/utils.pyx @@ -120,9 +120,9 @@ cpdef numpy.ndarray[dtype=numpy.uint64_t, ndim=2] baseline_to_antnums( cdef numpy.ndarray[ndim=2, dtype=numpy.uint64_t] ants = numpy.PyArray_EMPTY(ndim, dims, numpy.NPY_UINT64, 0) cdef numpy.uint64_t[:, ::1] _ants = ants - if use2147483648: + if _min >= (2 ** 16 + 2 ** 22): _bl_to_ant_2147483648(_bl, _ants, nbls) - elif use2048: + elif _min >= 2 ** 16: _bl_to_ant_2048(_bl, _ants, nbls) else: _bl_to_ant_256(_bl, _ants, nbls)