Skip to content

Commit d706c69

Browse files
committed
Ka does not have uppercase. 'ALL' and 'all' must both be accepted
1 parent 9f1594c commit d706c69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

astroquery/nrao/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ def wrapper(*args, **kwargs):
4242
.format(Nrao.telescope_config))
4343
if isinstance(obs_band, (list, tuple)):
4444
for ob in obs_band:
45-
if ob.upper() not in Nrao.obs_bands:
45+
if ob not in Nrao.obs_bands:
4646
raise ValueError("'obs_band' must be one of {!s}"
4747
.format(Nrao.obs_bands))
48-
elif obs_band.upper() not in Nrao.obs_bands:
48+
elif obs_band not in Nrao.obs_bands:
4949
raise ValueError("'obs_band' must be one of {!s}"
5050
.format(Nrao.obs_bands))
5151
if sub_array not in Nrao.subarrays and sub_array != 'all':
@@ -74,7 +74,7 @@ class NraoClass(QueryWithLogin):
7474
telescope_config = ['ALL', 'A', 'AB', 'BnA', 'B', 'BC', 'CnB', 'C',
7575
'CD', 'DnC', 'D', 'DA']
7676

77-
obs_bands = ['ALL', '4', 'P', 'L', 'S', 'C', 'X', 'U', 'K', 'Ka', 'Q', 'W']
77+
obs_bands = ['ALL', 'all', '4', 'P', 'L', 'S', 'C', 'X', 'U', 'K', 'Ka', 'Q', 'W']
7878

7979
subarrays = ['ALL', 1, 2, 3, 4, 5]
8080

0 commit comments

Comments
 (0)