Skip to content
GitLab
Explore
Sign in
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
6e900f35
Commit
6e900f35
authored
3 years ago
by
Taya Snijder
Browse files
Options
Downloads
Patches
Plain Diff
new file
parent
5963237f
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!314
Resolve L2SS-696 "Temperature management device"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/devices/temperature_manager.py
+57
-0
57 additions, 0 deletions
...ontrol/tangostationcontrol/devices/temperature_manager.py
with
57 additions
and
0 deletions
tangostationcontrol/tangostationcontrol/devices/temperature_manager.py
0 → 100644
+
57
−
0
View file @
6e900f35
# -*- coding: utf-8 -*-
#
# Distributed under the terms of the APACHE license.
# See LICENSE.txt for more info.
"""
overtemperature managing Device Server for LOFAR2.0
"""
# Additional import
from
tangostationcontrol.common.entrypoint
import
entry
from
tangostationcontrol.devices.lofar_device
import
lofar_device
from
tangostationcontrol.common.lofar_logging
import
device_logging_to_python
,
log_exceptions
import
logging
logger
=
logging
.
getLogger
()
__all__
=
[
"
PDU
"
,
"
main
"
]
@device_logging_to_python
()
class
PDU
(
lofar_device
):
# -----------------
# Device Properties
# -----------------
# ----------
# Attributes
# ----------
# --------
# overloaded functions
# --------
def
init_device
(
self
):
super
().
init_device
()
@log_exceptions
()
def
configure_for_initialise
(
self
):
super
().
configure_for_initialise
()
@log_exceptions
()
def
configure_for_on
(
self
):
super
().
configure_for_on
()
@log_exceptions
()
def
configure_for_off
(
self
):
super
().
configure_for_off
()
# ----------
# Run server
# ----------
def
main
(
**
kwargs
):
"""
Main function of the PDU module.
"""
return
entry
(
PDU
,
**
kwargs
)
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