Commits

Takeshi Nakazato authored 9c3f58c2d32
CAS-13780 documentation fix (D208)
No tags

casatasks/src/private/sdutil.py

Modified
538 538 spw,
539 539 timerange,
540 540 scan,
541 541 antenna,
542 542 timebin,
543 543 timespan,
544 544 outfile,
545 545 intent,
546 546 caller: CodeType,
547 547 ext_config):
548 - """
549 - call mstransform by the provided procedure.
550 - Followings are parameters of mstransform, but not used by sdtimeaverage,
551 - just only putting default values.
548 + """Call mstransform by the provided procedure.
549 +
550 + Followings are parameters of mstransform, but not used by sdtimeaverage,
551 + just only putting default values.
552 552 """
553 553 vis = infile # needed for ParallelDataHelper
554 554 outputvis = outfile # needed for ParallelDataHelper
555 555 separationaxis = "auto"
556 556 tileshape = [0]
557 557
558 558 # intent = ''
559 559 correlation = ''
560 560 array = ''
561 561 uvrange = ''
872 872 if tileshape[0] != 0 and tileshape[0] != 1:
873 873 raise ValueError('When tileshape has one element, it should be either 0 or 1.')
874 874
875 875 elif tileshape.__len__() != 3:
876 876 # The 3 elements are: correlations, channels, rows
877 877 raise ValueError('Parameter tileshape must have 1 or 3 elements.')
878 878
879 879
880 880 def __process_input_multi_ms(pdh, separationaxis):
881 881 '''
882 - retval{'status': True, 'axis':''} --> can run in parallel
883 - retval{'status': False, 'axis':'value'} --> treat MMS as monolithic MS,
884 - set new axis for output MMS
885 - retval{'status': False, 'axis':''} --> treat MMS as monolithic MS,
886 - create an output MS
887 - '''
882 + retval{'status': True, 'axis':''} --> can run in parallel
883 + retval{'status': False, 'axis':'value'} --> treat MMS as monolithic MS,
884 + set new axis for output MMS
885 + retval{'status': False, 'axis':''} --> treat MMS as monolithic MS,
886 + create an output MS
887 + '''
888 888 retval = pdh.validateInputParams()
889 889
890 890 # Cannot create an output MMS.
891 891 if not retval['status'] and retval['axis'] == '':
892 892 casalog.post('Cannot process MMS with the requested transformations', 'WARN')
893 893 casalog.post('Use task listpartition to see the contents of the MMS')
894 894 casalog.post('Will create an output MS', 'WARN')
895 895 createmms = False
896 896 return createmms, separationaxis, False
897 897

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut