Skip to content

Commit 4c42f1a

Browse files
committed
fix readme
1 parent 365c851 commit 4c42f1a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,13 @@ print(result)
6969
# [[1], [1, 3]]
7070

7171
# Non-batch query is also supported.
72-
print(prtree.query(0.5, 0.5))
72+
print(prtree.query([0.5, 0.5, 1.0, 1.0]))
73+
# [1, 3]
74+
75+
# Point query is also supported.
76+
print(prtree.query([0.5, 0.5]))
7377
# [1]
74-
print(prtree.query((0.5, 0.5)))
78+
print(prtree.query(0.5, 0.5)) # 1d-array
7579
# [1]
7680
```
7781

0 commit comments

Comments
 (0)