Skip to content

Commit

Permalink
Temporary addition of testing files (to be removed later)
Browse files Browse the repository at this point in the history
  • Loading branch information
taldcroft committed Feb 12, 2016
1 parent 5e7f8b6 commit 9408387
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test.py
@@ -0,0 +1,17 @@
import fitsio
from astropy.table import Table
import numpy as np

print('Reading X column test')
filename = 'test_x.fits'
data, header = fitsio.read(filename, header=True)
print(data.dtype)

print('Writing test')
filename = 'test_write.fits'
t = Table([[1], [2], [3]], dtype=[np.bool, np.uint8, np.int8]).as_array() # 'b1', 'u1', 'i1'
fitsio.write(filename, t)

data, header = fitsio.read(filename, header=True)
print(header)
print(data.dtype)

0 comments on commit 9408387

Please sign in to comment.