Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added store_many_vectors on Mongo Storage #87

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix encoding error
  • Loading branch information
etudor committed Dec 2, 2019
commit 152c49af60a5c7eed835f1c05b484c4188688b19
2 changes: 1 addition & 1 deletion nearpy/storage/storage_mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def get_bucket(self, hash_name, bucket_key):
shape=(val_dict['dim'], 1))

else:
vector = numpy.fromstring(val_dict['vector'],
vector = numpy.frombuffer(val_dict['vector'],
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated this because I got some deprecation warnings

dtype=val_dict['dtype'])
[val_dict.pop(k) for k in ['vector', 'dtype', '_id']]
# Add data to result tuple, if present
Expand Down