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

27 statements  

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

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

2##################### 3306c11805fc900fa65aad4f02fa1b89 ############################## 

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_clearstat import clearstat as _clearstat_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 _clearstat: 

15 """ 

16 clearstat ---- Clear all autolock locks 

17 

18  

19 This task is useful if another task that is running indicates 

20 that it is trying to obtain a lock on a file. 

21  

22 Typing 'go clearstat()' will not change the current task being scrutinized 

23 Typing 'clearstat()' will change the current task assignment to clearpstat 

24 which is generally not what is desired. 

25 

26 --------- parameter descriptions --------------------------------------------- 

27 

28 

29 RETURNS void 

30 

31 

32 

33 """ 

34 

35 _info_group_ = """manipulation""" 

36 _info_desc_ = """Clear all autolock locks""" 

37 

38 def __call__( self ): 

39 schema = { } 

40 doc = { } 

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

42 _logging_state_ = _start_log( 'clearstat', [ ] ) 

43 task_result = None 

44 try: 

45 task_result = _clearstat_t( ) 

46 except Exception as exc: 

47 _except_log('clearstat', exc) 

48 raise 

49 finally: 

50 task_result = _end_log( _logging_state_, 'clearstat', task_result ) 

51 return task_result 

52 

53clearstat = _clearstat( ) 

54