You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot tell if this is a cfitsio error or something else, but here it is:
import fitsio
import numpy as np
d = np.ones(1, dtype=[("blah", "S35000")])
fitsio.write("test.fits", d, clobber=True)
produces
Traceback (most recent call last):
File "test_fitsio_bug.py", line 6, in <module>
fitsio.write("test.fits", d, clobber=True)
File "/gpfs02/astro/workarea/beckermr/miniconda3/envs/des-y6a2-test2/lib/python3.8/site-packages/fitsio/fitslib.py", line 396, in write
fits.write(
File "/gpfs02/astro/workarea/beckermr/miniconda3/envs/des-y6a2-test2/lib/python3.8/site-packages/fitsio/fitslib.py", line 702, in write
self.write_table(data, units=units,
File "/gpfs02/astro/workarea/beckermr/miniconda3/envs/des-y6a2-test2/lib/python3.8/site-packages/fitsio/fitslib.py", line 1097, in write_table
self[-1].write(data, names=names)
File "/gpfs02/astro/workarea/beckermr/miniconda3/envs/des-y6a2-test2/lib/python3.8/site-packages/fitsio/hdu/table.py", line 278, in write
self._FITS.write_columns(
OSError: FITSIO status = 236: column exceeds width of table
The text was updated successfully, but these errors were encountered:
If its a limit in cfitsio then we should probably just provide a better error message. This one makes it seem like there is an inconsistency in the data
I cannot tell if this is a cfitsio error or something else, but here it is:
produces
The text was updated successfully, but these errors were encountered: