These are chat archives for astropy/astropy

18th
May 2014
Adam Ginsburg
@keflavich
May 18 2014 10:28
Is it possible to modify a FITS file's header on disk without reading and writing the entire file? WCSTools' sethead can do this, I think (http://tdc-www.harvard.edu/wcstools/), but it's not obvious how to do that with astropy.io.fits
Thomas Robitaille
@astrofrog
May 18 2014 10:42
@keflavich - what about using fits.open with mode='append'?
Adam Ginsburg
@keflavich
May 18 2014 14:53
I'm having trouble getting RTFD set up with an affiliated package template: https://readthedocs.org/builds/hi-gal-sed-fitter/1385885/
@astrofrog, @eteq - either of you recognize the error?
File "/var/build/user_builds/hi-gal-sed-fitter/envs/latest/src/astropy/astropy/extern/configobj_py2/configobj.py", line 2109, in write
outfile.write(output)
TypeError: must be unicode, not str
Thomas Robitaille
@astrofrog
May 18 2014 15:07
hmm no
haven't seen that