Ghost/Create_epsmap.py
def slave_wait(self):
        """Wait for messages from the master"""
        while True:
            import pypar
            source=0
            command=pypar.receive(source)
            self.cube_eps=command[0].copy()
            cube=command[1]
            if cube<0:
                print 'Slave %d exiting' %self.myid
                import sys
                sys.exit(0)
            score=self.calc_cube(cube)
            pypar.send(score,0)
        return
Wait for messages from the master
Wait for messages from the master
Wait for messages from the master
def slave_wait(self):
        while True:
            import pypar
            source=0
            command=pypar.receive(source)
            self.cube_eps=command[0].copy()
            cube=command[1]
            if cube<0:
                print 'Slave %d exiting' %self.myid
                import sys
                sys.exit(0)
            score=self.calc_cube(cube)
            pypar.send(score,0)
        return
def slave_wait ( self ) : while True : import pypar source = 0 command = pypar . receive ( source ) self . cube_eps = command [ 0 ] . copy ( ) cube = command [ 1 ] if cube < 0 : print 'Slave %d exiting' % self . myid import sys sys . exit ( 0 ) score = self . calc_cube ( cube ) pypar . send ( score , 0 ) return
Wait for messages from the master
Wait for messages from the master
"""Wait for messages from the master"""
self