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
bc2aca25
Commit
bc2aca25
authored
3 years ago
by
Taya Snijder
Browse files
Options
Downloads
Patches
Plain Diff
further review processing
parent
4445c463
No related branches found
No related tags found
1 merge request
!24
Resolve #2021 "04 16 branched from master ini file device"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
devices/clients/ini_client.py
+2
-2
2 additions, 2 deletions
devices/clients/ini_client.py
devices/ini_device.py
+0
-6
0 additions, 6 deletions
devices/ini_device.py
with
2 additions
and
8 deletions
devices/clients/ini_client.py
+
2
−
2
View file @
bc2aca25
...
...
@@ -162,9 +162,9 @@ def data_handler(string, dtype):
# Handle special case for Bools
for
i
in
string
.
split
(
"
,
"
):
i
=
i
.
strip
(
"
"
)
if
"
True
"
in
i
:
if
"
True
"
==
i
:
value
.
append
(
True
)
elif
"
False
"
in
i
:
elif
"
False
"
==
i
:
value
.
append
(
False
)
else
:
raise
ValueError
(
"
String to bool failed. String is not True/False, but is:
'
{}
'"
.
format
(
i
))
...
...
This diff is collapsed.
Click to expand it.
devices/ini_device.py
+
0
−
6
View file @
bc2aca25
...
...
@@ -96,12 +96,6 @@ class ini_device(hardware_device):
str_image_RW
=
attribute_wrapper
(
comms_annotation
=
{
"
section
"
:
"
image
"
,
"
name
"
:
"
str_image_RW
"
},
datatype
=
numpy
.
str_
,
dims
=
(
3
,
2
),
access
=
AttrWriteType
.
READ_WRITE
)
str_image_R
=
attribute_wrapper
(
comms_annotation
=
{
"
section
"
:
"
image
"
,
"
name
"
:
"
str_image_R
"
},
datatype
=
numpy
.
str_
,
dims
=
(
3
,
2
))
@classmethod
def
attr_list
(
cls
):
"""
Return a list of all the attribute_wrapper members of this class.
"""
return
[
v
for
k
,
v
in
cls
.
__dict__
.
items
()
if
type
(
v
)
==
attribute_wrapper
]
def
always_executed_hook
(
self
):
"""
Method always executed before any TANGO command is executed.
"""
pass
...
...
This diff is collapsed.
Click to expand it.
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