generate_test_photons¶
- marxs.utils.generate_test_photons(n=1)[source]¶
Generate a photon structure for testing.
This function returns a table of
nidentical photons with standard properties:position:
x=1; y=0; z=0direction: negative x-axis
energy: 1 keV
polarization: y-direction
This is useful for testing purposes.
Parameters¶
- nint
number of photons to generate
Returns¶
- photons
astropy.table.Table Table of
nidentical photons.