Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Halo mass partial functions have no __name__ attribute #595

Open
rrjbca opened this issue Jan 28, 2023 · 0 comments
Open

Halo mass partial functions have no __name__ attribute #595

rrjbca opened this issue Jan 28, 2023 · 0 comments
Assignees
Labels
bug Something isn't working high priority issues needing immediate attention module: halos

Comments

@rrjbca
Copy link
Contributor

rrjbca commented Jan 28, 2023

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:

halofit_smith.__name__ = "halofit_smith"

@rrjbca rrjbca added bug Something isn't working module: halos high priority issues needing immediate attention labels Jan 28, 2023
@rrjbca rrjbca added this to To do in Dark Matter Halos via automation Jan 28, 2023
@rrjbca rrjbca self-assigned this Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority issues needing immediate attention module: halos
Projects
Development

No branches or pull requests

1 participant