-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I am trying to use zappend to append to an Azure
data store. However, I cannot figure out what the configuration should be for that case.
What I tried so far:
config = {
"target_dir": "https://mystore.blob.core.windows.net/mycontainer/myfile.zarr",
"target_storage_options": {
"account_name": "name",
"account_key": "key",
}
}
zappend(ds_code, append_dim="time", config=config)
This fails with TypeError: ClientSession._request() got an unexpected keyword argument 'account_name'
I also tried:
from azure.storage.blob import ContainerClient
container_client = ContainerClient.from_connection_string(conn_str="my_string", container_name="mycontainer")
# store = zarr.ABSStore(client=container_client, prefix = "myfile.zarr") this works
config = {
"target_dir": "https://mystore.blob.core.windows.net/mycontainer/myfile.zarr",
"target_storage_options": {
"client": container_client,
}
}
zappend(my_dataset, append_dim="time", config=config)
This fails with TypeError: ClientSession._request() got an unexpected keyword argument 'client'
It would be nice to have it in documentation how you access datastores other local data and S3.
Thank you
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request