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

TipsySnap._write_array_metafile(): write dtype correctly. #706

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

trquinn
Copy link
Contributor

@trquinn trquinn commented Feb 6, 2023

This also completes documentation to the _get_array_metafile() method.

Addresses issue #705

This also completes documentation to the _get_array_metafile() method.
@apontzen
Copy link
Member

apontzen commented Feb 7, 2023

Hmm, the tests on your patch are failing with errors like:

FAILED ramses_test.py::test_tipsy_conversion_for_cosmo_gas - AttributeError: type object 'numpy.float32' has no attribute 'name'

Your local installation as reported on #705 has an exceptionally old version of numpy (1.16) and python (3.7). I wonder if there is some breaking change? The lowest officially supported version of numpy is 1.21 (as per NEP29), and the tests run against 1.21 and 1.24. That said I'd be happy if there is a fix you can propose that makes it work on your 1.16 installation without also breaking newer installations.

@trquinn
Copy link
Contributor Author

trquinn commented Feb 7, 2023

This is always an issue on the big compute resources: they are very conservative in upgrading packages. Such that I can't build the latest version of pynbody on them.

@apontzen
Copy link
Member

apontzen commented Feb 7, 2023

pre-commit.ci autofix

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.

None yet

2 participants