Stack¶
-
class
roentgen.absorption.
Stack
(materials)[source]¶ Bases:
object
An object which enables the calculation of the x-ray transmission and absorption of a stack of materaials. This object is created automatically when
Material
objects are added together.Parameters: materials (list) – A list of Material
objectsExamples
>>> from roentgen.absorption.material import Material, Stack >>> import astropy.units as u >>> detector = Stack([Material('Pt', 5 * u.um), Material('cdte', 500 * u.um)]) >>> optical_path = Material('mylar', 50 * u.micron) + Material('Al', 1 * u.mm)
Methods Summary
absorption
(energy)Provides the absorption fraction (0 to 1). transmission
(energy)Provides the transmission fraction (0 to 1). Methods Documentation
-
absorption
(energy)[source]¶ Provides the absorption fraction (0 to 1).
Parameters: energy ( astropy.units.Quantity
) – An array of energies in keV.Raises: ValueError
– If energy is outside of the interpolation range of 1 keV to 20 MeV.
-
transmission
(energy)[source]¶ Provides the transmission fraction (0 to 1).
Parameters: energy ( astropy.units.Quantity
) – An array of energies in keVRaises: ValueError
– If energy is outside of the interpolation range of 1 keV to 20 MeV.
-