Closed taldcroft closed 2 years ago
I added code to check this (in my local copy) and this brings up another issue.
The fields in the dtypes were set more or less following the previous astromon, but at some point we decided we do not care about being compatible. The following fields are currently not being set, so I should set them to default values, set them to proper values or remove the column altogether:
My inclination is cutting the column names that are not defined. Keep it simple and don't put in scaffolding that we don't obviously need.
If I'm understanding correctly this code worries me:
It basically says that the calling function can supply a
data
table that does not have the expected columns and the missing columns will silently be filled with zeros. I think that finding the expected columns should be required. The following code does this (I think):