-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
HDUList Cannot Handle EXTVER #6453
Comments
For more info, I also see this problem in Astropy 2.0.1 with Python 3.5. The problem is that
None of the workaround seems elegant nor intuitive. |
Would it make sense to accept a |
I tried forcing |
Another possibility is to have an additional |
Yes, that's why I asked if that would be "useful" :) It's much easier than trying to keep track of the names of all HDUs in a HDUList. |
I would expect the HDUList to add the appropriate extver based on the order they appear in the list if the exact ver is not specified. |
Another thought I had was that maybe the |
Given that the name and ver of the HDUs are mutable it's probably not a good idea for the |
Same problem in astropy 1.2 as well, so maybe the |
For the record, RAW images from HST already have |
I'll see if allowing to pass in |
Here's a working example:
I've heard an explanation why |
Oh, that would be bad, would you mind also adding that as a comment in #6454? Also do you have a rough idea where you could have heard that? I searched through astropy-dev and github but I couldn't find anything (yet). |
@embray ? 🙏 |
I was thinking that |
Closing now that #6454 was merged. |
Sorry I keep missing a lot of these pings. I'd like to start paying more attention again when I can. No promises though. But if there's ever anything that definitely needs my help (and this one clearly didn't) don't hesitate to e-mail me either. |
I am trying to create a multi extension .fits file that has extensions with the same name. I expected that the
EXTVER
would be populated when the HDUList is made because I have no way of making the version of the ImageHDU that I can see in http://docs.astropy.org/en/stable/io/fits/api/images.html#images . Here is an example of my issue in Python 2.7 using astopy 1.3.3:Gives:
Is this expected behavior? It seems a little confusing that I would need to add the extension version information after the fact.
The text was updated successfully, but these errors were encountered: