Skip to content

Commit 905c557

Browse files
Adrian Damianbsipocz
authored andcommitted
Changed the scope of --alma-site pytest argument
1 parent 4a16508 commit 905c557

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

astroquery/alma/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
},
111111
'Energy': {
112112
'Frequency (GHz)': ['frequency', 'frequency', _gen_numeric_sql],
113-
'Bandwidth (GHz)': ['bandwidth', 'bandwidth', _gen_numeric_sql],
113+
'Bandwidth (Hz)': ['bandwidth', 'bandwidth', _gen_numeric_sql],
114114
'Spectral resolution (KHz)': ['spectral_resolution',
115115
'em_resolution', _gen_spec_res_sql],
116116
'Band': ['band_list', 'band_list', _gen_band_list_sql]

astroquery/alma/tests/test_alma_remote.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@
3030

3131
@pytest.fixture
3232
def alma(request):
33+
"""
34+
Returns an alma client class. `--alma-site` pytest option can be used
35+
to have the client run against a specific site
36+
:param request: pytest request fixture
37+
:return: alma client to use in tests
38+
"""
3339
alma = Alma()
3440
alma_site = request.config.getoption('--alma-site',
3541
'almascience.org')

astroquery/conftest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,12 @@ def pytest_configure(config):
4848
TESTED_VERSIONS[packagename] = version
4949
TESTED_VERSIONS['astropy_helpers'] = astropy_helpers_version
5050

51+
5152
def pytest_addoption(parser):
5253
parser.addoption(
5354
'--alma-site',
5455
action='store',
5556
default='almascience.org',
56-
help='ALMA site',
57-
choices={'almascience.nrao.edu',
58-
'almascience.eso.org',
59-
'almascience.nao.ac.jp'}
57+
help='ALMA site (almascience.nrao.edu, almascience.eso.org or '
58+
'almascience.nao.ac.jp for example)'
6059
)

docs/alma/alma.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ You can get interactive help to find out what keywords to query for:
4747
4848
Energy
4949
Frequency (GHz) frequency frequency
50-
Bandwidth (GHz) bandwidth bandwidth
50+
Bandwidth (Hz) bandwidth bandwidth
5151
Spectral resolution (KHz) spectral_resolution em_resolution
5252
Band band_list band_list
5353
@@ -210,7 +210,7 @@ their types.
210210
asdm_uid char(32*) UID of the ASDM containing this Field.
211211
authors char(4000*) Full list of first author and all co-authors
212212
band_list char(30*) Space delimited list of bands
213-
bandwidth double GHz Total Bandwidth
213+
bandwidth double Hz Total Bandwidth
214214
bib_reference char(30*) Bibliography code
215215
calib_level int calibration level (2 or 3). 2 if product_type = MOUS, 3 if product_type = GOUS
216216
cont_sensitivity_bandwidth double mJy/beam Estimated noise in the aggregated continuum bandwidth. Note this is an indication only, it does not include the effects of flagging or dynamic range limitations.

0 commit comments

Comments
 (0)