Skip to content

Commit 2a3fce8

Browse files
authored
Refactor virtual chunk container initialization (#63)
Previously xpystac was guessing Azure virtualChunkContainer might look like. Now with earth-mover/icechunk#1312 the `azure_store` is supported. The PR here worked, allowing my Azure virtual icechunk dataset to be loaded into Xarray.
1 parent d174de0 commit 2a3fce8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xpystac/_icechunk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def construct_virtual_containers_config(
5353
config = icechunk.RepositoryConfig.default()
5454
config.set_virtual_chunk_container(
5555
icechunk.VirtualChunkContainer(
56-
data_href,
57-
icechunk.ObjectStoreConfig.Azure(dict(account_name=data_account)),
56+
url_prefix=data_href,
57+
store=icechunk.storage.azure_store(account=data_account),
5858
)
5959
)
6060
credentials = icechunk.azure_from_env_credentials()

0 commit comments

Comments
 (0)