Skip to content

Commit

Permalink
default r=0
Browse files Browse the repository at this point in the history
  • Loading branch information
msyriac committed Feb 12, 2025
1 parent 1e4dc54 commit d7fccce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hmvec/cosmology.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def _init_cosmology(self,params,halofit):
pass

YHe = params['YHe'] if 'YHe' in params.keys() else None
rTensors = params['r'] if 'r' in params.keys() else None
rTensors = params['r'] if 'r' in params.keys() else 0.
TCMB = params['TCMB'] if 'TCMB' in params.keys() else None
if TCMB is None:
TCMB = params['T_cmb'] if 'T_cmb' in params.keys() else None
Expand Down
1 change: 1 addition & 0 deletions hmvec/hmvec.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ def add_hod(self,name,mthresh=None,ngal=None,corr="max",

self.hods[name] = {}
if ngal is not None:
ngal = np.asarray(ngal)
try: assert ngal.size == self.zs.size
except:
raise ValueError("ngal has to be a vector of size self.zs")
Expand Down

0 comments on commit d7fccce

Please sign in to comment.