Closed jianyangli closed 1 year ago
Again, @mkelley , I didn't follow the development of DataClass
from the beginning, so I'm not sure if this should be fixed or it is an allowed behavior. Please advise. If a bug, I can work to fix it. Thanks.
Good find, that is a problem!
OK, it should be an easy fix, and I'll do it.
High-level problem description Looks like the current implementation of
DataClass.__setitem__
simply refers toself.table.__setitem__
without checking the column names. This would potentially cause alternative volume names as defined inConf.fieldnames_info
to be confused with each other.What did you do?
I suspect this should be fixed, so that the column names will be translated first before being passed to
self.table.__setitem__
.Provide information on your environment: operating system and version: [Linux (which distribution?), MacOS, Win] sbpy version: 0.3.1 astropy version: numpy version: