Skip to content

Commit c75b212

Browse files
committed
Improved to_list
1 parent 52ce715 commit c75b212

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pgvector/bit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def _length(self):
6767
return length
6868

6969
def to_list(self) -> list[bool]:
70-
return self.to_numpy().tolist()
70+
# TODO improve
71+
return [v != '0' for v in self.to_text()]
7172

7273
def to_numpy(self) -> np.ndarray[tuple[int], np.dtype[np.bool]]:
7374
import numpy as np

0 commit comments

Comments
 (0)