dask-ms
dask-ms copied to clipboard
Incorrect data type used for column keyword
- dask-ms version: 0.2.2
- Python version: 3.6.8
- Operating System: Ubuntu via WSL
Description
I updated all my dependencies to the latest versions today and I now get the following error message when attempting to set up a write to column keywords.
RuntimeError: TableRecordRep::defineDataField - incorrect data type used for field FLAGSET_legacy.
The value currently in that field is an int, as is the value I am attempting to write to it.
What I Did
I get the same behaviour outside of my project. I ran the following via iPython:
from daskms import xds_from_ms, xds_to_table
xds, kwrds = xds_from_ms("C147_unflagged.MS/", columns=("BITFLAG"), column_keywords=True)
xds_to_table(xds, "C147_unflagged.MS/", columns="BITFLAG", column_keywords={"BITFLAG": kwrds["BITFLAG"]})
Note that the above example does not edit the keywords - it just attempts to rewrite the existing keywords but it still falls over. This seems to happen whenever I attempt to write to a keyword which already exists and contains an integer value, or when I attempt to change the type of the value in an existing keyword.