Closed Kitchi closed 4 years ago
Thanks for the bug report @Kitchi.
I reproduced this by creating an MS as root in /tmp/root-ms/WSRT.MS
and opening as another user with:
xds_from_ms("/tmp/root-ms/WSRT.MS")
https://github.com/ska-sa/dask-ms/pull/74 fixes my reproducer for me.
Would you confirm that this also works for your case by trying https://github.com/ska-sa/dask-ms/pull/74 out with your code?
Thanks for the quick response @sjperkins! I had issues building from code so I just pip install
it. I'll try getting it to install from github again and let you know. Looking at the changes in the code I'm fairly sure it should work though.
You should just be able to update the python files for the sake of testing.
@kitchi I'm fairly convinced that #74 closes this so I've merged it into master. Feel free to re-open the issue if that doesn't fix your problem.
@sjperkins I can confirm that this works, thanks a lot!
Out of curiosity - will this change prevent me from writing back to the same MS (assuming I have write access)? It would be awesome if this was a switch in xds_from_table
similar to astropy.io.fits.open
@sjperkins I can confirm that this works, thanks a lot!
Out of curiosity - will this change prevent me from writing back to the same MS (assuming I have write access)? It would be awesome if this was a switch in
xds_from_table
similar toastropy.io.fits.open
No, because table writes are setup using the xds_to_table function. Under the hood, xds_from_ms
creates a readonly table object, while xds_to_table
creates a writeable table object. They both refer to the same MS tho.
Okay awesome, thanks!
Description
I'm trying to open a measurement set that lives in a directory for which I don't have write access. This is intentional, since the data is the "original" copy of the observation and we don't accidentally want to write into it. However when I try to open it via dask-ms, it errors out because it cannot set a lock on the MS.
Is there a way to do open up the MS as "readonly"? I'm able to open things just fine as long as I have write access into the MS.
What I Did
and it errors out with