Skip to content

Commit

Permalink
Merge pull request #41 from paranoya/hotfix/tabularcem_zpowerlaw
Browse files Browse the repository at this point in the history
Hotfix: TabularCEM_ZPowerLaw missing parameter
  • Loading branch information
PabloCorcho authored Oct 14, 2024
2 parents 3d8b23d + 0149363 commit ffe271b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pst/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,11 @@ class TabularCEM_ZPowerLaw(MassPropMetallicityMixin, TabularCEM):
:class:`MassPropMetallicityMixin`
"""
def __init__(self, times, masses, alpha_powerlaw, ism_metallicity_today, **kwargs):
def __init__(self, times, masses, alpha_powerlaw, ism_metallicity_today,
mass_today, **kwargs):
self.ism_metallicity_today = ism_metallicity_today
self.alpha_powerlaw = alpha_powerlaw
self.mass_today = mass_today
# Create a dummy metallicity that is passed to the TabularCEM constructor
# but never used
metallicity = np.zeros(times.size)
Expand Down

0 comments on commit ffe271b

Please sign in to comment.