mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -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):
|
def stash(self, id, gnm):
|
||||||
self.stashed[id] = gnm
|
self.stashed[id] = gnm
|
||||||
|
|
||||||
class OneFileDB(object):
|
class OneFileDB(GenomeDB):
|
||||||
def __init__(self, dct):
|
def __init__(self, dct):
|
||||||
assert dct.get('type') == 'onefiledb', "Doesn't look like a OneFileDB."
|
assert dct.get('type') == 'onefiledb', "Doesn't look like a OneFileDB."
|
||||||
self.dct = dct
|
self.dct = dct
|
||||||
@ -30,7 +30,7 @@ class OneFileDB(object):
|
|||||||
def get(self, id):
|
def get(self, id):
|
||||||
return self.dct[id]
|
return self.dct[id]
|
||||||
|
|
||||||
class FilesystemDB(object):
|
class FilesystemDB(GenomeDB):
|
||||||
def __init__(self, path):
|
def __init__(self, path):
|
||||||
self.path = path
|
self.path = path
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user