Coverage for /wheeldirectory/casa-6.7.0-12-py3.10.el8/lib/py/lib/python3.10/site-packages/casatools/sdm.py: 59%

22 statements  

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

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

2##################### 858ead87e0d766e6aca5328d68b7b373 ############################## 

3from __future__ import absolute_import 

4from .__casac__.sdm import sdm as _sdm 

5 

6from .errors import create_error_string 

7from .typecheck import CasaValidator as _validator 

8_pc = _validator( ) 

9from .coercetype import coerce as _coerce 

10 

11 

12class sdm: 

13 _info_group_ = """sdm""" 

14 _info_desc_ = """Manipulate or examine SDM datasets""" 

15 ### self, path='' 

16 def __init__(self, path='', *args, **kwargs): 

17 """ 

18 """ 

19 schema = {'path': {'type': 'cPath', 'coerce': _coerce.expand_path}} 

20 doc = {'path': path} 

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

22 self._swigobj = kwargs.get('swig_object',None) 

23 if self._swigobj is None: 

24 self._swigobj = _sdm(_pc.document['path']) 

25 

26 def summarystr(self): 

27 """ 

28 """ 

29 return self._swigobj.summarystr() 

30 

31 def fromms(self, mspath='', datacolumn='DATA', archiveid='S0', rangeid='X1', subscanduration=float(24.0*3600.0), sbduration=float(2700.0), apcorrected=False, verbose=True): 

32 """Create an sdm object with a non-existant path, and then use this function to populate 

33 the directory (which will be created) with the specified measurement set. 

34  

35 """ 

36 return self._swigobj.fromms(mspath, datacolumn, archiveid, rangeid, subscanduration, sbduration, apcorrected, verbose) 

37 

38 def toms(self, vis='', createmms=False, separationaxis='auto', numsubms='auto', corr_mode='all', srt='all', time_sampling='all', ocorr_mode='ca', compression=False, lazy=False, asis='', wvr_corrected_data='no', scans='', ignore_time=False, process_syspower=True, process_caldevice=True, process_pointing=True, process_flags=True, tbuff=float(0.0), applyflags=False, savecmds=False, outfile='', flagbackup=True, verbose=False, overwrite=False, bdfflags=False, with_pointing_correction=False, convert_ephem2geo=True, polyephem_tabtimestep=float(0.)): 

39 """ 

40 """ 

41 return self._swigobj.toms(vis, createmms, separationaxis, numsubms, corr_mode, srt, time_sampling, ocorr_mode, compression, lazy, asis, wvr_corrected_data, scans, ignore_time, process_syspower, process_caldevice, process_pointing, process_flags, tbuff, applyflags, savecmds, outfile, flagbackup, verbose, overwrite, bdfflags, with_pointing_correction, convert_ephem2geo, polyephem_tabtimestep) 

42