Coverage for /wheeldirectory/casa-6.7.0-12-py3.10.el8/lib/py/lib/python3.10/site-packages/casatasks/private/task_listfits.py: 57%

7 statements  

« prev     ^ index     » next       coverage.py v7.6.4, created at 2024-10-31 18:48 +0000

1import os 

2 

3from casatools import ms 

4_ms = ms( ) 

5 

6def listfits(fitsfile=None): 

7 """ 

8 

9 """ 

10 #Python script 

11 

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')