Skip to content

Commit 50f20e3

Browse files
committed
Allow 1D numpy array
1 parent 51de146 commit 50f20e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weaviate/collections/batch/grpc_batch_objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def pack_vector(vector: Any) -> bytes:
5757
collection=obj.collection,
5858
vector_bytes=(
5959
pack_vector(obj.vector)
60-
if obj.vector is not None and isinstance(obj.vector, list)
60+
if obj.vector is not None
6161
else None
6262
),
6363
uuid=str(obj.uuid) if obj.uuid is not None else str(uuid_package.uuid4()),

0 commit comments

Comments
 (0)