Skip to content

Commit

Permalink
Merge pull request #134 from carlosgg/issue_32
Browse files Browse the repository at this point in the history
Updated header to dictionary
  • Loading branch information
mwcraig committed Jul 11, 2014
2 parents 7071a58 + 14af086 commit 669daee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ccdproc/tests/test_ccddata.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def test_fromMEF(ccd_data, tmpdir):

def test_metafromheader(ccd_data):
hdr = fits.header.Header()
hdr.set('observer', 'Edwin Hubble')
hdr.set('exptime', '3600')
hdr['observer'] = 'Edwin Hubble'
hdr['exptime'] = '3600'

d1 = CCDData(np.ones((5, 5)), meta=hdr, unit=u.electron)
assert d1.meta['OBSERVER'] == 'Edwin Hubble'
Expand All @@ -130,8 +130,8 @@ def test_metafromdict():

def test_header2meta():
hdr = fits.header.Header()
hdr.set('observer', 'Edwin Hubble')
hdr.set('exptime', '3600')
hdr['observer'] = 'Edwin Hubble'
hdr['exptime'] = '3600'

d1 = CCDData(np.ones((5, 5)), unit=u.electron)
d1.header = hdr
Expand Down

0 comments on commit 669daee

Please sign in to comment.