Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG fix galsim random seeding again
Browse files Browse the repository at this point in the history
beckermr authored Mar 26, 2024
1 parent cc0df22 commit 7ee3329
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions montara/des_tile.py
Original file line number Diff line number Diff line change
@@ -626,6 +626,11 @@ def setup(self, config, base, file_num, logger):
if not isinstance(rs, list):
first = galsim.config.ParseValue(
base['image'], 'random_seed', base, int)[0]

# launder through the RNG a few times to randomize
for _ in range(10):
first = galsim.BaseDeviate(first).raw()

base['image']['random_seed'] = []
# The first one is the original random_seed specification,
# used for noise, since that should be different for each band,

0 comments on commit 7ee3329

Please sign in to comment.