propagate¶
- marxs.simulator.propagate(photons, d)[source] [edit on github]¶
Move photons along the rays.
This function moves all photons in the photon list by a specified amount forwards or backwards along the ray. Normally, photons only move forward in the simulation, but sometimes it can be useful to reset the photons to an earlier position, e.g. to see how the pattern on a detector changes for different detector positions.
- Parameters:
- photons
astropy.table.Table
Photon table with pos and dir entries
- dfloat
Distance for the photons to move. Negative values move photons backwards.
- photons
- Returns:
- photons
astropy.table.Table
Photon table with pos and dir entries
- photons