PEATSA/Core/Environment.py
def output(self, string, stream=None, rootOnly=True):
	
		'''Prints a string to a stream if the calling process is the root process
		
		Parameters:
			string: The string to be written
			stream: The stream to write to. If None or not specified defaults to stdout.
			rootOnly: If True only the root process writes the string. Default True.'''
	
		if rootOnly is True and self.isRoot() is False:
			return
		
		if stream is None:
			print string
			#With verbose on flush everything immediately
			if self.verbose:
				sys.stdout.flush()	
		else:
			stream.write(string)
			if self.verbose:
				stream.flush()
Prints a string to a stream if the calling process is the root process
		
		Parameters:
			string: The string to be written
			stream: The stream to write to. If None or not specified defaults to stdout.
			rootOnly: If True only the root process writes the string. Default True.
Prints a string to a stream if the calling process is the root process
Prints a string to a stream if the calling process is the root process
def output(self, string, stream=None, rootOnly=True):
		if rootOnly is True and self.isRoot() is False:
			return
		if stream is None:
			print string
			if self.verbose:
				sys.stdout.flush()	
		else:
			stream.write(string)
			if self.verbose:
				stream.flush()
def output ( self , string , stream = None , rootOnly = True ) : if rootOnly is True and self . isRoot ( ) is False : return if stream is None : print string if self . verbose : sys . stdout . flush ( ) else : stream . write ( string ) if self . verbose : stream . flush ( )
Prints a string to a stream if the calling process is the root process
Prints a string to a stream if the calling process is the root process
'''Prints a string to a stream if the calling process is the root process
		
		Parameters:
			string: The string to be written
			stream: The stream to write to. If None or not specified defaults to stdout.
			rootOnly: If True only the root process writes the string. Default True.''' #With verbose on flush everything immediately
self
string
The string to be written
The string to be written
stream
The stream to write to. If None or not specified defaults to stdout.
The stream to write to . If None or not specified defaults to stdout .
rootOnly
If True only the root process writes the string. Default True.
If True only the root process writes the string . Default True .