Skip to content

Move NDData I/O functions to astropy.io.fits.connect#1

Closed
astrofrog wants to merge 1 commit into
mwcraig:nddata-reorgfrom
astrofrog:nddata-io-tidy
Closed

Move NDData I/O functions to astropy.io.fits.connect#1
astrofrog wants to merge 1 commit into
mwcraig:nddata-reorgfrom
astrofrog:nddata-io-tidy

Conversation

@astrofrog

Copy link
Copy Markdown

This makes the following major changes:

  • Moves the I/O functions to astropy.io.fits.connect for consistency with Table (and now split that into connect_table and connect_nddata
  • Makes NDData inherit from IOMixin
  • Factor our common code in astropy.io.fits.connect
  • Convert header to an ordered dictionary (and remove special FITS keywords) as done for Table

I think NDData should actually inherit from IOMixin (as done here) and as a bonus it makes everything a lot simpler for the mix-in class.

If you agree, then merge, otherwise I think we should remove the I/O stuff from astropy#2905 for now.

Note that the I/O is undergoing a larger scale refactoring so this will change in future anyway, but for now this is the most consistent with what we do for Table.

@astrofrog astrofrog mentioned this pull request Dec 23, 2014
4 tasks
Comment thread astropy/nddata/io.py

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

@astrofrog astrofrog closed this Dec 24, 2014
mwcraig pushed a commit that referenced this pull request Jun 2, 2016
Finalizes attribute and frame naming conventions for AstrometricFrame and subclasses.
@astrofrog astrofrog deleted the nddata-io-tidy branch July 5, 2016 18:46
mwcraig pushed a commit that referenced this pull request Jun 9, 2017
fixes for test_wcs. Yields removed to get rid of deprecation warnings in pytest3 and be compatible with pytest4
mwcraig pushed a commit that referenced this pull request Jun 9, 2017
Remove unit checks that are irrelevant for the bug fix.
mwcraig pushed a commit that referenced this pull request Jun 9, 2017
mwcraig pushed a commit that referenced this pull request Mar 31, 2019
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