Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
ecf4c781
Commit
ecf4c781
authored
3 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-244
: Default to scalar attributes in attribute_wrapper
parent
8d0abb29
No related branches found
No related tags found
1 merge request
!56
L2SS-244: Expose the SSTs in MPs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
devices/util/attribute_wrapper.py
+2
-2
2 additions, 2 deletions
devices/util/attribute_wrapper.py
with
2 additions
and
2 deletions
devices/util/attribute_wrapper.py
+
2
−
2
View file @
ecf4c781
...
@@ -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
"""
"""
...
...
This diff is collapsed.
Click to expand it.
Jan David Mol
@mol
mentioned in commit
b161a50f
·
3 years ago
mentioned in commit
b161a50f
mentioned in commit b161a50f7990b70b59390f189ac40616512e14fd
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment