Skip to content

Commit

Permalink
Update relations.py
Browse files Browse the repository at this point in the history
Fixing redz arguments, removed something that was added in error
  • Loading branch information
CayenneMatt authored Feb 5, 2024
1 parent 3cb8bdb commit b0e86dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions holodeck/relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,7 @@ def bulge_mass_frac(self, mstar):
def mbh_from_host(self, pop, scatter=None) -> ArrayLike:
host = self.get_host_properties(pop)
mbulge = host['mbulge']
redz=pop.redz
return self.mbh_from_mbulge(mbulge, redz=redz, scatter=scatter)
return self.mbh_from_mbulge(mbulge, redz=None, scatter=scatter)

def mbh_from_mbulge(self, mbulge, redz=None, scatter=None):
"""Convert from stellar-bulge mass to black-hole mass.
Expand Down Expand Up @@ -458,7 +457,7 @@ def __init__(self, *args, zplaw=None, **kwargs):
self._zplaw = zplaw
return

def mbh_from_host(self, pop, redz, scatter):
def mbh_from_host(self, pop, scatter):
host = self.get_host_properties(pop, copy=False)
mbulge = host['mbulge'] # shape (N, 2)
redz = host['redz'] # shape (N,)
Expand Down

0 comments on commit b0e86dc

Please sign in to comment.