Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 9, 2024
1 parent ccea5f8 commit 5eab187
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions abacusnbody/hod/abacus_hod.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ def __init__(self, sim_params, HOD_params, clustering_params = None, chunk=-1, n
self.shearbins = np.linspace(-0.5, 0.5, 101)

self.halo_mass_func, edges = np.histogramdd(
np.vstack((np.log10(self.halo_data['hmass']),
self.halo_data.get('hdeltac', np.zeros(len(self.halo_data['hmass']))),
np.vstack((np.log10(self.halo_data['hmass']),
self.halo_data.get('hdeltac', np.zeros(len(self.halo_data['hmass']))),
self.halo_data.get('hfenv', np.zeros(len(self.halo_data['hmass']))))).T,
bins = [self.logMbins, self.deltacbins, self.fenvbins],
weights = self.halo_data['hmultis'])
Expand All @@ -168,9 +168,9 @@ def __init__(self, sim_params, HOD_params, clustering_params = None, chunk=-1, n
assert 'hdeltac' in self.halo_data.keys()
if self.want_shear:
assert 'hshear' in self.halo_data.keys()

self.halo_mass_func_wshear, edges = np.histogramdd(
np.vstack((np.log10(self.halo_data['hmass']),
np.vstack((np.log10(self.halo_data['hmass']),
self.halo_data.get('hdeltac', np.zeros(len(self.halo_data['hmass']))),
self.halo_data.get('hfenv', np.zeros(len(self.halo_data['hmass']))),
self.halo_data.get('hshear', np.zeros(len(self.halo_data['hmass']))))).T,
Expand Down

0 comments on commit 5eab187

Please sign in to comment.