Commits

David Mehringer authored 325ed911ad4
finish renaming task
No tags

casatasks/src/private/task_getantposalma.py

Modified
38 38 v = casashell.version_string
39 39 if 'dev' in v:
40 40 return dev
41 41 else:
42 42 return prod
43 43 except Exception as e:
44 44 return dev
45 45
46 46
47 47
48 -def antposalma(
48 +def getantposalma(
49 49 outfile='', overwrite=False, asdm='', tw='', snr=0, search='both_latest',
50 50 hosts=['tbd1.alma.cl', 'tbd2.alma.cl']
51 51 ):
52 52 r"""
53 53 Retrieve antenna positions by querying ALMA web service.
54 54
55 55 [`Description`_] [`Examples`_] [`Development`_] [`Details`_]
56 56
57 57
58 58 Parameters
223 223 f"Parameter search (={search}) must have a value of either "
224 224 "'both_latest' or 'both_closest'."
225 225 )
226 226 wsid = (
227 227 "uncertainties-service/uncertainties/versions/last/measurements/casa/?"
228 228 f"{urlencode(parms)}"
229 229 )
230 230 antpos = None
231 231 for h in hosts:
232 232 server = h
233 - if server = "prod-dev":
233 + if server == "prod-dev":
234 234 server = _get_prod_dev()
235 235 if not _is_valid_url_host(server):
236 236 raise ValueError(
237 237 f'Parameter hosts: {h} is not a valid host expressed as a URL.'
238 238 )
239 239 url = f"{server}/{wsid}"
240 240 casalog.post(f"Trying {url} ...", "NORMAL")
241 241 antpos = _query(url)
242 242 if antpos:
243 243 break

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut