forked from zarr-developers/zarr-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b8f60fe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tjcrone. I have fixed the testing part by allowing for a blob service "kwargs" option to
ABSStore
which gets passed toBlockBlobService
. This way the user never has to deal with the client and it is usable in the way you originally wrote it.For testing one can simply set the blob_service_kwargs dictionary to
blob_service_kwargs={'is_emulated':True}
. This is how I've usedABSStore
in testing above, and the user can also test it within their own app using the same method.I have also fixed
listdir
andgetsize
in future commits with all tests passing. What's left to implement isrename
, although strictly speaking that's optional. Meanwhile, if you give the permission, I can submit a pull request onto the zarr-developers ABSStore branch for everyone to better see the diff.b8f60fe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a kwargs option is a great solution. @rabernat has a kwargs argument in his implementation of a GCSStore, which has not been merged yet. I think he has some testing components there as well. It would definitely be worthwhile looking at how he did things and make sure that we are doing similar tests if they look like they will work for us.
b8f60fe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shikharsg, let's go ahead with a PR to the abs_store branch so that others can check it out and comment. Much appreciate your work on this!