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

HL API additions for dask #129

Merged
merged 6 commits into from
Apr 8, 2019
Merged

HL API additions for dask #129

merged 6 commits into from
Apr 8, 2019

Conversation

ihnorton
Copy link
Member

@ihnorton ihnorton commented Mar 29, 2019

This PR contains

  • rework DenseArray to support single-attribute view on a multi-attribute array

  • set of API additions, motivated by dask support (but hopefully generally useful):

    • convenience functions:
      • open, save
      • aliased from_numpy to allow use as simply tiledb.from_numpy
    • util functions to make schema and array from numpy-style specifiers (rather than spelling out Dim,Domain)
      • schema_like: create ArraySchema based on a numpy ndarray template, or numpy-style shape and dtype kwargs
      • empty_like: returns a writable, emtpy array similar to an existing ndarray-like object (.dtype, .shape).
  • basic CI for dask integration to make sure we don't break that here, going forward

check_error(ctx,
tiledb_vfs_fh_is_closed(ctx.ptr, self.ptr, &isclosed))
if not isclosed:
with nogil:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ihnorton added 3 commits April 8, 2019 13:20
This commit adds an 'attr` specifier to DenseArray, which is
used to open multi-attribute array as a single-attribute
view. Needed for use-cases which do not support
multi-attribute arrays.

- Add pickle/unpickle support for DenseArray
- Add serialization for Config so that head node can control
  worker node thread settings.
- tiledb.{open,save}: convenience functions to load and save an array
- tiledb.schema_like: create a schema from an existing numpy array or
  {dtype, shape}
- empty_like: create a writable array based on specifiers to
  'schema_like', but do not materialize anything in memory.
@jakebolewski
Copy link
Contributor

Some comments, otherwise it lgtm

@ihnorton ihnorton merged commit 419253f into dev Apr 8, 2019
@jakebolewski
Copy link
Contributor

🎉

@ihnorton ihnorton deleted the ihn/dask_hl_pp branch May 14, 2019 16:24
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

Successfully merging this pull request may close these issues.

2 participants