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
1cc99173
Commit
1cc99173
authored
3 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Migrated logging patches to code in devices/ dir after overhaul on master
parent
0caf7394
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
Resolve #2021 "03 16 branched from master elk stack"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
devices/src/hardware_device.py
+4
-0
4 additions, 0 deletions
devices/src/hardware_device.py
devices/src/lofar_logging.py
+0
-0
0 additions, 0 deletions
devices/src/lofar_logging.py
with
4 additions
and
0 deletions
devices/src/hardware_device.py
+
4
−
0
View file @
1cc99173
...
@@ -17,6 +17,7 @@ from tango import DevState, DebugIt
...
@@ -17,6 +17,7 @@ from tango import DevState, DebugIt
# Additional import
# Additional import
from
src.attribute_wrapper
import
*
from
src.attribute_wrapper
import
*
from
src.lofar_logging
import
device_logging_to_python
,
log_exceptions
__all__
=
[
"
hardware_device
"
]
__all__
=
[
"
hardware_device
"
]
...
@@ -24,6 +25,7 @@ __all__ = ["hardware_device"]
...
@@ -24,6 +25,7 @@ __all__ = ["hardware_device"]
from
src.wrappers
import
only_in_states
from
src.wrappers
import
only_in_states
@device_logging_to_python
({
"
device
"
:
"
SDP
"
})
class
hardware_device
(
Device
):
class
hardware_device
(
Device
):
"""
"""
...
@@ -59,6 +61,7 @@ class hardware_device(Device):
...
@@ -59,6 +61,7 @@ class hardware_device(Device):
self
.
value_dict
=
{
i
:
i
.
initial_value
()
for
i
in
self
.
attr_list
()}
self
.
value_dict
=
{
i
:
i
.
initial_value
()
for
i
in
self
.
attr_list
()}
@log_exceptions
def
init_device
(
self
):
def
init_device
(
self
):
"""
Instantiates the device in the OFF state.
"""
"""
Instantiates the device in the OFF state.
"""
...
@@ -162,6 +165,7 @@ class hardware_device(Device):
...
@@ -162,6 +165,7 @@ class hardware_device(Device):
"""
Method always executed before any TANGO command is executed.
"""
"""
Method always executed before any TANGO command is executed.
"""
pass
pass
@log_exceptions
def
delete_device
(
self
):
def
delete_device
(
self
):
"""
Hook to delete resources allocated in init_device.
"""
Hook to delete resources allocated in init_device.
...
...
This diff is collapsed.
Click to expand it.
SDP/SDP
/lofar_logging.py
→
devices/src
/lofar_logging.py
+
0
−
0
View file @
1cc99173
File moved
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