Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail-fast TileDB reader #25

Open
DPeterK opened this issue Mar 5, 2020 · 2 comments
Open

Fail-fast TileDB reader #25

DPeterK opened this issue Mar 5, 2020 · 2 comments

Comments

@DPeterK
Copy link
Contributor

DPeterK commented Mar 5, 2020

Currently if you load a TileDB array that doesn't exist on disk it doesn't fail, but instead returns an empty cubelist:

reader = TDBReader('/not/a/tiledb_array')
reader.to_iris()
...
...
[]

Fix this so that it fails fast, rather than running for a long time and returning an empty list.

@ihnorton
Copy link

ihnorton commented Mar 5, 2020

@DPeterK in case it helps, you can use tiledb.object_type("<path>") to check if an array exists (returns either "array", "group", or None).

@DPeterK
Copy link
Contributor Author

DPeterK commented Mar 6, 2020

Thanks @ihnorton!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants