pytrax/__RandomWalk__.py
def _chunk_walkers(self, walkers, num_chunks):
        r'''
        Helper function to divide the walkers into batches for pool-processing
        '''
        num_walkers = len(walkers)
        n = int(np.floor(num_walkers / num_chunks))
        l = walkers.tolist()
        chunks = [l[i:i + n] for i in range(0, len(l), n)]
        return chunks
r'''
        Helper function to divide the walkers into batches for pool-processing
        
r'''
Helper function to divide the walkers into batches for pool-processing
r ' ' ' Helper function to divide the walkers into batches for pool - processing
def _chunk_walkers(self, walkers, num_chunks):
        num_walkers = len(walkers)
        n = int(np.floor(num_walkers / num_chunks))
        l = walkers.tolist()
        chunks = [l[i:i + n] for i in range(0, len(l), n)]
        return chunks
def _chunk_walkers ( self , walkers , num_chunks ) : num_walkers = len ( walkers ) n = int ( np . floor ( num_walkers / num_chunks ) ) l = walkers . tolist ( ) chunks = [ l [ i : i + n ] for i in range ( 0 , len ( l ) , n ) ] return chunks
r'''
Helper function to divide the walkers into batches for pool-processing
r ' ' ' Helper function to divide the walkers into batches for pool - processing
r'''
        Helper function to divide the walkers into batches for pool-processing
        '''
self
walkers
num_chunks