Skip to content

Commit

Permalink
Swap rng_seed with rng instance in treecorr config
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkannawadi committed Apr 19, 2024
1 parent 85baccf commit 00d0feb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,10 @@ def __call__(self, data: KeyedData, **kwargs) -> KeyedData:

treecorr_config_dict = self.treecorr.toDict()

# Swap rng_seed with an rng instance in treecorr config.
rng = np.random.RandomState(treecorr_config_dict.pop("rng_seed"))
treecorr_config_dict["rng"] = rng

# Pass the appropriate arguments to the correlator and build a dict
rhoStats: Mapping[str, treecorr.BinnedCorr2] = {}
for rhoIndex in range(1, 6):
Expand Down

0 comments on commit 00d0feb

Please sign in to comment.