Coverage for /wheeldirectory/casa-6.7.0-12-py3.10.el8/lib/py/lib/python3.10/site-packages/casatasks/listhistory.py: 100%
27 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
1##################### generated by xml-casa (v2) from listhistory.xml ###############
2##################### e0e67645af2957d5aabe406b36746d9e ##############################
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_listhistory import listhistory as _listhistory_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
14class _listhistory:
15 """
16 listhistory ---- List the processing history of a dataset:
19 List the processing history of a dataset:
20 The list of all task processing steps will be
21 given in the logger.
24 --------- parameter descriptions ---------------------------------------------
26 vis Name of input visibility file (MS)
27 [1;42mRETURNS[1;m void
29 --------- examples -----------------------------------------------------------
33 The list of all task processing steps in a visibility data set
34 are listed in the logger.
36 Keyword arguments:
37 vis -- Name of input visibility file
38 default: none; example: vis='ngc5921.ms'
42 """
44 _info_group_ = """information"""
45 _info_desc_ = """List the processing history of a dataset:"""
47 def __call__( self, vis='' ):
48 schema = {'vis': {'type': 'cReqPath', 'coerce': _coerce.expand_path}}
49 doc = {'vis': vis}
50 assert _pc.validate(doc,schema), create_error_string(_pc.errors)
51 _logging_state_ = _start_log( 'listhistory', [ 'vis=' + repr(_pc.document['vis']) ] )
52 task_result = None
53 try:
54 task_result = _listhistory_t( _pc.document['vis'] )
55 except Exception as exc:
56 _except_log('listhistory', exc)
57 raise
58 finally:
59 task_result = _end_log( _logging_state_, 'listhistory', task_result )
60 return task_result
62listhistory = _listhistory( )