Skip to content
Snippets Groups Projects
Commit 6e900f35 authored by Taya Snijder's avatar Taya Snijder
Browse files

new file

parent 5963237f
Branches
Tags
1 merge request!314Resolve L2SS-696 "Temperature management device"
# -*- 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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment