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
the file that is being sent to this method is sometimes not a FITS file but a plant text file that contains header keywords. This method could use: fits.Header.fromtextfile() instead of fits.open() in those cases.
@SharonGoliath noticed this issue when dealing with NGVS data. Perhaps a try/except is the best solution?
try:
fits.open(xxxxx)
except OSError as ex:
fits.Header.fromtextfile(xxxx)
The text was updated successfully, but these errors were encountered:
caom2tools/caom2utils/caom2utils/fits2caom2.py
Line 3724 in 8886a86
the file that is being sent to this method is sometimes not a FITS file but a plant text file that contains header keywords. This method could use: fits.Header.fromtextfile() instead of fits.open() in those cases.
@SharonGoliath noticed this issue when dealing with NGVS data. Perhaps a try/except is the best solution?
The text was updated successfully, but these errors were encountered: