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

27 statements  

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

1##################### generated by xml-casa (v2) from asdmsummary.xml ############### 

2##################### f80868a97288f171678257692e450452 ############################## 

3from __future__ import absolute_import 

4import numpy 

5from casatools.typecheck import CasaValidator as _val_ctor 

6_pc = _val_ctor( ) 

7from casatools.coercetype import coerce as _coerce 

8from casatools.errors import create_error_string 

9from .private.task_asdmsummary import asdmsummary as _asdmsummary_t 

10from casatasks.private.task_logging import start_log as _start_log 

11from casatasks.private.task_logging import end_log as _end_log 

12from casatasks.private.task_logging import except_log as _except_log 

13 

14class _asdmsummary: 

15 """ 

16 asdmsummary ---- Summarized description of an ASDM dataset. 

17 

18  

19 Given an ASDM directory, this task will print, to the CASA log, 

20 information about the content of the dataset contained in that 

21 directory (down to the level of a subscan). 

22 

23 --------- parameter descriptions --------------------------------------------- 

24 

25 asdm Name of input ASDM directory 

26 The asdmsummary task prints a description of the 

27 content of an SDM dataset to the CASA logger. 

28  

29 Example: 

30 asdm='10C-119_sb3070258_1.55628.42186299768' 

31 RETURNS void 

32 

33 --------- examples ----------------------------------------------------------- 

34 

35  

36 For more information, see the task pages of asdmsummary in CASA Docs: 

37  

38 https://casa.nrao.edu/casadocs/ 

39  

40 

41 

42 """ 

43 

44 _info_group_ = """information""" 

45 _info_desc_ = """Summarized description of an ASDM dataset.""" 

46 

47 def __call__( self, asdm='' ): 

48 schema = {'asdm': {'type': 'cReqPath', 'coerce': _coerce.expand_path}} 

49 doc = {'asdm': asdm} 

50 assert _pc.validate(doc,schema), create_error_string(_pc.errors) 

51 _logging_state_ = _start_log( 'asdmsummary', [ 'asdm=' + repr(_pc.document['asdm']) ] ) 

52 task_result = None 

53 try: 

54 task_result = _asdmsummary_t( _pc.document['asdm'] ) 

55 except Exception as exc: 

56 _except_log('asdmsummary', exc) 

57 raise 

58 finally: 

59 task_result = _end_log( _logging_state_, 'asdmsummary', task_result ) 

60 return task_result 

61 

62asdmsummary = _asdmsummary( ) 

63