diff --git a/tangostationcontrol/tangostationcontrol/clients/attribute_wrapper.py b/tangostationcontrol/tangostationcontrol/clients/attribute_wrapper.py index 7b5372c01882ef05e76fa12e0ca09cae0c1adb06..ee898ff561ea916431a7100f098069c68b4e5a13 100644 --- a/tangostationcontrol/tangostationcontrol/clients/attribute_wrapper.py +++ b/tangostationcontrol/tangostationcontrol/clients/attribute_wrapper.py @@ -42,7 +42,7 @@ class attribute_io(object): """ Writes the given value to the device, and updates the cache. """ # flexible array sizes are not supported by all clients. make sure we only write arrays of maximum size. - if self.attribute_wrapper.write_max_shape and self.attribute_wrapper.shape != (): + if self.attribute_wrapper.shape != (): if isinstance(value, numpy.ndarray): value_shape = value.shape else: @@ -115,9 +115,6 @@ class attribute_wrapper(attribute): # actual shape of the data as it is read/written self.shape = shape - # force maximum shape to be written (do not accept writes with shapes smaller than the maximum for each dimension) - self.write_max_shape = True - if access == AttrWriteType.READ_WRITE: """ If the attribute is of READ_WRITE type, assign the write and read functions to it"""