How to use the tiledb.group_create function in tiledb

To help you get started, we’ve selected a few tiledb examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TileDB-Inc / TileDB-Py / examples / libtiledb / tiledb_group_create.py View on Github external
def main():
    ctx = tiledb.Ctx()
    tiledb.group_create(ctx, "my_group")
    tiledb.group_create(ctx, "my_group/dense_arrays")
    tiledb.group_create(ctx, "my_group/sparse_arrays")
github TileDB-Inc / TileDB-Py / examples / libtiledb / tiledb_error.py View on Github external
def main():
    ctx = tiledb.Ctx()
    try:
        tiledb.group_create(ctx, "mygroup")
        tiledb.group_create(ctx, "mygroup")
    except tiledb.TileDBError as err:
        print("TileDB exception: {!r}".format(err))
github TileDB-Inc / TileDB-Py / examples / errors.py View on Github external
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
# DESCRIPTION
#
# This is a part of the TileDB tutorial:
#   https://docs.tiledb.io/en/latest/tutorials/errors.html
#
# This example shows how to catch errors in TileDB.
#

import tiledb

# Catch an error
try:
    tiledb.group_create("my_group")
    tiledb.group_create("my_group")
except tiledb.TileDBError as e:
    print("TileDB exception: %s" % e.message)

# clean up
if tiledb.VFS().is_dir("my_group"):
    tiledb.remove("my_group")
github TileDB-Inc / TileDB-Py / examples / libtiledb / tiledb_error.py View on Github external
def main():
    ctx = tiledb.Ctx()
    try:
        tiledb.group_create(ctx, "mygroup")
        tiledb.group_create(ctx, "mygroup")
    except tiledb.TileDBError as err:
        print("TileDB exception: {!r}".format(err))
github TileDB-Inc / TileDB-Py / examples / libtiledb / tiledb_group_create.py View on Github external
def main():
    ctx = tiledb.Ctx()
    tiledb.group_create(ctx, "my_group")
    tiledb.group_create(ctx, "my_group/dense_arrays")
    tiledb.group_create(ctx, "my_group/sparse_arrays")
github TileDB-Inc / TileDB-Py / examples / object.py View on Github external
def create_hierarchy():
    # Create groups
    tiledb.group_create(path("my_group"))
    tiledb.group_create(path("my_group/dense_arrays"))
    tiledb.group_create(path("my_group/sparse_arrays"))

    # Create arrays
    create_array(path("my_group/dense_arrays/array_A"), False)
    create_array(path("my_group/dense_arrays/array_B"), False)
    create_array(path("my_group/sparse_arrays/array_C"), True)
    create_array(path("my_group/sparse_arrays/array_D"), True)
github TileDB-Inc / TileDB-Py / examples / libtiledb / tiledb_group_create.py View on Github external
def main():
    ctx = tiledb.Ctx()
    tiledb.group_create(ctx, "my_group")
    tiledb.group_create(ctx, "my_group/dense_arrays")
    tiledb.group_create(ctx, "my_group/sparse_arrays")