diff options
Diffstat (limited to 'gn3/genodb.py')
-rw-r--r-- | gn3/genodb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/genodb.py b/gn3/genodb.py index 8130c7f..62043d0 100644 --- a/gn3/genodb.py +++ b/gn3/genodb.py @@ -3,7 +3,7 @@ import numpy as np class GenotypeDatabase: def __init__(self, path): - self.env = lmdb.open(path, create=False) + self.env = lmdb.open(path, readonly=True, create=False) self.txn = self.env.begin() # 32 bytes in a SHA256 hash self.hash_length = 32 |