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

Merge branch 'master' into 2021-04-16-Branched_from_master-state_bug_fix

parents cf6c3d3a c2f23757
No related branches found
No related tags found
1 merge request!18Resolve #2021 "04 16 branched from master state bug fix"
{
"servers": {
"PCC": {
"LTS": {
"PCC": {
"LTS/PCC/1": {
"properties": {
"OPC_Server_Name": [
"arm2"
]
}
}
}
}
},
"SDP": {
"LTS": {
"SDP": {
"LTS/SDP/1": {
"properties": {
"OPC_Server_Name": [
"okeanos"
]
}
}
}
}
}
}
}
...@@ -21,7 +21,6 @@ services: ...@@ -21,7 +21,6 @@ services:
- ${TANGO_LOFAR_CONTAINER_MOUNT} - ${TANGO_LOFAR_CONTAINER_MOUNT}
environment: environment:
- TANGO_HOST=${TANGO_HOST} - TANGO_HOST=${TANGO_HOST}
user: ${CONTAINER_EXECUTION_UID}
entrypoint: entrypoint:
- /usr/local/bin/wait-for-it.sh - /usr/local/bin/wait-for-it.sh
- ${TANGO_HOST} - ${TANGO_HOST}
......
...@@ -21,7 +21,6 @@ services: ...@@ -21,7 +21,6 @@ services:
- ${TANGO_LOFAR_CONTAINER_MOUNT} - ${TANGO_LOFAR_CONTAINER_MOUNT}
environment: environment:
- TANGO_HOST=${TANGO_HOST} - TANGO_HOST=${TANGO_HOST}
user: ${CONTAINER_EXECUTION_UID}
entrypoint: entrypoint:
- /usr/local/bin/wait-for-it.sh - /usr/local/bin/wait-for-it.sh
- ${TANGO_HOST} - ${TANGO_HOST}
......
...@@ -28,7 +28,6 @@ services: ...@@ -28,7 +28,6 @@ services:
- TANGO_HOST=${TANGO_HOST} - TANGO_HOST=${TANGO_HOST}
- XAUTHORITY=${XAUTHORITY} - XAUTHORITY=${XAUTHORITY}
- DISPLAY=${DISPLAY} - DISPLAY=${DISPLAY}
user: ${CONTAINER_EXECUTION_UID}
stdin_open: true stdin_open: true
tty: true tty: true
entrypoint: entrypoint:
......
#! /usr/bin/env python3
from .lofar2_config import configure_logging
from tango import DeviceProxy
def add_attribute_to_archiver(attribute: str, polling_period: float, event_period: float, archive_manager: str = 'archiving/hdbpp/confmanager01', archiver: str = 'archiving/hdbpp/eventsubscriber01'):
am = DeviceProxy(archive_manager)
am.write_attribute('SetAttributeName', attribute)
am.write_attribute('SetArchiver', archiver)
am.write_attribute('SetStrategy', 'ALWAYS')
am.write_attribute('SetPollingPeriod', int(polling_period))
am.write_attribute('SetPeriodEvent', int(event_period))
am.AttributeAdd()
am.AttributeStart(attribute)
def remove_attribute_from_archiver(attribute: str, archive_manager: str = 'archiving/hdbpp/confmanager01'):
am = DeviceProxy(archive_manager)
am.AttributeStop(attribute)
am.AttributeRemove(attribute)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment