xrt icon indicating copy to clipboard operation
xrt copied to clipboard

Working with fixed seed in XRayTracer

Open acanbay opened this issue 1 year ago • 2 comments

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

acanbay avatar Nov 13 '22 22:11 acanbay