Commits
smcastro authored eb3d7c9c155
2880 2880 | |
2881 2881 | def helper_residual_update(self, deconvolver, tclean_args={}): |
2882 2882 | """Helper method to execute the residual update tests for non-multiterm images |
2883 2883 | deconvolver (string): name of the deconvolver to execute |
2884 2884 | """ |
2885 2885 | # these all have to be here for the mtmfs deconvolver |
2886 2886 | ismtmfs = False |
2887 2887 | ttnrange = 1 |
2888 2888 | ttnext = "" |
2889 2889 | ttnstr = "" |
2890 - | if deconvolver is 'mtmfs': |
2890 + | if deconvolver == 'mtmfs': |
2891 2891 | ismtmfs = True |
2892 2892 | ttnrange = 2 |
2893 2893 | ttnext = ".tt{0}" |
2894 2894 | ttnstr = ", tt{0}" |
2895 2895 | |
2896 2896 | # copy the measurement set and execute the first part of tclean (major cycle only) |
2897 2897 | tca={'vis':'refim_eptwochan.ms', 'imagename':self.img, 'imsize':10, 'cell':'8.0arcsec', 'niter':0, 'deconvolver':deconvolver} |
2898 2898 | for k in tclean_args.keys(): |
2899 2899 | tca[k] = tclean_args[k] |
2900 2900 | tca=self.prepData(tca['vis'], tclean_args=tca) |