-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dimension names not saving correctly when adding non-standard columns #334
Comments
This may have been fixed in the latest release. You can get around it by passing a schema when reading eg.
Note the use of |
Try replace the dataset = xds_from_ms(ms) Interestingly, a heuristic was recently added to try and plug this gap: |
Thanks @landmanbester :-) |
IIRC this means that SORT_COLUMNS has a relatively unused data type like |
Thanks for the quick response. |
Not that I know of but I wanted to check in case it causes issues that I am unaware of. |
The schema is implicit in the xarray datasets you pass to
|
Ok I see now. It doesn't matter about using |
@sjperkins @landmanbester Thanks again for the quick response! |
Yes, another way of understanding this is that those dimension names are inferred from the MSv2 spec. For non-standard columns, dask-ms does some "inference". |
Description
I would like to add a non standard column with
dims=("row", "chan", "corr")
and save this to a MS.When doing this and reading the MS file again the
dims
come out as('row', 'COLNAME-1', 'COLNAME-2')
as opposed to('row', 'chan', 'corr')
.What I Did
Output
Sidenote
Is
Data type: 24, SORT_COLUMNSnot handled
an issue?The text was updated successfully, but these errors were encountered: