Description
In the following code snippet I misremembered the keyword argument to return the filename, it was then likely interpreted as a header keyword filter, and hdus returned an empty list. It would be better if the there was a warning for each file that didn't contain the filter keyword.
Interestingly, the following example also caused the images.summary
not to show in a Jupyter notebook, despite it being called before images.hdus
. I.e., if you comment out the for loop, the summary shows, but does not if it's left in.
`
datadir='/where/your/data/is/'
path = Path(datadir)
images = ccdp.ImageFileCollection(path)
images.summary['file', 'imagetyp', 'filter', 'exptime', 'naxis1', 'naxis2']
for im,fname in images.hdus(imagetyp='Bias Frame',with_fname=True):
print(im.header['EXPTIME'])
`
In the above, of course, with_fname should have been return_fname