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

Change how random seeds work in phase screens, fix for #61 #81

Merged
merged 2 commits into from
Mar 22, 2022

Conversation

ojdf
Copy link
Contributor

@ojdf ojdf commented Mar 21, 2022

Changed from using numpy.random.seed to numpy.random.default_rng(seed) , which creates a generator object that is used to generate the random numbers.

Passing a seed to an infinite phase screen now results in deterministic behaviour when add_rows() is called.

@matthewtownson matthewtownson linked an issue Mar 22, 2022 that may be closed by this pull request
@matthewtownson matthewtownson merged commit cec3743 into AOtools:main Mar 22, 2022
@ojdf ojdf deleted the fix_random_seed branch March 23, 2022 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Random seeds in infinite phase screens do not work
2 participants