mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 19:28:26 +08:00
master: keep dataset manager consistent when set_dataset is called with contradictory attributes
This commit is contained in:
parent
363a7ebe3a
commit
67ce341adf
@ -190,8 +190,12 @@ class DatasetManager:
|
|||||||
broadcast = True
|
broadcast = True
|
||||||
if broadcast:
|
if broadcast:
|
||||||
self.broadcast[key] = persist, value
|
self.broadcast[key] = persist, value
|
||||||
|
elif key in self.broadcast.read:
|
||||||
|
del self.broadcast[key]
|
||||||
if save:
|
if save:
|
||||||
self.local[key] = value
|
self.local[key] = value
|
||||||
|
elif key in self.local:
|
||||||
|
del self.local[key]
|
||||||
|
|
||||||
def mutate(self, key, index, value):
|
def mutate(self, key, index, value):
|
||||||
target = None
|
target = None
|
||||||
|
Loading…
Reference in New Issue
Block a user