Skip to content

Commit f1d8a87

Browse files
committed
a minor fix to splatalogue utils (note that this is presently smuggled
into the higal PR; it should be cherry-picked into another)
1 parent 85399fd commit f1d8a87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

astroquery/splatalogue/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ def merge_frequencies(table, prefer='measured',
5656

5757
if prefer == 'measured':
5858
Freq = np.copy(table[theor_kwd])
59-
measmask = np.logical_not(table[meas_kwd].mask)
59+
measmask = np.logical_not(table.mask[meas_kwd])
6060
Freq[measmask] = table[meas_kwd][measmask]
6161
elif prefer == 'theoretical':
6262
Freq = np.copy(table[meas_kwd])
63-
theomask = np.logical_not(table[theor_kwd].mask)
63+
theomask = np.logical_not(table.mask[theor_kwd])
6464
Freq[measmask] = table[theor_kwd][theomask]
6565
else:
6666
raise ValueError('prefer must be one of "measured" or "theoretical"')

0 commit comments

Comments
 (0)