generate_test_photons

marxs.utils.generate_test_photons(n=1)[source] [edit on github]

Generate a photon structure for testing.

This function returns a table of n identical photons with standard properties:

  • position: x=1; y=0; z=0

  • direction: negative x-axis

  • energy: 1 keV

  • polarization: y-direction

This is useful for testing purposes.

Parameters:
nint

number of photons to generate

Returns:
photonsastropy.table.Table

Table of n identical photons.