You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A colleague reports constructing a FITS file with an invalid header card (ABCDEFGH = unquotedstringliteral ) and seeing unexpected behavior.
On opening:
In [6]: hdul = fits.open('/user/vbajaj/1141601ai_dkc.fits')
WARNING: The following header keyword is invalid or follows an unrecognized non-standard convention:
ABCDEFGH = unquotedstringliteral [astropy.io.fits.card]
@josePhoenix - As you pointed the card is marked as invalid and so it's ignored from the following checks. Which makes sense, since it is useless to verify something that is not valid, and you already get the warning when opening the file. Do you think it would be useful to have another warning/exception when verifying it ?
A colleague reports constructing a FITS file with an invalid header card (
ABCDEFGH = unquotedstringliteral
) and seeing unexpected behavior.On opening:
However, when calling
hdul.verify()
:Calling
_verify()
on theCard
itself similarly does not produce anything. It seems from the comments in the source that returning an empty error list is intentional: https://github.com/astropy/astropy/blob/master/astropy/io/fits/card.py#L1048-L1058Thoughts?
(perhaps relevant to #3668)
The text was updated successfully, but these errors were encountered: