Skip to content
Snippets Groups Projects
Commit 24bdae34 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-496: Expose the current measures dir as a monitoring point

parent 0cf86b72
No related branches found
No related tags found
1 merge request!204L2SS-497: Add and manage casacore measures tables
...@@ -8,8 +8,10 @@ ...@@ -8,8 +8,10 @@
""" """
# PyTango imports # PyTango imports
from tango.server import attribute
from tango import AttrWriteType from tango import AttrWriteType
import numpy import numpy
import pathlib
# Additional import # Additional import
from tangostationcontrol.devices.device_decorators import * from tangostationcontrol.devices.device_decorators import *
...@@ -31,7 +33,9 @@ class Beam(lofar_device): ...@@ -31,7 +33,9 @@ class Beam(lofar_device):
# Attributes # Attributes
# ---------- # ----------
pass # Directory where the casacore measures that we use, reside. We configure ~/.casarc to
# use /opt/IERS/current, but that is a symlink, so resolve it to get the actual location.
measures_directory_R = attribute(dtype=str, access=AttrWriteType.READ, fget=lambda self: str(pathlib.Path("/opt/IERS/current").resolve()))
# -------- # --------
# overloaded functions # overloaded functions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment