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

Add support for np.cbrt on cosmo arrays #212

Merged
merged 5 commits into from
Nov 30, 2024

Conversation

yuyttenhove
Copy link
Contributor

Now that unyt supports np.cbrt, since version 3.0.2, we can add support in swiftsimio as well.

We can then also get rid of the hack I used in the nearest neighbours slicing backend (which b.t.w. contained a bug in for the case where no volumes dataset is present in the gas dataset).

@yuyttenhove
Copy link
Contributor Author

yuyttenhove commented Nov 22, 2024

I also had to edit an unrelated conversion test that was using a protected attribute of the astropy cosmology object that appears to have been removed in the 7.0.0 release... (tests would fail with python 3.11 and 3.12)

Copy link
Member

@kyleaoman kyleaoman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting that unyt added support for this and for the PR :)

@kyleaoman kyleaoman merged commit c24ac52 into SWIFTSIM:master Nov 30, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants