xrt
xrt copied to clipboard
Working with fixed seed in XRayTracer
Hello,
Is there a seed definition feature in the GeometricSource method to work on the same beam all the time ? Normally, a different beam is generated in each run. What we want is to generate the same beam (phase spaces and energies of the photons in the beam must be the same) in every operation, as long as the parameters do not change.
I tried to define it as np.random.seed(seed_number)
in some scripts but it didn't work.
Thanks in advance