These are chat archives for astropy/astropy
conf.pythat imports something from another
conf.py(e.g. the affiliated package template). A line like
from astropy_helpers.sphinx.conf import *will overwrite a
automodsumm_inherited_membersdefined at the top, because
automodsumm_inherited_membersdefined it it. But that’s not special to RTD, that’s just a standard Python import… But maybe it’s something weird about how/what version of the helpers RTD is using?
t = table.Table.read(‘fitswithunits.fits')
table_to_hdubut it does not transfer the units correctly (from a Table to the BinTableHDU). The HDU's header does not have the TUNITn keywords.
.unitattribute on the columns after having created the BinTableHDU
t.write(’test.fits’)- the resulting fits file does have TUNITn keywords)
t.writeis a different code,
table_to_hduwas added recently and is useful if you need create a fits with multiple extensions
TUNIT1appears after calling
from astropy_helpers.sphinx.conf import *line. But I might have tried that - good to know I should avoid it. :smile: