These are chat archives for astropy/astropy

15th
Oct 2017
mdhoenig
@mdhoenig
Oct 15 2017 16:32
Aloha! Is there a simple way to get the number of binary extensions in a FITS file? Sort of like HDUList.info() but as a variable, not to stdout.
matrixbot
@matrixbot
Oct 15 2017 16:37
Cadair The only thing I can think of is either len() of the hdu list or checking type of the elements depending.