#NEWLINE# @ ValidateLarchPlugin #NEWLINE# def mu_chantler( element , energy , incoh = False , photo = False , _larch = None ) : #NEWLINE# #INDENT# 'returns x-ray mass attenuation coefficient, mu/rho, for a\n    selected element and input energy (or array of energies) in eV.\n    Data is from the Chantler tables.\n\n    Values returned are in units of cm^2/gr.\n\n    arguments\n    ---------\n    element:  atomic number, atomic symbol for element\n    energy:   energy or array of energies in eV\n    photo=True: flag to return only the photo-electric contribution\n    incoh=True: flag to return only the incoherent contribution\n\n    The default is to return total attenuation coefficient.\n    ' #NEWLINE# xdb = get_xraydb ( _larch ) #NEWLINE# col = 'mu_total' #NEWLINE# if photo : #NEWLINE# #INDENT# col = 'mu_photo' #NEWLINE# #UNINDENT# if incoh : #NEWLINE# #INDENT# col = 'mu_incoh' #NEWLINE# #UNINDENT# return xdb . _getChantler ( element , energy , column = col )