Commits
357 357 | setpointings=setpointings,ptgfile=ptgfile, |
358 358 | integration=integration,obsmode=obsmode, |
359 359 | antennalist=antennalist,totaltime=totaltime, |
360 360 | thermalnoise="",graphics=self.graphics) |
361 361 | self.assertTrue(res) |
362 362 | # compare output MS |
363 363 | currms = self.project + "/" + \ |
364 364 | self._get_data_prefix(antennalist,self.project)+".ms" |
365 365 | self._check_msstats(currms,self.refms_int) |
366 366 | |
367 - | # def testSky_intLeak(self): |
368 - | # """Test skymodel simulation: only observation (INT)""" |
369 - | # skymodel = self.refmodel |
370 - | # setpointings = False |
371 - | # obsmode = "" |
372 - | # leakage = 0.5 |
373 - | # res = simobserve(project=self.project,skymodel=skymodel, |
374 - | # setpointings=setpointings,ptgfile=ptgfile, |
375 - | # obsmode=obsmode,thermalnoise="", |
376 - | # leakage=leakage,graphics=self.graphics) |
367 + | skip("Previously disabled for unknown reason") . |
368 + | def testSky_intLeak(self): |
369 + | """Test skymodel simulation: only observation (INT)""" |
370 + | skymodel = self.refmodel |
371 + | setpointings = False |
372 + | obsmode = "" |
373 + | leakage = 0.5 |
374 + | res = simobserve(project=self.project,skymodel=skymodel, |
375 + | setpointings=setpointings,ptgfile=ptgfile, |
376 + | obsmode=obsmode,thermalnoise="", |
377 + | leakage=leakage,graphics=self.graphics) |
377 378 | |
378 379 | def testSky_sdAll(self): |
379 380 | """Test skymodel simulation: single dish""" |
380 381 | skymodel = self.inmodel |
381 382 | self._copy_input(skymodel) |
382 383 | inbright = "5.95565834e-05Jy/pixel" |
383 384 | indirection = "J2000 19h00m00 -23d00m00" |
384 385 | incell = "0.043080964943481216arcsec" |
385 386 | incenter = "345GHz" |
386 387 | inwidth = "10MHz" |
561 562 | obsmode=obsmode,antennalist=antennalist, |
562 563 | sdantlist=sdantlist, |
563 564 | thermalnoise="",graphics=self.graphics) |
564 565 | self.assertTrue(res) |
565 566 | # compare pointing files |
566 567 | currptg = self.project + "/" + \ |
567 568 | self._get_data_prefix(sdantlist,self.project)+".ptg.txt" |
568 569 | refptg = self.refpref + "square.aca.tp.ptg.txt" |
569 570 | self._check_ptgfile(currptg, refptg) |
570 571 | |
571 - | ##### TEMPORARY discarding due to the bug in simulator. |
572 - | # def testComp_sdObs(self): |
573 - | # """Test complist simulation: only observation (SD)""" |
574 - | # complist = self.incomp |
575 - | # compwidth = self.compwidth |
576 - | # setpointings = False |
577 - | # ptgfile = self.refpref_sd + ".ptg.txt" |
578 - | # integration = "4s" |
579 - | # obsmode = "sd" |
580 - | # sdantlist = self.sdantlist |
581 - | # totaltime = "144s" |
582 - | # res = simobserve(project=self.project,complist=complist, |
583 - | # compwidth = compwidth, |
584 - | # setpointings=setpointings,ptgfile=ptgfile, |
585 - | # integration=integration,obsmode=obsmode, |
586 - | # sdantlist=sdantlist,totaltime=totaltime, |
587 - | # thermalnoise="",graphics=self.graphics) |
588 - | # self.assertTrue(res) |
589 - | # # compare output MS |
590 - | # currms = self.project + "/" + \ |
591 - | # self._get_data_prefix(sdantlist,self.project)+".sd.ms" |
592 - | # self._check_msstats(currms,self.refms_sd) |
593 - | |
572 + | skip('Previously .disabled with comment: "TEMPORARY discarding due to the bug in simulator. Pending CAS-5095."') |
573 + | def testComp_sdObs(self): |
574 + | """Test complist simulation: only observation (SD)""" |
575 + | complist = self.incomp |
576 + | compwidth = self.compwidth |
577 + | setpointings = False |
578 + | ptgfile = self.refpref_sd + ".ptg.txt" |
579 + | integration = "4s" |
580 + | obsmode = "sd" |
581 + | sdantlist = self.sdantlist |
582 + | totaltime = "144s" |
583 + | res = simobserve(project=self.project,complist=complist, |
584 + | compwidth = compwidth, |
585 + | setpointings=setpointings,ptgfile=ptgfile, |
586 + | integration=integration,obsmode=obsmode, |
587 + | sdantlist=sdantlist,totaltime=totaltime, |
588 + | thermalnoise="",graphics=self.graphics) |
589 + | self.assertTrue(res) |
590 + | # compare output MS |
591 + | currms = self.project + "/" + \ |
592 + | self._get_data_prefix(sdantlist,self.project)+".sd.ms" |
593 + | self._check_msstats(currms,self.refms_sd) |
594 594 | |
595 595 | def testComp_intObs(self): |
596 596 | """Test complist simulation: only observation (INT)""" |
597 597 | complist = self.incomp |
598 598 | compwidth = self.compwidth |
599 599 | setpointings = False |
600 600 | ptgfile = self.refpref_int + ".ptg.txt" |
601 601 | integration = "4s" |
602 602 | obsmode = "int" |
603 603 | antennalist = 'alma.out01.cfg' |
607 607 | setpointings=setpointings,ptgfile=ptgfile, |
608 608 | integration=integration,obsmode=obsmode, |
609 609 | antennalist=antennalist,totaltime=totaltime, |
610 610 | thermalnoise="",graphics=self.graphics) |
611 611 | self.assertTrue(res) |
612 612 | # compare output MS |
613 613 | currms = self.project + "/" + \ |
614 614 | self._get_data_prefix(antennalist,self.project)+".ms" |
615 615 | self._check_msstats(currms,self.refms_int) |
616 616 | |
617 - | # def testComp_intLeak(self): |
618 - | # """Test complist simulation: only observation (INT)""" |
619 - | # complist = self.incomp |
620 - | # compwidth = self.compwidth |
621 - | # setpointings = False |
622 - | # obsmode = "" |
623 - | # leakage = 0.5 |
624 - | # res = simobserve(project=self.project,complist=complist, |
625 - | # compwidth = compwidth, |
626 - | # setpointings=setpointings,ptgfile=ptgfile, |
627 - | # obsmode=obsmode,thermalnoise="", |
628 - | # leakage=leakage,graphics=self.graphics) |
629 - | |
630 - | ##### TEMPORARY discarding due to the bug in simulator. |
631 - | # def testComp_sdAll(self): |
632 - | # """Test complist simulation: single dish""" |
633 - | # complist = self.incomp |
634 - | # compwidth = self.compwidth |
635 - | # integration = "4s" |
636 - | # direction = self.direction |
637 - | # mapsize = ["60arcsec", "60arcsec"] |
638 - | # maptype = "square" |
639 - | # obsmode = "sd" |
640 - | # sdantlist = "aca.tp.cfg" |
641 - | # totaltime = "144s" |
642 - | # res = simobserve(project=self.project,complist=complist, |
643 - | # compwidth = compwidth,setpointings=True, |
644 - | # integration=integration,direction=direction, |
645 - | # mapsize=mapsize,maptype=maptype,obsmode=obsmode, |
646 - | # totaltime=totaltime,antennalist="",sdantlist=sdantlist, |
647 - | # thermalnoise="",graphics=self.graphics) |
648 - | # self.assertTrue(res) |
649 - | # # compare outputs |
650 - | # currpref = self.project + "/" + \ |
651 - | # self._get_data_prefix(sdantlist,self.project) |
652 - | # self._check_imstats(currpref+".compskymodel", self.refmodel) |
653 - | # self._check_ptgfile(currpref+".ptg.txt", self.refpref_sd+".ptg.txt") |
654 - | # self._check_msstats(currpref+".sd.ms",self.refms_sd) |
617 + | |
618 + | skip('Previously disabled for unknown reason.') . |
619 + | def testComp_intLeak(self): |
620 + | """Test complist simulation: only observation (INT)""" |
621 + | complist = self.incomp |
622 + | compwidth = self.compwidth |
623 + | setpointings = False |
624 + | obsmode = "" |
625 + | leakage = 0.5 |
626 + | res = simobserve(project=self.project,complist=complist, |
627 + | compwidth = compwidth, |
628 + | setpointings=setpointings,ptgfile=ptgfile, |
629 + | obsmode=obsmode,thermalnoise="", |
630 + | leakage=leakage,graphics=self.graphics) |
631 + | |
632 + | skip('Previously .disabled with comment: "TEMPORARY discarding due to the bug in simulator. Pending CAS-5095."') |
633 + | def testComp_sdAll(self): |
634 + | """Test complist simulation: single dish""" |
635 + | complist = self.incomp |
636 + | compwidth = self.compwidth |
637 + | integration = "4s" |
638 + | direction = self.direction |
639 + | mapsize = ["60arcsec", "60arcsec"] |
640 + | maptype = "square" |
641 + | obsmode = "sd" |
642 + | sdantlist = "aca.tp.cfg" |
643 + | totaltime = "144s" |
644 + | res = simobserve(project=self.project,complist=complist, |
645 + | compwidth = compwidth,setpointings=True, |
646 + | integration=integration,direction=direction, |
647 + | mapsize=mapsize,maptype=maptype,obsmode=obsmode, |
648 + | totaltime=totaltime,antennalist="",sdantlist=sdantlist |
649 + | thermalnoise="",graphics=self.graphics) |
650 + | self.assertTrue(res) |
651 + | # compare outputs |
652 + | currpref = self.project + "/" + \ |
653 + | self._get_data_prefix(sdantlist,self.project) |
654 + | self._check_imstats(currpref+".compskymodel", self.refmodel) |
655 + | self._check_ptgfile(currpref+".ptg.txt", self.refpref_sd+".ptg.txt") |
656 + | self._check_msstats(currpref+".sd.ms",self.refms_sd) |
655 657 | |
656 658 | def testComp_intAll(self): |
657 659 | """Test complist simulation: interferometer""" |
658 660 | complist = self.incomp |
659 661 | compwidth = self.compwidth |
660 662 | integration = "4s" |
661 663 | direction = self.direction |
662 664 | mapsize = ['20arcsec', '20arcsec'] |
663 665 | maptype = "ALMA" |
664 666 | obsmode = 'int' |
815 817 | obsmode=obsmode,antennalist=antennalist, |
816 818 | sdantlist=sdantlist, |
817 819 | thermalnoise="",graphics=self.graphics) |
818 820 | self.assertTrue(res) |
819 821 | # compare pointing files |
820 822 | currptg = self.project + "/" + \ |
821 823 | self._get_data_prefix(sdantlist,self.project)+".ptg.txt" |
822 824 | refptg = self.refpref + "square.aca.tp.ptg.txt" |
823 825 | self._check_ptgfile(currptg, refptg) |
824 826 | |
825 - | ##### TEMPORARY discarding due to the bug in simulator. |
826 - | # def testSC_sdObs(self): |
827 - | # """Test skymodel + complist simulation: only observation (SD)""" |
828 - | # skymodel = self.inmodel |
829 - | # complist = self.incomp |
830 - | # compwidth = self.compwidth |
831 - | # setpointings = False |
832 - | # ptgfile = self.refpref_sd + ".ptg.txt" |
833 - | # integration = "4s" |
834 - | # obsmode = "sd" |
835 - | # sdantlist = self.sdantlist |
836 - | # totaltime = "144s" |
837 - | # res = simobserve(project=self.project,skymodel=skymodel, |
838 - | # complist=complist,compwidth=compwidth, |
839 - | # setpointings=setpointings,ptgfile=ptgfile, |
840 - | # integration=integration,obsmode=obsmode, |
841 - | # sdantlist=sdantlist,totaltime=totaltime, |
842 - | # thermalnoise="",graphics=self.graphics) |
843 - | # self.assertTrue(res) |
844 - | # # compare output MS |
845 - | # currms = self.project + "/" + \ |
846 - | # self._get_data_prefix(sdantlist,self.project)+".sd.ms" |
847 - | # self._check_msstats(currms,self.refms_sd,rtol=self.rtol_sdms) |
827 + | skip('Previously .disabled with comment: "TEMPORARY discarding due to the bug in simulator. Pending CAS-5095."') |
828 + | def testSC_sdObs(self): |
829 + | """Test skymodel + complist simulation: only observation (SD)""" |
830 + | skymodel = self.inmodel |
831 + | complist = self.incomp |
832 + | compwidth = self.compwidth |
833 + | setpointings = False |
834 + | ptgfile = self.refpref_sd + ".ptg.txt" |
835 + | integration = "4s" |
836 + | obsmode = "sd" |
837 + | sdantlist = self.sdantlist |
838 + | totaltime = "144s" |
839 + | res = simobserve(project=self.project,skymodel=skymodel, |
840 + | complist=complist,compwidth=compwidth, |
841 + | setpointings=setpointings,ptgfile=ptgfile, |
842 + | integration=integration,obsmode=obsmode, |
843 + | sdantlist=sdantlist,totaltime=totaltime, |
844 + | thermalnoise="",graphics=self.graphics) |
845 + | self.assertTrue(res) |
846 + | # compare output MS |
847 + | currms = self.project + "/" + \ |
848 + | self._get_data_prefix(sdantlist,self.project)+".sd.ms" |
849 + | self._check_msstats(currms,self.refms_sd,rtol=self.rtol_sdms) |
848 850 | |
849 - | |
850 851 | def testSC_intObs(self): |
851 852 | """Test skymodel + complist simulation: only observation (INT)""" |
852 853 | skymodel = self.inmodel |
853 854 | complist = self.incomp |
854 855 | compwidth = self.compwidth |
855 856 | setpointings = False |
856 857 | ptgfile = self.refpref_int + ".ptg.txt" |
857 858 | integration = "4s" |
858 859 | obsmode = "int" |
859 860 | antennalist = 'alma.out01.cfg' |
863 864 | setpointings=setpointings,ptgfile=ptgfile, |
864 865 | integration=integration,obsmode=obsmode, |
865 866 | antennalist=antennalist,totaltime=totaltime, |
866 867 | thermalnoise="",graphics=self.graphics) |
867 868 | self.assertTrue(res) |
868 869 | # compare output MS |
869 870 | currms = self.project + "/" + \ |
870 871 | self._get_data_prefix(antennalist,self.project)+".ms" |
871 872 | self._check_msstats(currms,self.refms_int,rtol=self.rtol_intms) |
872 873 | |
873 - | # def testSC_intLeak(self): |
874 - | # """Test skymodel + complist simulation: only leakage (INT)""" |
875 - | # skymodel = self.inmodel |
876 - | # complist = self.incomp |
877 - | # compwidth = self.compwidth |
878 - | # setpointings = False |
879 - | # obsmode = "" |
880 - | # leakage = 0.5 |
881 - | # res = simobserve(project=self.project,skymodel=skymodel, |
882 - | # complist=complist,compwidth=compwidth, |
883 - | # setpointings=setpointings,ptgfile=ptgfile, |
884 - | # obsmode=obsmode,thermalnoise="", |
885 - | # leakage=leakage,graphics=self.graphics) |
886 - | |
887 - | ##### TEMPORARY discarding due to the bug in simulator. |
888 - | # def testSC_sdAll(self): |
889 - | # """Test skymodel + complist simulation: single dish""" |
890 - | # skymodel = self.inmodel |
891 - | # complist = self.incomp |
892 - | # compwidth = self.compwidth |
893 - | # integration = "4s" |
894 - | # mapsize = ["60arcsec", "60arcsec"] |
895 - | # maptype = "square" |
896 - | # obsmode = "sd" |
897 - | # sdantlist = "aca.tp.cfg" |
898 - | # totaltime = "144s" |
899 - | # res = simobserve(project=self.project,skymodel=skymodel, |
900 - | # complist=complist,compwidth=compwidth, |
901 - | # setpointings=True,integration=integration, |
902 - | # mapsize=mapsize,maptype=maptype,obsmode=obsmode, |
903 - | # totaltime=totaltime,antennalist="",sdantlist=sdantlist, |
904 - | # thermalnoise="",graphics=self.graphics) |
905 - | # self.assertTrue(res) |
906 - | # # compare outputs |
907 - | # currpref = self.project + "/" + \ |
908 - | # self._get_data_prefix(sdantlist,self.project) |
909 - | # self._check_imstats(currpref+".skymodel.flat", self.refmodel) |
910 - | # self._check_ptgfile(currpref+".ptg.txt", self.refpref_sd+".ptg.txt") |
911 - | # self._check_msstats(currpref+".sd.ms",self.refms_sd,rtol=self.rtol_sdms) |
874 + | skip('Previously disabled for unknown reason.') . |
875 + | def testSC_intLeak(self): |
876 + | """Test skymodel + complist simulation: only leakage (INT)""" |
877 + | skymodel = self.inmodel |
878 + | complist = self.incomp |
879 + | compwidth = self.compwidth |
880 + | setpointings = False |
881 + | obsmode = "" |
882 + | leakage = 0.5 |
883 + | res = simobserve(project=self.project,skymodel=skymodel, |
884 + | complist=complist,compwidth=compwidth, |
885 + | setpointings=setpointings,ptgfile=ptgfile, |
886 + | obsmode=obsmode,thermalnoise="", |
887 + | leakage=leakage,graphics=self.graphics) |
888 + | |
889 + | skip('Previously .disabled with comment: "TEMPORARY discarding due to the bug in simulator. Pending CAS-5095."') |
890 + | def testSC_sdAll(self): |
891 + | """Test skymodel + complist simulation: single dish""" |
892 + | skymodel = self.inmodel |
893 + | complist = self.incomp |
894 + | compwidth = self.compwidth |
895 + | integration = "4s" |
896 + | mapsize = ["60arcsec", "60arcsec"] |
897 + | maptype = "square" |
898 + | obsmode = "sd" |
899 + | sdantlist = "aca.tp.cfg" |
900 + | totaltime = "144s" |
901 + | res = simobserve(project=self.project,skymodel=skymodel, |
902 + | complist=complist,compwidth=compwidth, |
903 + | setpointings=True,integration=integration, |
904 + | mapsize=mapsize,maptype=maptype,obsmode=obsmode, |
905 + | totaltime=totaltime,antennalist="",sdantlist=sdantlist, |
906 + | thermalnoise="",graphics=self.graphics) |
907 + | self.assertTrue(res) |
908 + | # compare outputs |
909 + | currpref = self.project + "/" + \ |
910 + | self._get_data_prefix(sdantlist,self.project) |
911 + | self._check_imstats(currpref+".skymodel.flat", self.refmodel) |
912 + | self._check_ptgfile(currpref+".ptg.txt", self.refpref_sd+".ptg.txt") |
913 + | self._check_msstats(currpref+".sd.ms",self.refms_sd,rtol=self.rtol_sdms) |
912 914 | |
913 915 | def testSC_intAll(self): |
914 916 | """Test skymodel + complist simulation: interferometer""" |
915 917 | skymodel = self.inmodel |
916 918 | complist = self.incomp |
917 919 | compwidth = self.compwidth |
918 920 | integration = "4s" |
919 921 | mapsize = ['20arcsec', '20arcsec'] |
920 922 | maptype = "ALMA" |
921 923 | obsmode = 'int' |