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

10 statements  

« prev     ^ index     » next       coverage.py v7.6.4, created at 2024-11-01 07:19 +0000

1######################################################################## 

2# Task to print a summary of the content of an SDM dataset 

3# 

4# v1.0: 2012.02.13, M. Caillat 

5# 

6import os 

7from casatools import sdm 

8from casatasks import casalog 

9 

10def asdmsummary(asdm=None): 

11 """Prints a description of the content of an SDM dataset to the CASA logger. 

12 

13 Keyword argument: 

14 

15 asdm -- Name of the input SDM directory. 

16 

17 """ 

18 casalog.origin('asdmsummary') 

19 dataset = sdm(asdm) 

20 summary = dataset.summarystr( ) 

21 if len(summary) == 1: 

22 casalog.post('error generating summary: ' + summary[0], 'SEVERE') 

23 else: 

24 casalog.post(summary)