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'm trying to generate a file out of a single Column object.
Expected behavior
A file with a single columns should be generated.
Actual behavior
The elements in the column are converted to columns.
Steps to Reproduce
importnumpyasnpfromastropy.ioimportasciifromastropy.tableimportTable, Columnaa=np.random.uniform(0., 1., 100)
cc=Column(aa, name='data')
# Does not workascii.write(cc, 'data.dat')
# Converting to table has the same issuett=Table(cc)
It does indeed. It also works with ascii.write([cc], 'data.dat'). I think this behaviour is a bit non-intuitive, but there's no bug here so closing. Thank you!
Description
I'm trying to generate a file out of a single
Column
object.Expected behavior
A file with a single columns should be generated.
Actual behavior
The elements in the column are converted to columns.
Steps to Reproduce
System Details
Linux-5.5.0-050500-generic-x86_64-with-glibc2.10
Python 3.8.5 (default, Sep 4 2020, 07:30:14)
[GCC 7.3.0]
Numpy 1.19.1
astropy 4.0.1.post1
Scipy 1.5.2
Matplotlib 3.3.1
The text was updated successfully, but these errors were encountered: