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

added logical seed in ew.py for reproducibility #1

Merged
merged 1 commit into from
Feb 25, 2025
Merged

Conversation

abhi0395
Copy link
Owner

in ew.measure_absorber_properties_double_gaussian(), we should add random seed to ensure the reproducibility of the absorber systems, while maintaining unique random initial condition for fitting absorbers.

This can be done using the absorber redshift, by adding a line np.random.seed(int(absorber_redshift[k] * 1e6) % 2**32). I checked this and does the task.

@abhi0395 abhi0395 merged commit 0a33a11 into main Feb 25, 2025
4 checks passed
@abhi0395 abhi0395 deleted the random_seed branch February 25, 2025 20:41
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.

1 participant