fix deserialization order

This commit is contained in:
svlandeg 2020-05-30 12:53:32 +02:00
parent 64adda3202
commit 15134ef611

View File

@ -425,9 +425,9 @@ cdef class Vectors:
self.data = xp.load(str(path)) self.data = xp.load(str(path))
serializers = OrderedDict(( serializers = OrderedDict((
("key2row", load_key2row),
("keys", load_keys),
("vectors", load_vectors), ("vectors", load_vectors),
("keys", load_keys),
("key2row", load_key2row),
)) ))
util.from_disk(path, serializers, []) util.from_disk(path, serializers, [])
self._sync_unset() self._sync_unset()