I have a TimeSeries
table with two columns that I’ve added from numpy arrays.
I print out the types of the columns:
for col in ts.columns:
print(col)
print(type(ts[col]))
which outputs:
time
<class 'astropy.table.column.Column'>
test_var0
<class 'astropy.table.column.Column'>
I then set the unit for the test column:
ts['test_var0'].unit = 'm'
This changes the default type returned when I run the loop a second time:
time
<class 'astropy.table.column.Column'>
test_var0
<class 'astropy.units.quantity.Quantity'>
Is this the intended behavior? I would like ts['test_var0']
to return a Column
still rather than Quantity
.