Commits
Kumar Golap authored b9cf5601ed1 Merge
518 518 | if not "msname" in self.allselpars: |
519 519 | errs = errs + "MS name(s) not specified" |
520 520 | else: |
521 521 | if type(self.allselpars['msname']) == list: |
522 522 | #(timesortedvislist, times) = sort_mslist(self.allselpars['msname']) |
523 523 | (timesortedvislist, times, newindex) = self.mslist_timesorting(self.allselpars['msname']) |
524 524 | if timesortedvislist != self.allselpars['msname']: |
525 525 | self.allselpars['msname'] = timesortedvislist |
526 526 | casalog.post("Sorting the vis list by time. The new vis list:"+ str(self.allselpars['msname'])) |
527 527 | for selp in ['spw','field','timestr','uvdist','antenna','scan','obs','state']: |
528 - | if len(self.allselpars[selp]) == len(newindex): |
528 + | if type(self.allselpars[selp]) == list and len(self.allselpars[selp]) == len(newindex): |
529 529 | self.allselpars[selp] = [self.allselpars[selp][i] for i in newindex] |
530 530 | |
531 531 | #msdiff = check_mslist(self.allselpars['msname'], ignore_tables=['SORTED_TABLE', 'ASDM*']) |
532 532 | msdiff = check_mslist(self.allselpars['msname'], ignore_tables=['SORTED_TABLE', 'ASDM*'], testcontent=False) |
533 533 | |
534 534 | # Only call this if vis == list and there is mismatch in wtspec columns |
535 535 | # Maybe expanded for other checks later... |
536 536 | if msdiff != {}: |
537 537 | #print("MS diff===",msdiff) |
538 538 | noWtspecmslist=[] |