Skip to content

Commit

Permalink
Merge pull request #128 from abacusorg/sandydev
Browse files Browse the repository at this point in the history
fix reseed bug
  • Loading branch information
SandyYuan authored Jan 16, 2024
2 parents 11419bc + 54a419c commit 9fe189d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion abacusnbody/hod/abacus_hod.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def run_hod(self, tracers = None, want_rsd = True, want_nfw = False, NFW_draw =
if len(self.halo_data['hveldev'].shape) == 1:
self.halo_data['hveldev'] = r20*self.halo_data['hsigma3d']/np.sqrt(3)
else:
self.halo_data['hveldev'] = r2*self.halo_data['hsigma3d']/np.sqrt(3)
self.halo_data['hveldev'] = r2*np.repeat(self.halo_data['hsigma3d'], 3).reshape((-1, 3))/np.sqrt(3)
self.particle_data['prandoms'] = r3

print("gen randoms took, ", time.time() - start)
Expand Down

0 comments on commit 9fe189d

Please sign in to comment.