aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
Diffstat (limited to 'gn3')
-rw-r--r--gn3/genodb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/genodb.py b/gn3/genodb.py
index 62043d0..96bded6 100644
--- a/gn3/genodb.py
+++ b/gn3/genodb.py
@@ -17,7 +17,7 @@ class GenotypeDatabase:
def get_metadata(self, hash, metadata):
return self.txn.get(hash + b':' + metadata.encode())
def matrix(self):
- hash = self.get(b'current')
+ hash = self.get(b'current')[0:self.hash_length]
return Matrix(self, hash)
class Matrix():