def step(self):
        """Do a single iteration over all cbpdn and ccmod steps. Those that
        are not coupled on the K axis are performed in parallel."""

        # If the nproc parameter of __init__ is zero, just iterate
        # over the K consensus instances instead of using
        # multiprocessing to do the computations in parallel. This is
        # useful for debugging and timing comparisons.
        if self.nproc == 0:
            for k in range(self.xstep.cri.K):
                step_group(k)
        else:
            self.pool.map(step_group, range(self.xstep.cri.K))

        ccmod_ystep()
        ccmod_ustep()
        cbpdn_setdict()
def step ( self ) : if self . nproc == 0 : for k in range ( self . xstep . cri . K ) : step_group ( k ) else : self . pool . map ( step_group , range ( self . xstep . cri . K ) ) ccmod_ystep ( ) ccmod_ustep ( ) cbpdn_setdict ( )
Do a single iteration over all cbpdn and ccmod steps. Those that
        are not coupled on the K axis are performed in parallel.