Skip to content

Commit

Permalink
try setting specific numpy version, use default_rng instead of seed
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanrb123 committed Oct 4, 2023
1 parent 53d163f commit 92c1406
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-r test-requirements.txt
numpy
numpy==1.26.0
pybind11
pybind11-stubgen
ruff
Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_index_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def test_accuracy_for_inner_product():
space = voyager.Space.InnerProduct
num_dimensions = 1024

np.random.seed(1)
np.random.default_rng(1)
input_data = np.random.rand(10000, num_dimensions)
index = voyager.Index(space=space, num_dimensions=num_dimensions)

Expand Down

0 comments on commit 92c1406

Please sign in to comment.