File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 7
7
from ..fitslib import FITS , read_header , write
8
8
from ..header import FITSHDR
9
9
from ..hdu .base import INVALID_HDR_CHARS
10
- import fitsio
11
10
12
11
13
12
def test_free_form_string ():
14
13
with tempfile .TemporaryDirectory () as tmpdir :
15
14
fname = os .path .join (tmpdir , 'test.fits' )
16
15
with open (fname , 'w' ) as f :
17
- s = ("SIMPLE = T / Standard FITS " +
18
- "BITPIX = 16 / number of bits per data pixel " +
19
- "NAXIS = 0 / number of data axes " +
20
- "EXTEND = T / File contains extensions " +
21
- "PHOTREF = 'previous MegaCam' / Source: cum.photcat " +
22
- "EXTRA = 7 / need another line following PHOTREF " +
23
- "END "
16
+ s = ("SIMPLE = T / Standard FITS " + # noqa
17
+ "BITPIX = 16 / number of bits per data pixel " + # noqa
18
+ "NAXIS = 0 / number of data axes " + # noqa
19
+ "EXTEND = T / File contains extensions " + # noqa
20
+ "PHOTREF = 'previous MegaCam' / Source: cum.photcat " + # noqa
21
+ "EXTRA = 7 / need another line following PHOTREF " + # noqa
22
+ "END " # noqa
24
23
)
25
24
f .write (s + ' ' * (2880 - len (s )))
26
25
hdr = read_header (fname )
27
- assert ( hdr ['PHOTREF' ] == 'previous MegaCam' )
26
+ assert hdr ['PHOTREF' ] == 'previous MegaCam'
28
27
29
28
30
29
def test_add_delete_and_update_records ():
You can’t perform that action at this time.
0 commit comments