skypyproject / skypy

SkyPy: A package for modelling the Universe.
BSD 3-Clause "New" or "Revised" License
117 stars 38 forks source link

BUG: `schechter_smf` callable input and docs #525

Closed philipp128 closed 2 years ago

philipp128 commented 2 years ago

Description

This PR enables alpha and m_star in schechter_smf being functions. Before it was prevented by the schechter_smf_mass function. To resolve I added a set of decorators to schechter_smf_mass. Closes #523.

Furthermore, I included schechter_smf in the docs where they weren't included before. Closes #522.

Checklist

philipp128 commented 2 years ago

I made the requested changes. I also added a sentence in the docs of alpha that it must return a scalar value if defined as a callable.