Skip to content

Commit

Permalink
Change libtiledb minimum version for CurrentDomain and NDRectangle
Browse files Browse the repository at this point in the history
  • Loading branch information
kounelisagis committed Nov 22, 2024
1 parent e9d05cd commit e07afde
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tiledb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from tiledb.libtiledb import version as libtiledb_version

if libtiledb_version()[0] == 2 and libtiledb_version()[1] >= 25:
if libtiledb_version()[0] == 2 and libtiledb_version()[1] >= 27:
from .current_domain import CurrentDomain
from .ndrectangle import NDRectangle

Expand Down
2 changes: 1 addition & 1 deletion tiledb/cc/current_domain.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ using namespace tiledbpy::common;
namespace py = pybind11;

void init_current_domain(py::module &m) {
#if TILEDB_VERSION_MAJOR >= 2 && TILEDB_VERSION_MINOR >= 25
#if TILEDB_VERSION_MAJOR >= 2 && TILEDB_VERSION_MINOR >= 27
py::class_<NDRectangle>(m, "NDRectangle")
.def(py::init<NDRectangle>())

Expand Down
4 changes: 2 additions & 2 deletions tiledb/tests/test_current_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import tiledb
import tiledb.cc as lt

if not (tiledb.libtiledb.version()[0] == 2 and tiledb.libtiledb.version()[1] >= 25):
if not (tiledb.libtiledb.version()[0] == 2 and tiledb.libtiledb.version()[1] >= 27):
pytest.skip(
"CurrentDomain is only available in TileDB 2.25 and later",
"CurrentDomain and NDRectangle are only available in TileDB 2.27 and later",
allow_module_level=True,
)

Expand Down

0 comments on commit e07afde

Please sign in to comment.