(name="X",format="I",array=pix),fits.Column(name="WAVELENGTH",format="E",unit=wav.unit.to_string(format="fits"),array=wav.value),fits.Column(name="TRACE",format="E",array=trace)])hdulist=fits.HDUList([fits.PrimaryHDU(),fits.BinTableHDU.from_columns(coldefs)])t=QTable.read(hdu...
The issue there is that np.str_ column name dtypes cannot be serialized to a FITS table (maybe that's a separate bug?) I'm not sure about that part. I think what you mean is that therepr"np.str_('col2')"cannot be serialized, and in that case I suspect it might be caused by ...
(I also truncated the column descriptions, as you did) 👍 1 Contributor saimn commented Aug 3, 2019 This should be better managed, but I'm not sure where. It could be with an helper function in astroquery, for FITS writing, or maybe in the Table FITS writer but it should not tr...
astropy.table Issue a warning when assigning a string value to a column and the string gets truncated. This can occur because numpy string arrays are fixed-width and silently drop characters which do not fit within the fixed width. [#5624, #5819] Added functionality to allow astropy.units....
astropy.io.votable astropy.modeling astropy.nddata astropy.samp astropy.stats astropy.table astropy.tests astropy.time astropy.uncertainty astropy.units astropy.wcs astropy.utils astropy.visualization astropy.wcs Bug Fixes astropy.config astropy.constants astropy.convolution astropy.coordinates ...