Skip to content

Commit

Permalink
a minor fix to splatalogue utils (note that this is presently smuggled
Browse files Browse the repository at this point in the history
into the higal PR; it should be cherry-picked into another)
  • Loading branch information
keflavich committed Apr 14, 2020
1 parent 85399fd commit f1d8a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astroquery/splatalogue/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"')
Expand Down

0 comments on commit f1d8a87

Please sign in to comment.