mirror of
https://github.com/m-labs/artiq.git
synced 2025-01-22 16:46:42 +08:00
language/environment: fix mutate_dataset with parent. Closes #498
This commit is contained in:
parent
bf3c3cdfd8
commit
1946e3c3cd
@ -299,6 +299,7 @@ class HasEnvironment:
|
|||||||
as ``slice(*sub_tuple)`` (multi-dimensional slicing)."""
|
as ``slice(*sub_tuple)`` (multi-dimensional slicing)."""
|
||||||
if self.__parent is not None:
|
if self.__parent is not None:
|
||||||
self.__parent.mutate_dataset(key, index, value)
|
self.__parent.mutate_dataset(key, index, value)
|
||||||
|
return
|
||||||
if self.__dataset_mgr is None:
|
if self.__dataset_mgr is None:
|
||||||
raise ValueError("Dataset manager not present")
|
raise ValueError("Dataset manager not present")
|
||||||
self.__dataset_mgr.mutate(key, index, value)
|
self.__dataset_mgr.mutate(key, index, value)
|
||||||
|
Loading…
Reference in New Issue
Block a user