Coverage for /wheeldirectory/casa-6.7.0-12-py3.10.el8/lib/py/lib/python3.10/site-packages/casatasks/private/task_listvis.py: 92%
13 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-01 07:19 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-01 07:19 +0000
1# Task listvis
3import os
5from casatools import ms
6from casatasks import casalog
8def listvis(vis, options, datacolumn, field,spw, selectdata, antenna, timerange,
9 correlation, scan, feed, array, observation, uvrange, average,
10 showflags, pagerows, listfile):
11 """List visibilities on terminal."""
13 casalog.origin('listvis')
14 myms = ms()
16 isInteractive=False;
18 try:
19 if ((type(vis)==str) & (os.path.exists(vis))):
20 myms.open(vis)
21 else:
22 raise Exception('Visibility data set not found - please verify the name')
24 myms.lister(options, datacolumn, field, spw, antenna, timerange,
25 correlation, scan, feed, array, str(observation), uvrange,
26 average, showflags, "", pagerows, listfile)
28 finally:
29 myms.close()