예제 #1
0
def filterDbByMat(db, mat):
    '''Assumes safe to use cached locDb'''
    newDb = MorphDb()
    for loc, ms in db.locDb(recalc=False).iteritems():
        if loc.maturity > mat:
            newDb.addMsL(ms, loc)
    return newDb
예제 #2
0
def filterDbByMat( db, mat ):
    '''Assumes safe to use cached locDb'''
    newDb = MorphDb()
    for loc, ms in db.locDb( recalc=False ).iteritems():
        if loc.maturity > mat:
            newDb.addMsL( ms, loc )
    return newDb