Compound¶
-
class
roentgen.absorption.
Compound
(materials)[source] [edit on github]¶ Bases:
object
- An object which provides the x-ray properties of a compound (i.e.
- many materials).
Parameters: materials : list
A list of Material objects
Examples
>>> from roentgen.absorption.material import Material, Compound >>> import astropy.units as u >>> detector = Compound([Material('Pt', 5 * u.um), Material('cdte', 500 * u.um)])
Methods Summary
absorption
(energy)Provides the absorption fraction (0 to 1). transmission
(energy)Provide the transmission fraction (0 to 1). Methods Documentation
-
absorption
(energy)[source] [edit on github]¶ Provides the absorption fraction (0 to 1).
Parameters: energy :
astropy.units.Quantity
An array of energies in keV.
-
transmission
(energy)[source] [edit on github]¶ Provide the transmission fraction (0 to 1).
Parameters: energy :
astropy.units.Quantity
An array of energies in keV