PEATSA/Core/Environment.py
def log(self, string):
	
		'''Logs a string to a specific file for the calling process
		
		The file is called ProcessorX.log where X is the rank of the process.
		The string is appended to this file'''

		from inspect import stack
	
		filename = os.path.join(self.outputDirectory, "Processor%d.log" % self.rank())
		stream = open(filename, 'a+')
		stream.write(string)	
		stream.write(' (Logged at line %d of %s at %s)' % (stack()[1][0].f_lineno, 
				stack()[1][0].f_code.co_filename, datetime.datetime.now().strftime('%H:%M:%S')))
		stream.write("\n")	
		stream.close()
Logs a string to a specific file for the calling process
		
		The file is called ProcessorX.log where X is the rank of the process.
		The string is appended to this file
Logs a string to a specific file for the calling process
The file is called ProcessorX.log where X is the rank of the process.
The string is appended to this file
Logs a string to a specific file for the calling process The file is called ProcessorX . log where X is the rank of the process . The string is appended to this file
def log(self, string):
		from inspect import stack
		filename = os.path.join(self.outputDirectory, "Processor%d.log" % self.rank())
		stream = open(filename, 'a+')
		stream.write(string)	
		stream.write(' (Logged at line %d of %s at %s)' % (stack()[1][0].f_lineno, 
				stack()[1][0].f_code.co_filename, datetime.datetime.now().strftime('%H:%M:%S')))
		stream.write("\n")	
		stream.close()
def log ( self , string ) : from inspect import stack filename = os . path . join ( self . outputDirectory , "Processor%d.log" % self . rank ( ) ) stream = open ( filename , 'a+' ) stream . write ( string ) stream . write ( ' (Logged at line %d of %s at %s)' % ( stack ( ) [ 1 ] [ 0 ] . f_lineno , stack ( ) [ 1 ] [ 0 ] . f_code . co_filename , datetime . datetime . now ( ) . strftime ( '%H:%M:%S' ) ) ) stream . write ( "\n" ) stream . close ( )
Logs a string to a specific file for the calling process
The file is called ProcessorX.log where X is the rank of the process.
Logs a string to a specific file for the calling process The file is called ProcessorX . log where X is the rank of the process .
'''Logs a string to a specific file for the calling process
		
		The file is called ProcessorX.log where X is the rank of the process.
		The string is appended to this file'''
self
string