def __init__(self, dbname, metric): self.db = trajdb.open_trajectory_database(dbname, create=False) self.metric = metric
def new_db(self): return trajdb.open_trajectory_database(self.temp_db_name, ndof=self.ndof, create=True)