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
b5b7bb62
Commit
b5b7bb62
authored
3 years ago
by
Taya Snijder
Browse files
Options
Downloads
Patches
Plain Diff
fixed 'illegal state transition' bug and off->initialise state bug
parent
9d7fc612
No related branches found
No related tags found
2 merge requests
!18
Resolve #2021 "04 16 branched from master state bug fix"
,
!17
Resolve #2021 "04 16 branched from master state bug fix"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
devices/clients/test_client.py
+7
-0
7 additions, 0 deletions
devices/clients/test_client.py
devices/src/attribute_wrapper.py
+11
-0
11 additions, 0 deletions
devices/src/attribute_wrapper.py
with
18 additions
and
0 deletions
devices/clients/test_client.py
+
7
−
0
View file @
b5b7bb62
from
src.comms_client
import
*
from
src.comms_client
import
*
<<<<<<<
HEAD
import
os
import
os
=======
>>>>>>>
99e3
d08
...
fixed
'
illegal state transition
'
bug
and
off
->
initialise
state
bug
# <class 'numpy.bool_'>
# <class 'numpy.bool_'>
...
@@ -29,7 +32,11 @@ class example_client(CommClient):
...
@@ -29,7 +32,11 @@ class example_client(CommClient):
"""
"""
this function provides a location for the code neccecary to connect to the client
this function provides a location for the code neccecary to connect to the client
"""
"""
<<<<<<<
HEAD
self
.
streams
.
debug_stream
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
self
.
streams
.
debug_stream
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
=======
>>>>>>>
99e3
d08
...
fixed
'
illegal state transition
'
bug
and
off
->
initialise
state
bug
self
.
streams
.
debug_stream
(
"
the example client doesn
'
t actually connect to anything silly
"
)
self
.
streams
.
debug_stream
(
"
the example client doesn
'
t actually connect to anything silly
"
)
self
.
connected
=
True
# set connected to true
self
.
connected
=
True
# set connected to true
...
...
This diff is collapsed.
Click to expand it.
devices/src/attribute_wrapper.py
+
11
−
0
View file @
b5b7bb62
...
@@ -11,6 +11,7 @@ logger = logging.getLogger()
...
@@ -11,6 +11,7 @@ logger = logging.getLogger()
class
attribute_wrapper
(
attribute
):
class
attribute_wrapper
(
attribute
):
"""
"""
<<<<<<< HEAD
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
"""
"""
...
@@ -24,6 +25,16 @@ class attribute_wrapper(attribute):
...
@@ -24,6 +25,16 @@ class attribute_wrapper(attribute):
dims: dimensions of the
dims: dimensions of the
init_value: value
init_value: value
"""
"""
=======
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):
"""
wraps
around
the
tango
Attribute
class
.
Provides
an
easier
interface
for
1
d
or
2
d
arrays
.
Also
provides
a
way
to
abstract
managing
the
communications
interface
.
"""
>>>
>>>>
99e3
d08
...
fixed
'
illegal state transition
'
bug
and
off
->
initialise
state
bug
# ensure the type is a numpy array
# ensure the type is a numpy array
if
"
numpy
"
not in str(datatype) and datatype != str:
if
"
numpy
"
not in str(datatype) and datatype != str:
...
...
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