2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-26 03:38:25 +08:00

dpdb: fix saves

This commit is contained in:
Sebastien Bourdeauducq 2015-01-02 14:45:55 +08:00
parent d2a5dfa1ec
commit 7ada30e07a

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]