Skip to content

Commit 1bfa2ba

Browse files
committed
pep8 fixes
1 parent fc533c7 commit 1bfa2ba

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

astroquery/splatalogue/tests/test_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,17 @@ def test_minimize(patch_post):
3333
assert 'Resolved QNs' not in c.colnames
3434
assert 'QNs' in c.colnames
3535

36+
3637
@pytest.mark.remote_data
3738
def test_minimize_issue2135():
3839
rslt = splatalogue.Splatalogue.query_lines(100*u.GHz, 200*u.GHz,
3940
chemical_name=' SiO ',
4041
energy_max=1840,
4142
energy_type='eu_k',
42-
line_lists=['JPL','CDMS','SLAIM'],
43+
line_lists=['JPL', 'CDMS', 'SLAIM'],
4344
show_upper_degeneracy=True)
4445

4546
minimized = utils.minimize_table(rslt)
46-
47+
4748
theomask = rslt['Freq-GHz(rest frame,redshifted)'].mask
4849
np.testing.assert_allclose(minimized['Freq'][theomask], rslt['Meas Freq-GHz(rest frame,redshifted)'][theomask])

astroquery/splatalogue/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ def merge_frequencies(table, prefer='measured',
5959
if hasattr(table[meas_kwd], 'mask'):
6060
measmask = np.logical_not(table[meas_kwd].mask)
6161
else:
62-
measmask = slice(None) # equivalent to [:] - all data are good
62+
measmask = slice(None) # equivalent to [:] - all data are good
6363
Freq[measmask] = table[meas_kwd][measmask].astype('float')
6464
elif prefer == 'theoretical':
6565
Freq = np.copy(table[meas_kwd]).astype('float')
6666
if hasattr(table[theor_kwd], 'mask'):
6767
theomask = np.logical_not(table[theor_kwd].mask)
6868
else:
69-
theomask = slice(None) # equivalent to [:] - all data are good
69+
theomask = slice(None) # equivalent to [:] - all data are good
7070
Freq[theomask] = table[theor_kwd][theomask].astype('float')
7171
else:
7272
raise ValueError('prefer must be one of "measured" or "theoretical"')

0 commit comments

Comments
 (0)