tests/workflows/test_pipelines_mpc_arlexecute.py
def progress(self, res, tl_list, gt_list, it):
        """Write progress information
        
        Cannot use this if using Dask
        
        :param res: Residual image
        :param tl_list: Theta list
        :param gt_list: Gaintable list
        :param it: iteration
        :return:
        """
        
        import matplotlib.pyplot as plt
        plt.clf()
        for i in range(len(tl_list)):
            plt.plot(numpy.angle(tl_list[i].gaintable.gain[:, :, 0, 0, 0]).flatten(),
                     numpy.angle(gt_list[i]['T'].gain[:, :, 0, 0, 0]).flatten(),
                     '.')
        plt.xlabel('Current phase')
        plt.ylabel('Update to phase')
        # plt.xlim([-numpy.pi, numpy.pi])
        # plt.ylim([-numpy.pi, numpy.pi])
        plt.title("MPCCal iteration%d: Change in phase" % (it))
        plt.show()
        
        return tl_list
Write progress information
        
        Cannot use this if using Dask
        
        :param res: Residual image
        :param tl_list: Theta list
        :param gt_list: Gaintable list
        :param it: iteration
        :return:
        
Write progress information
Cannot use this if using Dask
Write progress information Cannot use this if using Dask
def progress(self, res, tl_list, gt_list, it):
        import matplotlib.pyplot as plt
        plt.clf()
        for i in range(len(tl_list)):
            plt.plot(numpy.angle(tl_list[i].gaintable.gain[:, :, 0, 0, 0]).flatten(),
                     numpy.angle(gt_list[i]['T'].gain[:, :, 0, 0, 0]).flatten(),
                     '.')
        plt.xlabel('Current phase')
        plt.ylabel('Update to phase')
        plt.title("MPCCal iteration%d: Change in phase" % (it))
        plt.show()
        return tl_list
def progress ( self , res , tl_list , gt_list , it ) : import matplotlib . pyplot as plt plt . clf ( ) for i in range ( len ( tl_list ) ) : plt . plot ( numpy . angle ( tl_list [ i ] . gaintable . gain [ : , : , 0 , 0 , 0 ] ) . flatten ( ) , numpy . angle ( gt_list [ i ] [ 'T' ] . gain [ : , : , 0 , 0 , 0 ] ) . flatten ( ) , '.' ) plt . xlabel ( 'Current phase' ) plt . ylabel ( 'Update to phase' ) plt . title ( "MPCCal iteration%d: Change in phase" % ( it ) ) plt . show ( ) return tl_list
Write progress information
Cannot use this if using Dask
Write progress information Cannot use this if using Dask
"""Write progress information
        
        Cannot use this if using Dask
        
        :param res: Residual image
        :param tl_list: Theta list
        :param gt_list: Gaintable list
        :param it: iteration
        :return:
        """ # plt.xlim([-numpy.pi, numpy.pi]) # plt.ylim([-numpy.pi, numpy.pi])
None
self
res
None
tl_list
None
gt_list
None
it
None