PEATSA/Core/Environment.py
def broadcast(self, data, process):
	
		'''Broadcasts data from process to all other nodes'''
		
		if Environment.isParallel:
			import pypar
			if self.rank() == process:
				#NOTE: pypar broadcast won't work even when setting vanilla
				#It always returns message trucated error.
				for i in range(pypar.size()):
					if i != self.rank():
						pypar.send(data, i)
			else:	
				data = pypar.receive(process)
		
		return data
Broadcasts data from process to all other nodes
Broadcasts data from process to all other nodes
Broadcasts data from process to all other nodes
def broadcast(self, data, process):
		if Environment.isParallel:
			import pypar
			if self.rank() == process:
				for i in range(pypar.size()):
					if i != self.rank():
						pypar.send(data, i)
			else:	
				data = pypar.receive(process)
		return data
def broadcast ( self , data , process ) : if Environment . isParallel : import pypar if self . rank ( ) == process : for i in range ( pypar . size ( ) ) : if i != self . rank ( ) : pypar . send ( data , i ) else : data = pypar . receive ( process ) return data
Broadcasts data from process to all other nodes
Broadcasts data from process to all other nodes
'''Broadcasts data from process to all other nodes''' #NOTE: pypar broadcast won't work even when setting vanilla #It always returns message trucated error.
self
data
process