Skip to content

Commit

Permalink
language/environment: fix mutate_dataset with parent. Closes #498
Browse files Browse the repository at this point in the history
sbourdeauducq committed Jul 3, 2016
1 parent bf3c3cd commit 1946e3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions artiq/language/environment.py
Original file line number Diff line number Diff line change
@@ -299,6 +299,7 @@ def mutate_dataset(self, key, index, value):
as ``slice(*sub_tuple)`` (multi-dimensional slicing)."""
if self.__parent is not None:
self.__parent.mutate_dataset(key, index, value)
return
if self.__dataset_mgr is None:
raise ValueError("Dataset manager not present")
self.__dataset_mgr.mutate(key, index, value)

0 comments on commit 1946e3c

Please sign in to comment.