#NEWLINE# def getLa( self , energy , NumLayer = 1.0 ) : #NEWLINE# #INDENT# temp = xray_delta_beta ( self . composition , self . density , energy , _larch = _larch ) #NEWLINE# self . delta = temp [ 0 ] #NEWLINE# self . beta = temp [ 1 ] #NEWLINE# self . la = temp [ 2 ] #NEWLINE# if ( NumLayer < 0 ) : #NEWLINE# #INDENT# NumLayer = 0 #NEWLINE# #UNINDENT# self . trans = math . exp ( ( ( ( - NumLayer . thickness ) * NumLayer ) / self . la ) ) #NEWLINE# self . absrp = ( 1 - self . trans )