From 24bdae348dbb9b569c965bddee7447e649ff9d3e Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Tue, 21 Dec 2021 16:38:15 +0100 Subject: [PATCH] L2SS-496: Expose the current measures dir as a monitoring point --- tangostationcontrol/tangostationcontrol/devices/beam.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tangostationcontrol/tangostationcontrol/devices/beam.py b/tangostationcontrol/tangostationcontrol/devices/beam.py index 1711a8a89..bbcea5f91 100644 --- a/tangostationcontrol/tangostationcontrol/devices/beam.py +++ b/tangostationcontrol/tangostationcontrol/devices/beam.py @@ -8,8 +8,10 @@ """ # PyTango imports +from tango.server import attribute from tango import AttrWriteType import numpy +import pathlib # Additional import from tangostationcontrol.devices.device_decorators import * @@ -31,7 +33,9 @@ class Beam(lofar_device): # 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 -- GitLab