ratt-ru / dask-ms

Implementation of a dask/xarray dataset backed by a CASA MS
https://dask-ms.readthedocs.io
Other
19 stars 7 forks source link

Improve sub-table creation logic #59

Closed sjperkins closed 5 years ago

sjperkins commented 5 years ago
sjperkins commented 5 years ago

In python-casacore, opening WSRT.MS::SOURCE opens the SOURCE via the WSRT.MS table, while WSRT.MS/SOURCE opens the SOURCE table directly.

The first approach can result in the sub-table's locks interacting with those of the main table, preventing writes in particular.

Internally, dask-ms uses the second approach since we're not supporting TAQL queries. However, dask-ms still expects the first approach in the xds_{from,to}_table interface as it informs dask-ms about the link between the main and sub-table. In particular, this is used to transparently place a "Table: " keyword in WSRT.MS to inform it that "SOURCE" is now a subtable.

Table path inspection has also been cleaned up and made more consistent.