EfficiencyFile¶
- class marxs.optics.EfficiencyFile(filename, orders)[source] [edit on github]¶
Bases:
object
Select grating order from a probability distribution in a data file.
The file format supported by this class is as follows: The first colum contains energy values in keV, all remaining columns have the probability that a photons with this energy is diffracted into the respective order. The probabilities for each order do not have to add up to 1.
- Parameters:
- filenamestring
Path to the efficiency file.
- orderslist
List of orders in the file. Must match the number of columns with probabilities.
Methods Summary
__call__
(energies, *args)Call self as a function.
Methods Documentation
- __call__(energies, *args)[source] [edit on github]¶
Call self as a function.