Skip to content

Commit 4c7b856

Browse files
committed
Add root_url to DaskMSStore. Fixes incorrect stores for s3.
1 parent f0c96f0 commit 4c7b856

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

daskms/experimental/fragments/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_ancestry(store, only_required=True):
2424
store = DaskMSStore(store)
2525

2626
while True:
27-
root_store = DaskMSStore(store.root)
27+
root_store = DaskMSStore(store.root_url)
2828

2929
if store.exists():
3030
try:

daskms/fsspec_store.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ def assert_type(self, store_type):
9494
def url(self):
9595
return f"{self.fs.unstrip_protocol(self.canonical_path)}"
9696

97+
@property
98+
def root_url(self):
99+
return f"{self.fs.unstrip_protocol(self.root)}"
100+
97101
def subdirectories(self):
98102
return [
99103
d["name"]

0 commit comments

Comments
 (0)