Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting the seed of random generators #905

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

lfarv
Copy link
Contributor

@lfarv lfarv commented Mar 5, 2025

Following #879, we introduce an optional seed keyword argument in

  • lattice_track (python)
  • linepass, ringpass (Matlab)

When provided, this will reset the seed of the two C random generators. If omitted, the sequences of random numbers will continue as before: no change.

@lfarv lfarv added enhancement Matlab For Matlab/Octave AT code Python For python AT code C For C code / pass methods labels Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C For C code / pass methods enhancement Matlab For Matlab/Octave AT code Python For python AT code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant