Skip to content
Snippets Groups Projects
Commit ecf4c781 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-244: Default to scalar attributes in attribute_wrapper

parent 8d0abb29
No related branches found
No related tags found
1 merge request!56L2SS-244: Expose the SSTs in MPs
...@@ -14,14 +14,14 @@ class attribute_wrapper(attribute): ...@@ -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 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 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. 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 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 datatype: any numpy datatype
dims: dimensions of the dims: dimensions of the attribute as a tuple, or None for a scalar.
init_value: value init_value: value
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment