skypy icon indicating copy to clipboard operation
skypy copied to clipboard

Halo mass partial functions have no __name__ attribute

Open rrjbca opened this issue 2 years ago • 0 comments

In halos/mass.py all of the partial functions do not have a __name__ attribute and therefore cannot be run in pipelines. This is raised as an error when building one of the examples in the documentation: https://readthedocs.org/projects/skypy/builds/19303339/

The name attribute should be set manually for each of these partial functions. See e.g. here: https://github.com/skypyproject/skypy/blob/969cb15f8ce2946304bc516898b25b43e1a9375d/skypy/power_spectrum/_halofit.py#L208

rrjbca avatar Jan 28 '23 14:01 rrjbca