Skip to content

Commit 98e2f02

Browse files
Shelnutt2ihnorton
authored andcommitted
Handle tiledb.Config in load_as_matrix
If the user passes a tiledb.Config to load_as_matrix convert to a dictionary.
1 parent 475655f commit 98e2f02

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apis/python/src/tiledb/vector_search/module.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ def load_as_matrix(path: str, nqueries: int = 0, ctx: "Ctx" = None, config: Opti
2121
ctx: Ctx
2222
TileDB context
2323
"""
24+
# If the user passes a tiledb python Config object convert to a dictionary
25+
if isinstance(config, tiledb.Config):
26+
config = dict(config)
27+
2428
if ctx is None:
2529
ctx = Ctx(config)
2630

0 commit comments

Comments
 (0)