Skip to content

Commit

Permalink
Fixes for TileDB-Py 0.33.2 (#147)
Browse files Browse the repository at this point in the history
* Rename tiledb.cc references to tiledb.libtiledb
  • Loading branch information
kounelisagis authored Jan 16, 2025
1 parent 5aa3d24 commit 436d074
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import tiledb
from tiledb.bioimg import ATTR_NAME
from tiledb.cc import WebpInputFormat
from tiledb.libtiledb import WebpInputFormat
from tiledb.bioimg.helpers import merge_ned_ranges
import xml.etree.ElementTree as ET

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/converters/test_ome_tiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from tiledb.bioimg.converters.ome_tiff import OMETiffConverter
from tiledb.bioimg.helpers import open_bioimg
from tiledb.bioimg.openslide import TileDBOpenSlide
from tiledb.cc import WebpInputFormat
from tiledb.libtiledb import WebpInputFormat


def test_ome_tiff_converter(tmp_path):
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/converters/test_ome_tiff_experimental.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from tiledb.bioimg.converters.ome_tiff import OMETiffConverter
from tiledb.bioimg.helpers import open_bioimg
from tiledb.bioimg.openslide import TileDBOpenSlide
from tiledb.cc import WebpInputFormat
from tiledb.libtiledb import WebpInputFormat


# We need to expand on the test files. Most of the test files we have currently are not memory
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/converters/test_ome_zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from tiledb.bioimg.converters.ome_zarr import OMEZarrConverter
from tiledb.bioimg.helpers import iter_color, open_bioimg
from tiledb.bioimg.openslide import TileDBOpenSlide
from tiledb.cc import WebpInputFormat
from tiledb.libtiledb import WebpInputFormat

schemas = (get_schema(2220, 2967), get_schema(387, 463), get_schema(1280, 431))

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/converters/test_openslide.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from tiledb.bioimg.converters.openslide import OpenSlideConverter
from tiledb.bioimg.helpers import open_bioimg
from tiledb.bioimg.openslide import TileDBOpenSlide
from tiledb.cc import WebpInputFormat
from tiledb.libtiledb import WebpInputFormat


@pytest.mark.parametrize("preserve_axes", [False, True])
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/converters/test_png.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from tiledb.bioimg.converters.png import PNGConverter
from tiledb.bioimg.helpers import open_bioimg
from tiledb.bioimg.openslide import TileDBOpenSlide
from tiledb.cc import WebpInputFormat
from tiledb.libtiledb import WebpInputFormat


def create_synthetic_image(
Expand Down
2 changes: 1 addition & 1 deletion tiledb/bioimg/converters/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
register_group = None

import tiledb
from tiledb.cc import WebpInputFormat
from tiledb.libtiledb import WebpInputFormat

from .. import ATTR_NAME
from ..helpers import (
Expand Down
2 changes: 1 addition & 1 deletion tiledb/bioimg/converters/ome_tiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
raise err

from tiledb import VFS, Config, Ctx
from tiledb.cc import WebpInputFormat
from tiledb.highlevel import _get_ctx
from tiledb.libtiledb import WebpInputFormat

from .. import ATTR_NAME, EXPORT_TILE_SIZE, WHITE_RGBA
from ..helpers import (
Expand Down
2 changes: 1 addition & 1 deletion tiledb/bioimg/converters/ome_zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
raise err

from tiledb import Config, Ctx
from tiledb.cc import WebpInputFormat
from tiledb.highlevel import _get_ctx
from tiledb.libtiledb import WebpInputFormat

from .. import WHITE_RGB
from ..helpers import get_logger_wrapper, get_rgba, translate_config_to_s3fs
Expand Down
2 changes: 1 addition & 1 deletion tiledb/bioimg/converters/openslide.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from numpy._typing import NDArray

from tiledb import Config, Ctx
from tiledb.cc import WebpInputFormat
from tiledb.highlevel import _get_ctx
from tiledb.libtiledb import WebpInputFormat

from ..helpers import cache_filepath, get_logger_wrapper, is_remote_protocol, iter_color
from . import DEFAULT_SCRATCH_SPACE
Expand Down
2 changes: 1 addition & 1 deletion tiledb/bioimg/converters/png.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
from PIL import Image

from tiledb import VFS, Config, Ctx
from tiledb.cc import WebpInputFormat
from tiledb.highlevel import _get_ctx
from tiledb.libtiledb import WebpInputFormat

from ..helpers import get_logger_wrapper, iter_color
from .axes import Axes
Expand Down
4 changes: 2 additions & 2 deletions tiledb/bioimg/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import tiledb
from tiledb import Config, Ctx
from tiledb.cc import WebpInputFormat
from tiledb.libtiledb import WebpInputFormat

from . import ATTR_NAME
from .converters.axes import Axes, AxesMapper
Expand Down Expand Up @@ -215,7 +215,7 @@ def iter_levels_meta(
for o in group:
with open_bioimg(o.uri, config=config, ctx=ctx) as array:
try:
level = array.meta["level"]
level = int(array.meta["level"])
except KeyError as exc:
raise RuntimeError(
"Key: 'level' not found in array metadata. Make sure that levels have been "
Expand Down

0 comments on commit 436d074

Please sign in to comment.