From f1d8a87f8bb2e6c7082f46388b0efd07470583cc Mon Sep 17 00:00:00 2001 From: "Adam Ginsburg (keflavich)" Date: Sun, 26 Jan 2020 13:37:03 -0500 Subject: [PATCH] a minor fix to splatalogue utils (note that this is presently smuggled into the higal PR; it should be cherry-picked into another) --- astroquery/splatalogue/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astroquery/splatalogue/utils.py b/astroquery/splatalogue/utils.py index 2fbd044565..2bf8710b8e 100644 --- a/astroquery/splatalogue/utils.py +++ b/astroquery/splatalogue/utils.py @@ -56,11 +56,11 @@ def merge_frequencies(table, prefer='measured', if prefer == 'measured': Freq = np.copy(table[theor_kwd]) - measmask = np.logical_not(table[meas_kwd].mask) + measmask = np.logical_not(table.mask[meas_kwd]) Freq[measmask] = table[meas_kwd][measmask] elif prefer == 'theoretical': Freq = np.copy(table[meas_kwd]) - theomask = np.logical_not(table[theor_kwd].mask) + theomask = np.logical_not(table.mask[theor_kwd]) Freq[measmask] = table[theor_kwd][theomask] else: raise ValueError('prefer must be one of "measured" or "theoretical"')