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

Seed runs with random number generator seeds #2

Open
xcthulhu opened this issue Aug 1, 2016 · 1 comment
Open

Seed runs with random number generator seeds #2

xcthulhu opened this issue Aug 1, 2016 · 1 comment

Comments

@xcthulhu
Copy link
Member

xcthulhu commented Aug 1, 2016

In order to have reliable tests, we need to be able to seed the random number generator.

As of last week LightCurve.py can now in principle be seeded, but the seed needs to be injected somehow.

Other modules also need this treatment.

@xcthulhu xcthulhu changed the title Seed runs with random number Generators Seed runs with random number generator seeds Aug 1, 2016
@Neoshika
Copy link

Neoshika commented Aug 5, 2016

Mostly for reference, here are all files/lines from the main SPyFFI folder which reference random or seed (any .py file not mentioned has no references):
Catalogs.py lines 85 (trying to set a seed), 108,242,272,276,277
CCD.py lines 811,833,1052
Cosmics.py None, but there is clearly some randomness going on in cosmical_realistic
defaults.py line 152 (setting a default seed=0)
Jitter.py lines 20(trying to set a seed), 36
Lightcurve.py lines 44,54,104,115,120,124,133
Noise.py line 188
Stamper.py lines 28, 62 (modifying the seed for each CCD), 85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants