mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 03:30:05 -05:00
Inherit properly
This commit is contained in:
parent
c5c05d6aa5
commit
076e5c045c
@ -17,7 +17,7 @@ class GenomeDB(object):
|
||||
def stash(self, id, gnm):
|
||||
self.stashed[id] = gnm
|
||||
|
||||
class OneFileDB(object):
|
||||
class OneFileDB(GenomeDB):
|
||||
def __init__(self, dct):
|
||||
assert dct.get('type') == 'onefiledb', "Doesn't look like a OneFileDB."
|
||||
self.dct = dct
|
||||
@ -30,7 +30,7 @@ class OneFileDB(object):
|
||||
def get(self, id):
|
||||
return self.dct[id]
|
||||
|
||||
class FilesystemDB(object):
|
||||
class FilesystemDB(GenomeDB):
|
||||
def __init__(self, path):
|
||||
self.path = path
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user