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

Astropy issues deprecation warning with CompImageHDU #141

Closed
timj opened this issue Jun 20, 2023 · 2 comments
Closed

Astropy issues deprecation warning with CompImageHDU #141

timj opened this issue Jun 20, 2023 · 2 comments

Comments

@timj
Copy link

timj commented Jun 20, 2023

healsparse/fits_shim.py:236: AstropyDeprecationWarning: The tile_size argument has been deprecated. Use tile_shape instead, but note that this should be given in the reverse order to tile_size (tile_shape should be in Numpy C order).
   hdu = fits.CompImageHDU(data=sparse_map, header=fits.Header(),

Looks like it was deprecated in astropy 5.3 in astropy/astropy#14428

@erykoff
Copy link
Collaborator

erykoff commented Jun 20, 2023

So I need a version check to support older astropy. Or a try/except with the newer API. Lovely.

@erykoff
Copy link
Collaborator

erykoff commented Aug 14, 2023

Fixed on #142

@erykoff erykoff closed this as completed Aug 14, 2023
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

No branches or pull requests

2 participants