Commits

Kazuhiko Shimada authored e2f02b4fe8a Merge
Merge branch 'main', remote-tracking branch 'origin' into PIPE-1588-hsd_baseline-incorrect-generating-of-part-of-mask-of-blparam-file
No tags

pipeline/domain/measurementset.py

Modified
769 769
770 770 ddindex = self.get_vla_datadesc()
771 771
772 772 corrstring_list = ddindex[0]['corrdesc']
773 773 removal_list = ['RL', 'LR', 'XY', 'YX']
774 774 corrstring_list = sorted(set(corrstring_list).difference(set(removal_list)))
775 775 corrstring = ','.join(corrstring_list)
776 776
777 777 return corrstring
778 778
779 + def get_vla_corrlist_from_spw(self, spw=None):
780 + """Get all VLA correlation labels as a list of string from selected spw(s).
781 +
782 + Args:
783 + spw: a spw selection string or None. Defaults to None.
784 +
785 + Returns:
786 + list: a list of correlation labels.
787 + """
788 + ddindex = self.get_vla_datadesc()
789 + corrs = set()
790 + for dd in ddindex.values():
791 + if spw in ('', '*', None) or (isinstance(spw, str) and str(dd['spw']) in spw.split(',')):
792 + corrs = corrs.union(dd['corrdesc'])
793 +
794 + return sorted(corrs)
795 +
779 796 def get_alma_corrstring(self):
780 797 """Get correlation string for ALMA for the science windows
781 798
782 799 Args:
783 800 None
784 801
785 802 Returns:
786 803 corrstring: string value of correlation
787 804
788 805 """

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

Add shortcut