Commits
871 871 | # The only allowed values are 0 or 1 |
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 882 | retval{'status': True, 'axis':''} --> can run in parallel |
883 883 | retval{'status': False, 'axis':'value'} --> treat MMS as monolithic MS, |
884 884 | set new axis for output MMS |
885 885 | retval{'status': False, 'axis':''} --> treat MMS as monolithic MS, |
886 886 | create an output MS |
887 - | ''' |
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 | |