Coverage for /wheeldirectory/casa-6.7.0-12-py3.10.el8/lib/py/lib/python3.10/site-packages/casatasks/private/task_listcal.py: 92%
12 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
1import os
3from casatasks import casalog
4from casatools import calibrater
6def listcal(vis=None,caltable=None,field=None,antenna=None,spw=None,
7 listfile=None,pagerows=None):
8 """List calibration solutions (amp and phase)."""
10 casalog.origin('listcal')
12 #Python script
14 try:
15 mycb = calibrater()
16 if ((type(vis)==str) & (os.path.exists(vis))):
17 mycb.open(filename=vis,compress=False,addcorr=False,addmodel=False)
18 else:
19 raise Exception('Visibility data set not found - please verify the name')
20 mycb.listcal(caltable=caltable,field=field,antenna=antenna,spw=spw,
21 listfile=listfile,pagerows=pagerows)
23 finally:
24 mycb.close()