Skip to content
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

ImageFileCollection: summary is None #637

Closed
olebole opened this issue Aug 4, 2018 · 2 comments
Closed

ImageFileCollection: summary is None #637

olebole opened this issue Aug 4, 2018 · 2 comments

Comments

@olebole
Copy link
Member

olebole commented Aug 4, 2018

The "Working with a directory of images" test in image_management.rstfails for me, both in an automated test and also when running manually:

Python 3.6.6 (default, Jun 27 2018, 14:44:17) 
[GCC 8.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ccdproc import ImageFileCollection
>>> keys = ['imagetyp', 'object', 'filter', 'exposure']
>>> ic1 = ImageFileCollection('.', keywords=keys)
WARNING: no FITS files in the collection. [ccdproc.image_collection]
>>> ic1.summary.colnames
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'colnames'
>>> type(ic1.summary)
<class 'NoneType'>
  • astropy: version 3.0.2
  • numpy: version 1.14.3
  • ccdproc: 1.3.0.post1
@MSeifert04
Copy link
Contributor

Yeah that test depends on other tests writing a file in that directory. I always forgot to change that.

Thanks for bringing it up.

@mwcraig
Copy link
Member

mwcraig commented Jul 28, 2019

Add sample_data method to ImageFileCollection to populate a directory with files and use those for doc tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants