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
daae688e
Commit
daae688e
authored
3 years ago
by
Taya Snijder
Browse files
Options
Downloads
Patches
Plain Diff
added correct hardware_device version
parent
fdecba7c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!28
Resolve #2021 "05 10 branched from master sdp update"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
devices/util/hardware_device.py
+8
-8
8 additions, 8 deletions
devices/util/hardware_device.py
with
8 additions
and
8 deletions
devices/util/hardware_device.py
+
8
−
8
View file @
daae688e
...
@@ -85,7 +85,7 @@ class hardware_device(Device):
...
@@ -85,7 +85,7 @@ class hardware_device(Device):
self
.
set_state
(
DevState
.
INIT
)
self
.
set_state
(
DevState
.
INIT
)
self
.
setup_value_dict
()
self
.
setup_value_dict
()
self
.
initialise
()
self
.
configure_for_
initialise
()
self
.
set_state
(
DevState
.
STANDBY
)
self
.
set_state
(
DevState
.
STANDBY
)
...
@@ -100,7 +100,7 @@ class hardware_device(Device):
...
@@ -100,7 +100,7 @@ class hardware_device(Device):
:return:None
:return:None
"""
"""
self
.
on
()
self
.
configure_for_
on
()
self
.
set_state
(
DevState
.
ON
)
self
.
set_state
(
DevState
.
ON
)
@command
()
@command
()
...
@@ -119,7 +119,7 @@ class hardware_device(Device):
...
@@ -119,7 +119,7 @@ class hardware_device(Device):
# Turn off
# Turn off
self
.
set_state
(
DevState
.
OFF
)
self
.
set_state
(
DevState
.
OFF
)
self
.
off
()
self
.
configure_for_
off
()
# Turn off again, in case of race conditions through reconnecting
# Turn off again, in case of race conditions through reconnecting
self
.
set_state
(
DevState
.
OFF
)
self
.
set_state
(
DevState
.
OFF
)
...
@@ -138,18 +138,18 @@ class hardware_device(Device):
...
@@ -138,18 +138,18 @@ class hardware_device(Device):
:return:None
:return:None
"""
"""
self
.
fault
()
self
.
configure_for_
fault
()
self
.
set_state
(
DevState
.
FAULT
)
self
.
set_state
(
DevState
.
FAULT
)
# functions that can be overloaded
# functions that can be overloaded
def
fault
(
self
):
def
configure_for_
fault
(
self
):
pass
pass
def
off
(
self
):
def
configure_for_
off
(
self
):
pass
pass
def
on
(
self
):
def
configure_for_
on
(
self
):
pass
pass
def
initialise
(
self
):
def
configure_for_
initialise
(
self
):
pass
pass
def
always_executed_hook
(
self
):
def
always_executed_hook
(
self
):
...
...
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