forked from M-Labs/artiq
1
0
Fork 0

dpdb: fix saves

This commit is contained in:
Sebastien Bourdeauducq 2015-01-02 14:45:55 +08:00
parent d2a5dfa1ec
commit 7ada30e07a
1 changed files with 2 additions and 2 deletions

View File

@ -70,10 +70,10 @@ class DeviceParamDB:
self.pdb = Notifier(pyon.load_file(self.pdb_file)) self.pdb = Notifier(pyon.load_file(self.pdb_file))
def save_ddb(self): def save_ddb(self):
pyon.store_file(self.ddb_file, self.ddb) pyon.store_file(self.ddb_file, self.ddb.backing_struct)
def save_pdb(self): def save_pdb(self):
pyon.store_file(self.pdb_file, self.pdb) pyon.store_file(self.pdb_file, self.pdb.backing_struct)
def req_device(self, name): def req_device(self, name):
return self.ddb.backing_struct[name] return self.ddb.backing_struct[name]