Skip to content

Commit

Permalink
Merge pull request #110 from nanograv/dev-evolving
Browse files Browse the repository at this point in the history
Dev evolving
  • Loading branch information
lzkelley authored Apr 17, 2024
2 parents 4ee3c1a + 736b9ec commit 8c4fe90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion holodeck/host_relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ def mbh_from_mbulge(self, mbulge, redz, scatter):
# NOTE: this will work for (N,) ==> (N,) or (N,) ==> (N,X)
try:
redz = np.broadcast_to(redz, mbulge.T.shape).T
except TypeError:
except:
redz = redz
zmamp = self._mamp * (1.0 + redz)**self._zplaw
mbh = _log10_relation(mbulge, zmamp, self._mplaw, scatter_dex, x0=self._mref)
Expand Down
2 changes: 1 addition & 1 deletion holodeck/sams/sam.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def static_binary_density(self):
# ==> (dMstar-tot/dMbh-tot) = (dMstar-pri / dMbh-pri) * (dMbh-pri/dMbh-tot) / (dMstar-pri / dMstar-tot)
# = (dMstar-pri / dMbh-pri) * (1 / (1+q_bh)) / (1 / (1+q_star))
# = (dMstar-pri / dMbh-pri) * ((1+q_star) / (1+q_bh))
dmstar_dmbh_pri = self._mmbulge.dmstar_dmbh(mstar_pri) # [unitless]
dmstar_dmbh_pri = self._mmbulge.dmstar_dmbh(mstar_pri, redz=redz) # [unitless]
qterm = (1.0 + mstar_rat) / (1.0 + self.mrat[np.newaxis, :, np.newaxis])
dmstar_dmbh = dmstar_dmbh_pri * qterm

Expand Down

0 comments on commit 8c4fe90

Please sign in to comment.