Skip to content

Conversation

@astrofrog
Copy link
Member

This makes it so that we can actually now compare any kind of data files, and tests can return not just Numpy arrays but anything the format class understands (hence a FITS HDU for the FITS format). Maybe in the long term it would make sense to rename this package pytest-datadiff. In principle it could be used for any kind of data file, and including tabular or gridded data.

cc @bsipocz, since this is needed for your reproject PR. I'll leave this open for a day or so in case you want to review it!

Copy link
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@astrofrog - This looks good to me.

@staticmethod
def read(filename):
from astropy.io import fits
return fits.getdata(filename)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to change this in this PR, but I think it would be nice to be able to compare multi extension fits in the future, or at least be able to loop through the extensions.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree!

@bsipocz
Copy link
Member

bsipocz commented Nov 26, 2016

I wonder whether you can switch off CI for pushes as your appveyor seems to have a significant backlog by running everything twice.

@astrofrog
Copy link
Member Author

I wonder whether you can switch off CI for pushes as your appveyor seems to have a significant backlog by running everything twice.

Should be fixed now

@astrofrog astrofrog merged commit 27ebe08 into master Nov 28, 2016
@astrofrog astrofrog deleted the fits-hdu-support branch March 10, 2021 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants