From ecf4c78149e053eb39949b197dea4a978ebf279f Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Tue, 15 Jun 2021 02:44:22 +0200 Subject: [PATCH] L2SS-244: Default to scalar attributes in attribute_wrapper --- devices/util/attribute_wrapper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devices/util/attribute_wrapper.py b/devices/util/attribute_wrapper.py index d4584f01b..37f7962b7 100644 --- a/devices/util/attribute_wrapper.py +++ b/devices/util/attribute_wrapper.py @@ -14,14 +14,14 @@ class attribute_wrapper(attribute): Wraps all the attributes in a wrapper class to manage most of the redundant code behind the scenes """ - def __init__(self, comms_annotation=None, datatype=None, dims=(1,), access=AttrWriteType.READ, init_value=None, **kwargs): + def __init__(self, comms_annotation=None, datatype=None, dims=None, access=AttrWriteType.READ, init_value=None, **kwargs): """ wraps around the tango Attribute class. Provides an easier interface for 1d or 2d arrays. Also provides a way to abstract managing the communications interface. comms_annotation: data passed along to the attribute. can be given any form of data. handling is up to client implementation datatype: any numpy datatype - dims: dimensions of the + dims: dimensions of the attribute as a tuple, or None for a scalar. init_value: value """ -- GitLab