Coverage for /wheeldirectory/casa-6.7.0-12-py3.10.el8/lib/py/lib/python3.10/site-packages/casatasks/private/task_listfits.py: 86%
7 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 casatools import ms
4_ms = ms( )
6def listfits(fitsfile=None):
7 """
9 """
10 #Python script
12 if ((type(fitsfile)==str) & (os.path.exists(fitsfile))):
13 _ms.listfits(fitsfile);
14 else:
15 raise ValueError('fits file not found - please verify the name')